summaryrefslogtreecommitdiffstats
path: root/usr.sbin/tcpdump/interface.h
diff options
context:
space:
mode:
authorlteo <lteo@openbsd.org>2014-06-20 04:01:42 +0000
committerlteo <lteo@openbsd.org>2014-06-20 04:01:42 +0000
commit7988cf09f65adc6078e10237b58c02ea94c06cae (patch)
treef0f767a63221e35901328092dfc4b7d621111eb5 /usr.sbin/tcpdump/interface.h
parentMore tweaking of set_basedir(). (diff)
downloadwireguard-openbsd-7988cf09f65adc6078e10237b58c02ea94c06cae.tar.xz
wireguard-openbsd-7988cf09f65adc6078e10237b58c02ea94c06cae.zip
Import in_cksum_shouldbe() from mainline tcpdump; this is needed by my
upcoming commit which will fix and improve the display of bad checksums for the major protocols. ok henning@
Diffstat (limited to 'usr.sbin/tcpdump/interface.h')
-rw-r--r--usr.sbin/tcpdump/interface.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/tcpdump/interface.h b/usr.sbin/tcpdump/interface.h
index 7525dd91700..cae66649ba9 100644
--- a/usr.sbin/tcpdump/interface.h
+++ b/usr.sbin/tcpdump/interface.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: interface.h,v 1.62 2014/01/11 04:35:52 lteo Exp $ */
+/* $OpenBSD: interface.h,v 1.63 2014/06/20 04:01:42 lteo Exp $ */
/*
* Copyright (c) 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997
@@ -20,7 +20,7 @@
* WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*
- * @(#) $Id: interface.h,v 1.62 2014/01/11 04:35:52 lteo Exp $ (LBL)
+ * @(#) $Id: interface.h,v 1.63 2014/06/20 04:01:42 lteo Exp $ (LBL)
*/
#ifndef tcpdump_interface_h
@@ -289,3 +289,4 @@ extern void dhcp6_print(const u_char *, u_int, u_short, u_short);
#endif /*INET6*/
extern u_short in_cksum(const u_short *addr, register int len, int csum);
+extern u_int16_t in_cksum_shouldbe(u_int16_t, u_int16_t);