X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/7c4458eb6a0cd2a617adb9a3bbca44e9f59f3937..4890d02f2cbdfd68f0dfb8ce7123fb61b4a591d4:/print-cip.c diff --git a/print-cip.c b/print-cip.c index 7a2de818..f3afd308 100644 --- a/print-cip.c +++ b/print-cip.c @@ -22,13 +22,15 @@ #ifndef lint static const char rcsid[] = - "@(#) $Header: /tcpdump/master/tcpdump/print-cip.c,v 1.10 2000-12-18 05:41:58 guy Exp $ (LBL)"; + "@(#) $Header: /tcpdump/master/tcpdump/print-cip.c,v 1.13 2001-06-08 04:48:23 guy Exp $ (LBL)"; #endif #ifdef HAVE_CONFIG_H #include "config.h" #endif +#include + #include #include #include @@ -45,9 +47,6 @@ static const char rcsid[] = #include "ethertype.h" #include "ether.h" -const u_char *packetp; -const u_char *snapend; - #define RFC1483LLC_LEN 8 static unsigned char rfcllc[] = { @@ -136,7 +135,7 @@ cip_if_print(u_char *user, const struct pcap_pkthdr *h, const u_char *p) &extracted_ethertype)==0) { /* ether_type not known, print raw packet */ if (!eflag) - cip_print((u_char *)bp, length); + cip_print((u_char *)bp, length + RFC1483LLC_LEN); if (extracted_ethertype) { printf("(LLC %s) ", etherproto_string(htons(extracted_ethertype)));