diff options
Diffstat (limited to 'usr.sbin/tcpdump/print-ip6.c')
-rw-r--r-- | usr.sbin/tcpdump/print-ip6.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/usr.sbin/tcpdump/print-ip6.c b/usr.sbin/tcpdump/print-ip6.c index 0f4b0efc0ef..2a13577433f 100644 --- a/usr.sbin/tcpdump/print-ip6.c +++ b/usr.sbin/tcpdump/print-ip6.c @@ -1,4 +1,4 @@ -/* $OpenBSD: print-ip6.c,v 1.23 2015/11/16 00:16:39 mmcc Exp $ */ +/* $OpenBSD: print-ip6.c,v 1.24 2016/12/13 06:40:21 dlg Exp $ */ /* * Copyright (c) 1988, 1989, 1990, 1991, 1992, 1993, 1994 @@ -184,6 +184,18 @@ ip6_print(const u_char *bp, u_int length) if (! vflag) printf(" (encap)"); goto end; + +#ifndef IPPROTO_GRE +#define IPPROTO_GRE 47 +#endif + case IPPROTO_GRE: + gre_print(cp, len); + if (! vflag) { + printf(" (gre encap)"); + goto out; + } + goto end; + case IPPROTO_NONE: (void)printf("no next header"); goto end; |