vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| Hi, Not sure if this is the correct way to go about this, but it gives me the desired result. I welcome any comments and/or scorn. Index: print-ip.c ================================================== ================= RCS file: /cvs/src/usr.sbin/tcpdump/print-ip.c,v retrieving revision 1.32 diff -u -r1.32 print-ip.c --- print-ip.c 2006/06/01 17:18:39 1.32 +++ print-ip.c 2007/04/18 02:43:02 @@ -432,9 +432,17 @@ icmp_print(cp, (const u_char *)ip); break; +#ifndef IPPROTO_IGP +#define IPPROTO_IGP 9 +#endif + #ifndef IPPROTO_IGRP -#define IPPROTO_IGRP 9 +#define IPPROTO_IGRP 88 #endif + case IPPROTO_IGP: + igrp_print(cp, len, (const u_char *)ip); + break; + case IPPROTO_IGRP: igrp_print(cp, len, (const u_char *)ip); break; @@ -445,6 +453,7 @@ (void)printf(" nd %d", len); break; + #ifndef IPPROTO_OSPF #define IPPROTO_OSPF 89 #endif @@ -457,6 +466,15 @@ #endif case IPPROTO_IGMP: igmp_print(cp, len, (const u_char *)ip); + break; + +#ifndef IPPROTO_PIM +#define IPPROTO_PIM 103 +#endif + case IPPROTO_PIM: + (void)printf("%s > %s: PIM", ipaddr_string(&ip->ip_src), + ipaddr_string(&ip->ip_dst)); + pim_print(cp, len); break; #ifndef IPPROTO_IPIP Cheers, Russell |
| Thread Tools | |
| Display Modes | |
|
|