X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/3824a6c0417a551961d1a1bf4f94f10eff736afc..4189fb7df651e5742b15488d2f59dae5f526e82b:/print-null.c diff --git a/print-null.c b/print-null.c index 831f79c6..bfdf3e41 100644 --- a/print-null.c +++ b/print-null.c @@ -19,6 +19,10 @@ * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. */ +#ifndef lint +static const char rcsid[] _U_ = + "@(#) $Header: /tcpdump/master/tcpdump/print-null.c,v 1.53 2005-04-06 21:32:41 mcr Exp $ (LBL)"; +#endif #ifdef HAVE_CONFIG_H #include "config.h" @@ -33,10 +37,6 @@ #include "interface.h" #include "addrtoname.h" -#ifndef lint -static const char rcsid[] _U_ = - "@(#) $Header: /tcpdump/master/tcpdump/print-null.c,v 1.50 2003-11-15 00:39:34 guy Exp $ (LBL)"; -#endif #include "ip.h" #ifdef INET6 #include "ip6.h" @@ -125,7 +125,7 @@ null_print(u_int family, u_int length) /* * This is the top level routine of the printer. 'p' points * to the ether header of the packet, 'h->ts' is the timestamp, - * 'h->length' is the length of the packet off the wire, and 'h->caplen' + * 'h->len' is the length of the packet off the wire, and 'h->caplen' * is the number of bytes actually captured. */ u_int @@ -163,7 +163,7 @@ null_if_print(const struct pcap_pkthdr *h, const u_char *p) switch (family) { case BSD_AF_INET: - ip_print(p, length); + ip_print(gndo, p, length); break; #ifdef INET6 @@ -197,3 +197,9 @@ null_if_print(const struct pcap_pkthdr *h, const u_char *p) return (NULL_HDRLEN); } +/* + * Local Variables: + * c-style: whitesmith + * c-basic-offset: 8 + * End: + */