Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset e6b7b198 in mainline


Ignore:
Timestamp:
2010-02-17T21:25:18Z (12 years ago)
Author:
Lukas Mejdrech <lukasmejdrech@…>
Branches:
lfn, master
Children:
536ded4
Parents:
1e2e0c1e
Message:

+ block ICMP error notifications fot the ICMP protocol

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/net/il/ip/ip.c

    r1e2e0c1e re6b7b198  
    380380 *  @returns ENOMEM if the packet is too short to contain the IP header.
    381381 *  @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.
    382383 *  @returns Other error codes as defined for the packet_set_addr().
    383384 */
     
    14151416        // only for the first fragment
    14161417        if( IP_FRAGMENT_OFFSET( header )) return EINVAL;
     1418        // not for the ICMP protocol
     1419        if( header->protocol == IPPROTO_ICMP ){
     1420                return EPERM;
     1421        }
    14171422        // set the destination address
    14181423        switch( header->version ){
Note: See TracChangeset for help on using the changeset viewer.