From: Guy Harris Date: Tue, 26 Mar 2013 09:03:32 +0000 (-0700) Subject: Declare vxlan_print() and otv_print() in interface.h, and fix its definition. X-Git-Tag: tcpdump-4.5.0~105 X-Git-Url: https://git.tcpdump.org/tcpdump/commitdiff_plain/949a22064d3534eddeb8aa2b9c36a50e45fe16fa Declare vxlan_print() and otv_print() in interface.h, and fix its definition. They doesn't use their third argument, and they aren't being passed a third argument, so get rid of that argument. --- diff --git a/interface.h b/interface.h index 2dff9d81..5703f3d5 100644 --- a/interface.h +++ b/interface.h @@ -321,6 +321,8 @@ 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_48_byte_print(const struct pcap_pkthdr *, const u_char *); extern u_int usb_linux_64_byte_print(const struct pcap_pkthdr *, const u_char *); +extern void vxlan_print(const u_char *, u_int); +extern void otv_print(const u_char *, u_int); #ifdef INET6 diff --git a/print-otv.c b/print-otv.c index f312b0ba..cd539574 100644 --- a/print-otv.c +++ b/print-otv.c @@ -41,7 +41,7 @@ */ void -otv_print(const u_char *bp, u_int len, u_int port) +otv_print(const u_char *bp, u_int len) { u_int8_t flags; u_int32_t overlay_id; diff --git a/print-vxlan.c b/print-vxlan.c index 9f8c3fb4..80344634 100644 --- a/print-vxlan.c +++ b/print-vxlan.c @@ -41,7 +41,7 @@ */ void -vxlan_print(const u_char *bp, u_int len, u_int port) +vxlan_print(const u_char *bp, u_int len) { u_int8_t flags; u_int32_t vni;