summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2013-03-26 02:03:32 -0700
committerGuy Harris <guy@alum.mit.edu>2013-03-26 02:03:32 -0700
commit949a22064d3534eddeb8aa2b9c36a50e45fe16fa (patch)
treece7412e6ce7c96f3ae75bb4c61837e660398c033
parent56bcff3da9fa58a9b3f8132d71a2fd9497ef799e (diff)
downloadtcpdump-949a22064d3534eddeb8aa2b9c36a50e45fe16fa.tar.gz
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.
-rw-r--r--interface.h2
-rw-r--r--print-otv.c2
-rw-r--r--print-vxlan.c2
3 files changed, 4 insertions, 2 deletions
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;