diff options
author | Guy Harris <guy@alum.mit.edu> | 2009-11-26 14:57:38 -0800 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2009-11-26 14:57:38 -0800 |
commit | 5f947ac9b4b1a535d9306144ec6d980bad110e16 (patch) | |
tree | 3d9dfc1b83c2a9a271eb904dbaecbf1683c04c87 /print-ipnet.c | |
parent | 0c3032509b512c84e3d7da629da10414efd0528b (diff) | |
download | tcpdump-5f947ac9b4b1a535d9306144ec6d980bad110e16.tar.gz |
XXX_if_print() routines are not passed a "struct netdissect_options *",
so ipnet_if_print() can't expect one.
ipnet_print() isn't called from outside print-ipnet.c, so make it static.
Diffstat (limited to 'print-ipnet.c')
-rw-r--r-- | print-ipnet.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/print-ipnet.c b/print-ipnet.c index 32aaeae6..3a5b5a1a 100644 --- a/print-ipnet.c +++ b/print-ipnet.c @@ -43,7 +43,7 @@ ipnet_hdr_print(struct netdissect_options *ndo, const u_char *bp, u_int length) ND_PRINT((ndo, ", length %u: ", length)); } -void +static void ipnet_print(struct netdissect_options *ndo, const u_char *p, u_int length, u_int caplen) { ipnet_hdr_t *hdr; @@ -91,9 +91,9 @@ ipnet_print(struct netdissect_options *ndo, const u_char *p, u_int length, u_int * is the number of bytes actually captured. */ u_int -ipnet_if_print(struct netdissect_options *ndo, const struct pcap_pkthdr *h, const u_char *p) +ipnet_if_print(const struct pcap_pkthdr *h, const u_char *p) { - ipnet_print(ndo, p, h->len, h->caplen); + ipnet_print(gndo, p, h->len, h->caplen); return (sizeof(ipnet_hdr_t)); } |