X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/c9d84d15c5c4dc8eca7594101fe5026080ed641e..64e81f2917f6865dff8df96e18cec1b8bf2fa836:/print-igrp.c diff --git a/print-igrp.c b/print-igrp.c index 16dfc801..be87dba2 100644 --- a/print-igrp.c +++ b/print-igrp.c @@ -23,7 +23,11 @@ #ifndef lint static const char rcsid[] = - "@(#) $Header: /tcpdump/master/tcpdump/print-igrp.c,v 1.10 1999-10-30 05:11:14 itojun Exp $ (LBL)"; + "@(#) $Header: /tcpdump/master/tcpdump/print-igrp.c,v 1.15 2000-09-29 04:58:40 guy Exp $ (LBL)"; +#endif + +#ifdef HAVE_CONFIG_H +#include "config.h" #endif #include @@ -31,11 +35,6 @@ static const char rcsid[] = #include #include -#include -#include -#include -#include -#include #include #include @@ -43,6 +42,7 @@ static const char rcsid[] = #include "interface.h" #include "addrtoname.h" #include "igrp.h" +#include "ip.h" #include "extract.h" /* must come after interface.h */ static void @@ -103,8 +103,8 @@ igrp_print(register const u_char *bp, u_int length, register const u_char *bp2) next = EXTRACT_16BITS(&hdr->ig_nx); (void)printf(" %s V%d edit=%d AS=%d (%d/%d/%d)", - tok2str(op2str, "op-#%d", hdr->ig_op), - hdr->ig_v, + tok2str(op2str, "op-#%d", IGRP_OP(hdr->ig_vop)), + IGRP_V(hdr->ig_vop), hdr->ig_ed, EXTRACT_16BITS(&hdr->ig_as), nint,