Lines Matching full:icmp
30 #include <linux/icmp.h>
91 /* print icmp header */
92 void dump_icmp(struct icmphdr *icmp) {
93 printf("ICMP\n");
95 printf("icmp.type = %x ",icmp->type);
96 if(icmp->type == ICMP_ECHOREPLY) {
98 } else if(icmp->type == ICMP_ECHO) {
104 printf("icmp.code = %x\n",icmp->code);
105 printf("icmp.checksum = %x\n",ntohs(icmp->checksum));
106 if(icmp->type == ICMP_ECHOREPLY || icmp->type == ICMP_ECHO) {
107 printf("icmp.un.echo.id = %x\n",ntohs(icmp->un.echo.id));
108 printf("icmp.un.echo.sequence = %x\n",ntohs(icmp->un.echo.sequence));