summaryrefslogtreecommitdiffstats
path: root/usr.sbin/tcpdump/interface.h
diff options
context:
space:
mode:
authornaddy <naddy@openbsd.org>2010-01-12 06:10:33 +0000
committernaddy <naddy@openbsd.org>2010-01-12 06:10:33 +0000
commit29b017f6103c6f450d336561eb02738e7b2190f3 (patch)
tree219295804d20285e1e493c2bdc2c965b59269362 /usr.sbin/tcpdump/interface.h
parentRemove simple_unlock() that is mistakenly introduced and add required (diff)
downloadwireguard-openbsd-29b017f6103c6f450d336561eb02738e7b2190f3.tar.xz
wireguard-openbsd-29b017f6103c6f450d336561eb02738e7b2190f3.zip
Add TCP/UDP checksum display for v6 and clean up the checksum
calculation. Mostly from tcpdump.org; ok jsing@
Diffstat (limited to 'usr.sbin/tcpdump/interface.h')
-rw-r--r--usr.sbin/tcpdump/interface.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/tcpdump/interface.h b/usr.sbin/tcpdump/interface.h
index c6aee4b2c65..4475e742570 100644
--- a/usr.sbin/tcpdump/interface.h
+++ b/usr.sbin/tcpdump/interface.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: interface.h,v 1.59 2009/11/04 09:43:11 jsing Exp $ */
+/* $OpenBSD: interface.h,v 1.60 2010/01/12 06:10:33 naddy 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.59 2009/11/04 09:43:11 jsing Exp $ (LBL)
+ * @(#) $Id: interface.h,v 1.60 2010/01/12 06:10:33 naddy Exp $ (LBL)
*/
#ifndef tcpdump_interface_h
@@ -288,4 +288,4 @@ extern void ospf6_print(const u_char *, u_int);
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, u_short csum);
+extern u_short in_cksum(const u_short *addr, register int len, int csum);