Home | History | Annotate | Download | only in net

Lines Matching full:icmp

26 #include <gpxe/icmp.h>
30 * ICMP protocol
48 struct icmp_header *icmp = iobuf->data;
54 if ( len < sizeof ( *icmp ) ) {
55 DBG ( "ICMP packet too short at %zd bytes (min %zd bytes)\n",
56 len, sizeof ( *icmp ) );
62 csum = tcpip_chksum ( icmp, len );
64 DBG ( "ICMP checksum incorrect (is %04x, should be 0000)\n",
66 DBG_HD ( icmp, len );
72 if ( icmp->type != ICMP_ECHO_REQUEST ) {
73 DBG ( "ICMP ignoring type %d\n", icmp->type );
78 DBG ( "ICMP responding to ping\n" );
81 icmp->type = ICMP_ECHO_RESPONSE;
82 icmp->chksum = 0;
83 icmp->chksum = tcpip_chksum ( icmp, len );
88 DBG ( "ICMP could not transmit ping response: %s\n",
98 /** ICMP TCP/IP protocol */
100 .name = "ICMP",