summaryrefslogtreecommitdiffstats
path: root/usr.sbin/tcpdump/interface.h
diff options
context:
space:
mode:
authorcanacar <canacar@openbsd.org>2005-10-08 19:45:15 +0000
committercanacar <canacar@openbsd.org>2005-10-08 19:45:15 +0000
commitbf8217aef51ef7695ce450c2f339129bee42c23d (patch)
tree8fbf87b31758c492e25c11ad8ec21bfb4f063ca6 /usr.sbin/tcpdump/interface.h
parentCheck IP version when decoding v4 and v6 packets. (diff)
downloadwireguard-openbsd-bf8217aef51ef7695ce450c2f339129bee42c23d.tar.xz
wireguard-openbsd-bf8217aef51ef7695ce450c2f339129bee42c23d.zip
Add a best effort mpls decoder. From Jason L. Wright.
Since the encapsulated protocol information is not always available in the MPLS tag stack. The decoder attempts to guess the protocol. ok brad@
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 491ba064245..93d3738d21c 100644
--- a/usr.sbin/tcpdump/interface.h
+++ b/usr.sbin/tcpdump/interface.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: interface.h,v 1.49 2005/05/28 09:01:52 reyk Exp $ */
+/* $OpenBSD: interface.h,v 1.50 2005/10/08 19:45:15 canacar 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.
*
- * @(#) $Header: /home/cvs/src/usr.sbin/tcpdump/interface.h,v 1.49 2005/05/28 09:01:52 reyk Exp $ (LBL)
+ * @(#) $Header: /home/cvs/src/usr.sbin/tcpdump/interface.h,v 1.50 2005/10/08 19:45:15 canacar Exp $ (LBL)
*/
#ifndef tcpdump_interface_h
@@ -271,6 +271,7 @@ extern void lwres_print(const u_char *, u_int);
extern void ether_print(const u_char *, u_int);
extern void etherip_print(const u_char *, u_int, const u_char *);
extern void ipcomp_print(const u_char *, u_int, const u_char *);
+extern void mpls_print(const u_char *, u_int);
#ifdef INET6
extern void ip6_print(const u_char *, int);