summaryrefslogtreecommitdiff
path: root/usr.sbin/tcpdump
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/tcpdump')
-rw-r--r--usr.sbin/tcpdump/addrtoname.c4
-rw-r--r--usr.sbin/tcpdump/print-arp.c4
-rw-r--r--usr.sbin/tcpdump/print-atalk.c4
-rw-r--r--usr.sbin/tcpdump/print-atm.c4
-rw-r--r--usr.sbin/tcpdump/print-bootp.c4
-rw-r--r--usr.sbin/tcpdump/print-decnet.c4
-rw-r--r--usr.sbin/tcpdump/print-dhcp6.c4
-rw-r--r--usr.sbin/tcpdump/print-enc.c6
-rw-r--r--usr.sbin/tcpdump/print-ether.c4
-rw-r--r--usr.sbin/tcpdump/print-fddi.c4
-rw-r--r--usr.sbin/tcpdump/print-icmp.c4
-rw-r--r--usr.sbin/tcpdump/print-ike.c4
-rw-r--r--usr.sbin/tcpdump/print-isoclns.c4
-rw-r--r--usr.sbin/tcpdump/print-nfs.c4
-rw-r--r--usr.sbin/tcpdump/print-ntp.c4
-rw-r--r--usr.sbin/tcpdump/print-null.c4
-rw-r--r--usr.sbin/tcpdump/print-pflog.c5
-rw-r--r--usr.sbin/tcpdump/print-pfsync.c5
-rw-r--r--usr.sbin/tcpdump/print-ppp.c4
-rw-r--r--usr.sbin/tcpdump/print-raw.c4
-rw-r--r--usr.sbin/tcpdump/print-sl.c3
-rw-r--r--usr.sbin/tcpdump/print-stp.c4
-rw-r--r--usr.sbin/tcpdump/print-sunrpc.c4
23 files changed, 25 insertions, 70 deletions
diff --git a/usr.sbin/tcpdump/addrtoname.c b/usr.sbin/tcpdump/addrtoname.c
index 28483648941..9b19c3d2345 100644
--- a/usr.sbin/tcpdump/addrtoname.c
+++ b/usr.sbin/tcpdump/addrtoname.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: addrtoname.c,v 1.39 2018/12/20 03:39:29 dlg Exp $ */
+/* $OpenBSD: addrtoname.c,v 1.40 2021/12/01 18:28:45 deraadt Exp $ */
/*
* Copyright (c) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997
@@ -28,8 +28,6 @@
#include <sys/time.h>
#include <sys/types.h>
-struct mbuf;
-struct rtentry;
#include <net/if.h>
#include <netinet/in.h>
diff --git a/usr.sbin/tcpdump/print-arp.c b/usr.sbin/tcpdump/print-arp.c
index 7ac2d98cde1..024f8ef8e87 100644
--- a/usr.sbin/tcpdump/print-arp.c
+++ b/usr.sbin/tcpdump/print-arp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: print-arp.c,v 1.16 2020/01/24 22:46:36 procter Exp $ */
+/* $OpenBSD: print-arp.c,v 1.17 2021/12/01 18:28:45 deraadt Exp $ */
/*
* Copyright (c) 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997
@@ -24,8 +24,6 @@
#include <sys/time.h>
#include <sys/socket.h>
-struct mbuf;
-struct rtentry;
#include <net/if.h>
#include <netinet/in.h>
diff --git a/usr.sbin/tcpdump/print-atalk.c b/usr.sbin/tcpdump/print-atalk.c
index 3b8ddbc1c53..f80e965e67e 100644
--- a/usr.sbin/tcpdump/print-atalk.c
+++ b/usr.sbin/tcpdump/print-atalk.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: print-atalk.c,v 1.34 2020/01/24 22:46:36 procter Exp $ */
+/* $OpenBSD: print-atalk.c,v 1.35 2021/12/01 18:28:45 deraadt Exp $ */
/*
* Copyright (c) 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997
@@ -26,8 +26,6 @@
#include <sys/time.h>
#include <sys/socket.h>
-struct mbuf;
-struct rtentry;
#include <net/if.h>
#include <netinet/in.h>
diff --git a/usr.sbin/tcpdump/print-atm.c b/usr.sbin/tcpdump/print-atm.c
index 6dca1df7692..71bc85a7f6e 100644
--- a/usr.sbin/tcpdump/print-atm.c
+++ b/usr.sbin/tcpdump/print-atm.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: print-atm.c,v 1.14 2020/01/24 22:46:36 procter Exp $ */
+/* $OpenBSD: print-atm.c,v 1.15 2021/12/01 18:28:45 deraadt Exp $ */
/*
* Copyright (c) 1994, 1995, 1996, 1997
@@ -24,8 +24,6 @@
#include <sys/time.h>
#include <sys/socket.h>
-struct mbuf;
-struct rtentry;
#include <net/if.h>
#include <netinet/in.h>
diff --git a/usr.sbin/tcpdump/print-bootp.c b/usr.sbin/tcpdump/print-bootp.c
index 5c90f39f6e0..10955e355da 100644
--- a/usr.sbin/tcpdump/print-bootp.c
+++ b/usr.sbin/tcpdump/print-bootp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: print-bootp.c,v 1.24 2020/01/24 22:46:36 procter Exp $ */
+/* $OpenBSD: print-bootp.c,v 1.25 2021/12/01 18:28:45 deraadt Exp $ */
/*
* Copyright (c) 1990, 1991, 1993, 1994, 1995, 1996, 1997
@@ -25,8 +25,6 @@
#include <sys/time.h>
#include <sys/socket.h>
-struct mbuf;
-struct rtentry;
#include <net/if.h>
#include <netinet/in.h>
diff --git a/usr.sbin/tcpdump/print-decnet.c b/usr.sbin/tcpdump/print-decnet.c
index 8f2c907133d..e5f4a8b2437 100644
--- a/usr.sbin/tcpdump/print-decnet.c
+++ b/usr.sbin/tcpdump/print-decnet.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: print-decnet.c,v 1.18 2020/01/24 22:46:36 procter Exp $ */
+/* $OpenBSD: print-decnet.c,v 1.19 2021/12/01 18:28:45 deraadt Exp $ */
/*
* Copyright (c) 1992, 1993, 1994, 1995, 1996, 1997
@@ -24,8 +24,6 @@
#include <sys/time.h>
#include <sys/socket.h>
-struct mbuf;
-struct rtentry;
#include <net/if.h>
#ifdef HAVE_LIBDNET
diff --git a/usr.sbin/tcpdump/print-dhcp6.c b/usr.sbin/tcpdump/print-dhcp6.c
index bb4e0aa20d4..faa5ea010ee 100644
--- a/usr.sbin/tcpdump/print-dhcp6.c
+++ b/usr.sbin/tcpdump/print-dhcp6.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: print-dhcp6.c,v 1.12 2019/12/02 22:07:20 dlg Exp $ */
+/* $OpenBSD: print-dhcp6.c,v 1.13 2021/12/01 18:28:45 deraadt Exp $ */
/*
* Copyright (c) 2019 David Gwynne <dlg@openbsd.org>
@@ -19,8 +19,6 @@
#include <sys/time.h>
#include <sys/socket.h>
-struct mbuf;
-struct rtentry;
#include <net/if.h>
#include <netinet/in.h>
diff --git a/usr.sbin/tcpdump/print-enc.c b/usr.sbin/tcpdump/print-enc.c
index 836742e01a6..e7e5614b9a2 100644
--- a/usr.sbin/tcpdump/print-enc.c
+++ b/usr.sbin/tcpdump/print-enc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: print-enc.c,v 1.16 2017/08/29 21:10:20 deraadt Exp $ */
+/* $OpenBSD: print-enc.c,v 1.17 2021/12/01 18:28:45 deraadt Exp $ */
/*
* Copyright (c) 1990, 1991, 1993, 1994, 1995, 1996
@@ -27,11 +27,11 @@
#include <sys/file.h>
#include <sys/ioctl.h>
#include <sys/queue.h>
-#include <sys/mbuf.h>
-struct rtentry;
#include <net/if.h>
#include <netinet/ip_ipsp.h>
+
+#include <sys/mbuf.h>
#include <net/if_enc.h>
#include <netinet/in.h>
diff --git a/usr.sbin/tcpdump/print-ether.c b/usr.sbin/tcpdump/print-ether.c
index 6e960c3bf36..7e32387154d 100644
--- a/usr.sbin/tcpdump/print-ether.c
+++ b/usr.sbin/tcpdump/print-ether.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: print-ether.c,v 1.38 2020/04/15 20:19:25 remi Exp $ */
+/* $OpenBSD: print-ether.c,v 1.39 2021/12/01 18:28:46 deraadt Exp $ */
/*
* Copyright (c) 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997
@@ -24,8 +24,6 @@
#include <sys/time.h>
#include <sys/socket.h>
-struct mbuf;
-struct rtentry;
#include <net/if.h>
#include <netinet/in.h>
diff --git a/usr.sbin/tcpdump/print-fddi.c b/usr.sbin/tcpdump/print-fddi.c
index fce50ba944f..9f092d53495 100644
--- a/usr.sbin/tcpdump/print-fddi.c
+++ b/usr.sbin/tcpdump/print-fddi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: print-fddi.c,v 1.18 2020/01/24 22:46:36 procter Exp $ */
+/* $OpenBSD: print-fddi.c,v 1.19 2021/12/01 18:28:46 deraadt Exp $ */
/*
* Copyright (c) 1991, 1992, 1993, 1994, 1995, 1996, 1997
@@ -27,8 +27,6 @@
#include <sys/file.h>
#include <sys/ioctl.h>
-struct mbuf;
-struct rtentry;
#include <net/if.h>
#include <netinet/in.h>
diff --git a/usr.sbin/tcpdump/print-icmp.c b/usr.sbin/tcpdump/print-icmp.c
index 7fed9496bd0..73b8110f3cc 100644
--- a/usr.sbin/tcpdump/print-icmp.c
+++ b/usr.sbin/tcpdump/print-icmp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: print-icmp.c,v 1.26 2020/01/24 22:46:36 procter Exp $ */
+/* $OpenBSD: print-icmp.c,v 1.27 2021/12/01 18:28:46 deraadt Exp $ */
/*
* Copyright (c) 1988, 1989, 1990, 1991, 1993, 1994, 1995, 1996
@@ -24,8 +24,6 @@
#include <sys/time.h>
#include <sys/socket.h>
-struct mbuf;
-struct rtentry;
#include <net/if.h>
#include <netinet/in.h>
diff --git a/usr.sbin/tcpdump/print-ike.c b/usr.sbin/tcpdump/print-ike.c
index 1ca21b245d9..fcfc66dc8ef 100644
--- a/usr.sbin/tcpdump/print-ike.c
+++ b/usr.sbin/tcpdump/print-ike.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: print-ike.c,v 1.39 2020/01/24 22:46:36 procter Exp $ */
+/* $OpenBSD: print-ike.c,v 1.40 2021/12/01 18:28:46 deraadt Exp $ */
/*
* Copyright (c) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999
@@ -30,8 +30,6 @@
#include <sys/time.h>
#include <sys/socket.h>
-struct mbuf;
-struct rtentry;
#include <net/if.h>
#include <netinet/in.h>
#include <arpa/inet.h>
diff --git a/usr.sbin/tcpdump/print-isoclns.c b/usr.sbin/tcpdump/print-isoclns.c
index 6ba8e4eb704..0c94a02ff2c 100644
--- a/usr.sbin/tcpdump/print-isoclns.c
+++ b/usr.sbin/tcpdump/print-isoclns.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: print-isoclns.c,v 1.14 2020/01/24 22:46:37 procter Exp $ */
+/* $OpenBSD: print-isoclns.c,v 1.15 2021/12/01 18:28:46 deraadt Exp $ */
/*
* Copyright (c) 1992, 1993, 1994, 1995, 1996
@@ -27,8 +27,6 @@
#include <sys/time.h>
#include <sys/socket.h>
-struct mbuf;
-struct rtentry;
#include <net/if.h>
#include <netinet/in.h>
diff --git a/usr.sbin/tcpdump/print-nfs.c b/usr.sbin/tcpdump/print-nfs.c
index 833bb6fa2d7..d495057814d 100644
--- a/usr.sbin/tcpdump/print-nfs.c
+++ b/usr.sbin/tcpdump/print-nfs.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: print-nfs.c,v 1.24 2020/01/24 22:46:37 procter Exp $ */
+/* $OpenBSD: print-nfs.c,v 1.25 2021/12/01 18:28:46 deraadt Exp $ */
/*
* Copyright (c) 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997
@@ -24,8 +24,6 @@
#include <sys/time.h>
#include <sys/socket.h>
-struct mbuf;
-struct rtentry;
#include <net/if.h>
#include <netinet/in.h>
diff --git a/usr.sbin/tcpdump/print-ntp.c b/usr.sbin/tcpdump/print-ntp.c
index ef3190b2843..497f019d7c3 100644
--- a/usr.sbin/tcpdump/print-ntp.c
+++ b/usr.sbin/tcpdump/print-ntp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: print-ntp.c,v 1.19 2020/01/24 22:46:37 procter Exp $ */
+/* $OpenBSD: print-ntp.c,v 1.20 2021/12/01 18:28:46 deraadt Exp $ */
/*
* Copyright (c) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997
@@ -28,8 +28,6 @@
#include <sys/time.h>
#include <sys/socket.h>
-struct mbuf;
-struct rtentry;
#include <net/if.h>
#include <netinet/in.h>
diff --git a/usr.sbin/tcpdump/print-null.c b/usr.sbin/tcpdump/print-null.c
index f90f5e9030c..929f0c5476c 100644
--- a/usr.sbin/tcpdump/print-null.c
+++ b/usr.sbin/tcpdump/print-null.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: print-null.c,v 1.24 2020/07/21 01:09:03 kn Exp $ */
+/* $OpenBSD: print-null.c,v 1.25 2021/12/01 18:28:46 deraadt Exp $ */
/*
* Copyright (c) 1991, 1993, 1994, 1995, 1996, 1997
@@ -26,8 +26,6 @@
#include <sys/file.h>
#include <sys/ioctl.h>
-struct mbuf;
-struct rtentry;
#include <net/if.h>
#include <netinet/in.h>
diff --git a/usr.sbin/tcpdump/print-pflog.c b/usr.sbin/tcpdump/print-pflog.c
index c207771d936..4f91101578a 100644
--- a/usr.sbin/tcpdump/print-pflog.c
+++ b/usr.sbin/tcpdump/print-pflog.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: print-pflog.c,v 1.33 2021/01/20 13:40:15 bluhm Exp $ */
+/* $OpenBSD: print-pflog.c,v 1.34 2021/12/01 18:28:46 deraadt Exp $ */
/*
* Copyright (c) 1990, 1991, 1993, 1994, 1995, 1996
@@ -27,14 +27,11 @@
#include <sys/file.h>
#include <sys/ioctl.h>
#include <sys/queue.h>
-#include <sys/mbuf.h>
#ifndef NO_PID
#define NO_PID (99999+1)
#endif
-struct rtentry;
-
#include <netinet/in.h>
#include <netinet/ip.h>
#include <net/if.h>
diff --git a/usr.sbin/tcpdump/print-pfsync.c b/usr.sbin/tcpdump/print-pfsync.c
index 4b11a13020f..4466d8e224e 100644
--- a/usr.sbin/tcpdump/print-pfsync.c
+++ b/usr.sbin/tcpdump/print-pfsync.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: print-pfsync.c,v 1.43 2017/01/20 09:36:42 claudio Exp $ */
+/* $OpenBSD: print-pfsync.c,v 1.44 2021/12/01 18:28:46 deraadt Exp $ */
/*
* Copyright (c) 2002 Michael Shalayeff
@@ -31,9 +31,6 @@
#include <sys/file.h>
#include <sys/ioctl.h>
-#ifdef __STDC__
-struct rtentry;
-#endif
#include <net/if.h>
#include <netinet/in.h>
diff --git a/usr.sbin/tcpdump/print-ppp.c b/usr.sbin/tcpdump/print-ppp.c
index 7770b302c08..15bf91a7a99 100644
--- a/usr.sbin/tcpdump/print-ppp.c
+++ b/usr.sbin/tcpdump/print-ppp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: print-ppp.c,v 1.35 2021/03/02 00:39:57 jsg Exp $ */
+/* $OpenBSD: print-ppp.c,v 1.36 2021/12/01 18:28:46 deraadt Exp $ */
/*
* Copyright (c) 1990, 1991, 1993, 1994, 1995, 1996, 1997
@@ -27,8 +27,6 @@
#include <sys/file.h>
#include <sys/ioctl.h>
-struct mbuf;
-struct rtentry;
#include <net/if.h>
#include <netinet/in.h>
diff --git a/usr.sbin/tcpdump/print-raw.c b/usr.sbin/tcpdump/print-raw.c
index 233293d198a..f12d17101f6 100644
--- a/usr.sbin/tcpdump/print-raw.c
+++ b/usr.sbin/tcpdump/print-raw.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: print-raw.c,v 1.8 2015/01/16 06:40:21 deraadt Exp $ */
+/* $OpenBSD: print-raw.c,v 1.9 2021/12/01 18:28:46 deraadt Exp $ */
/*
* Copyright (c) 1996
@@ -26,8 +26,6 @@
#include <sys/file.h>
#include <sys/ioctl.h>
-struct mbuf;
-struct rtentry;
#include <net/if.h>
#include <netinet/in.h>
diff --git a/usr.sbin/tcpdump/print-sl.c b/usr.sbin/tcpdump/print-sl.c
index 72eb2625333..34baba429ae 100644
--- a/usr.sbin/tcpdump/print-sl.c
+++ b/usr.sbin/tcpdump/print-sl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: print-sl.c,v 1.21 2018/10/22 16:12:45 kn Exp $ */
+/* $OpenBSD: print-sl.c,v 1.22 2021/12/01 18:28:46 deraadt Exp $ */
/*
* Copyright (c) 1989, 1990, 1991, 1993, 1994, 1995, 1996, 1997
@@ -26,7 +26,6 @@
#include <sys/ioctl.h>
#include <sys/socket.h>
-struct rtentry;
#include <net/if.h>
#include <netinet/in.h>
diff --git a/usr.sbin/tcpdump/print-stp.c b/usr.sbin/tcpdump/print-stp.c
index fbeea005ca6..d9087c75400 100644
--- a/usr.sbin/tcpdump/print-stp.c
+++ b/usr.sbin/tcpdump/print-stp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: print-stp.c,v 1.9 2015/01/16 06:40:21 deraadt Exp $ */
+/* $OpenBSD: print-stp.c,v 1.10 2021/12/01 18:28:46 deraadt Exp $ */
/*
* Copyright (c) 2000 Jason L. Wright (jason@thought.net)
@@ -35,8 +35,6 @@
#include <sys/file.h>
#include <sys/ioctl.h>
-struct mbuf;
-struct rtentry;
#include <net/if.h>
#include <netinet/in.h>
diff --git a/usr.sbin/tcpdump/print-sunrpc.c b/usr.sbin/tcpdump/print-sunrpc.c
index 2bea7421aa1..74a00fbdfa5 100644
--- a/usr.sbin/tcpdump/print-sunrpc.c
+++ b/usr.sbin/tcpdump/print-sunrpc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: print-sunrpc.c,v 1.20 2015/11/16 00:16:39 mmcc Exp $ */
+/* $OpenBSD: print-sunrpc.c,v 1.21 2021/12/01 18:28:46 deraadt Exp $ */
/*
* Copyright (c) 1992, 1993, 1994, 1995, 1996
@@ -24,8 +24,6 @@
#include <sys/time.h>
#include <sys/socket.h>
-struct mbuf;
-struct rtentry;
#include <net/if.h>
#include <netinet/in.h>