diff options
author | dlg <dlg@openbsd.org> | 2018-02-08 09:01:45 +0000 |
---|---|---|
committer | dlg <dlg@openbsd.org> | 2018-02-08 09:01:45 +0000 |
commit | 69b8317b56e676c586c3ede2f3819978260aa031 (patch) | |
tree | ee4b9f2fcafc47075b038b16ab62c9b3035f473b /usr.sbin/tcpdump/print-gre.c | |
parent | some helpers to check verbose/quiet mode (diff) | |
download | wireguard-openbsd-69b8317b56e676c586c3ede2f3819978260aa031.tar.xz wireguard-openbsd-69b8317b56e676c586c3ede2f3819978260aa031.zip |
recognise gre proto 0 as a "keep alive" packet
Diffstat (limited to 'usr.sbin/tcpdump/print-gre.c')
-rw-r--r-- | usr.sbin/tcpdump/print-gre.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.sbin/tcpdump/print-gre.c b/usr.sbin/tcpdump/print-gre.c index 1677449f65c..4890cf87517 100644 --- a/usr.sbin/tcpdump/print-gre.c +++ b/usr.sbin/tcpdump/print-gre.c @@ -1,4 +1,4 @@ -/* $OpenBSD: print-gre.c,v 1.14 2018/02/07 06:26:14 dlg Exp $ */ +/* $OpenBSD: print-gre.c,v 1.15 2018/02/08 09:01:45 dlg Exp $ */ /* * Copyright (c) 2002 Jason L. Wright (jason@thought.net) @@ -204,6 +204,9 @@ gre_print_0(const u_char *p, u_int length) printf(" "); switch (proto) { + case 0: + printf("keep-alive"); + break; case ETHERTYPE_IP: ip_print(p, length); break; |