]> The Tcpdump Group git mirrors - tcpdump/commitdiff
XXX_if_print() routines are not passed a "struct netdissect_options *",
authorGuy Harris <[email protected]>
Thu, 26 Nov 2009 22:57:38 +0000 (14:57 -0800)
committerGuy Harris <[email protected]>
Thu, 26 Nov 2009 22:57:38 +0000 (14:57 -0800)
so ipnet_if_print() can't expect one.

ipnet_print() isn't called from outside print-ipnet.c, so make it static.

interface.h
netdissect.h
print-ipnet.c

index 9f01f9d10b8b46040a8b9c89cd107be8dee403fc..852bfb7fb4f1a6144a6dc24373826de284c2e4b8 100644 (file)
@@ -322,8 +322,8 @@ extern void bfd_print(const u_char *, u_int, u_int);
 extern void sip_print(const u_char *, u_int);
 extern void syslog_print(const u_char *, u_int);
 extern u_int bt_if_print(const struct pcap_pkthdr *, const u_char *);
-
 extern u_int usb_linux_print(const struct pcap_pkthdr *, const u_char *);
+extern u_int ipnet_if_print(const struct pcap_pkthdr *, const u_char *);
 
 #ifdef INET6
 extern void ip6_print(const u_char *, u_int);
index 86b66a09bf672453e02595ebe80b33bb092f93ca..f7a7ac43fd4fc483c5bce4e072b669e1f7a49f8d 100644 (file)
@@ -437,9 +437,6 @@ extern void lwres_print(netdissect_options *,const u_char *, u_int);
 extern void pptp_print(netdissect_options *,const u_char *, u_int);
 #endif
 
-extern void ipnet_print(netdissect_options *,const u_char *, u_int, u_int);
-extern u_int ipnet_if_print(netdissect_options *,const struct pcap_pkthdr *, const u_char *);
-
 #if 0
 #ifdef INET6
 extern void ip6_print(netdissect_options *,const u_char *, u_int);
index 32aaeae660ddee3a79769f1453ef5718b4ce83f2..3a5b5a1aa18390d89b9045d12336a0840014d3e1 100644 (file)
@@ -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));
 }