Changeset e6b7b198 in mainline
- Timestamp:
- 2010-02-17T21:25:18Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 536ded4
- Parents:
- 1e2e0c1e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/il/ip/ip.c
r1e2e0c1e re6b7b198 380 380 * @returns ENOMEM if the packet is too short to contain the IP header. 381 381 * @returns EAFNOSUPPORT if the address family is not supported. 382 * @returns EPERM if the protocol is not allowed to send ICMP notifications. The ICMP protocol itself. 382 383 * @returns Other error codes as defined for the packet_set_addr(). 383 384 */ … … 1415 1416 // only for the first fragment 1416 1417 if( IP_FRAGMENT_OFFSET( header )) return EINVAL; 1418 // not for the ICMP protocol 1419 if( header->protocol == IPPROTO_ICMP ){ 1420 return EPERM; 1421 } 1417 1422 // set the destination address 1418 1423 switch( header->version ){
Note:
See TracChangeset
for help on using the changeset viewer.