From 69b8317b56e676c586c3ede2f3819978260aa031 Mon Sep 17 00:00:00 2001 From: dlg Date: Thu, 8 Feb 2018 09:01:45 +0000 Subject: [PATCH] recognise gre proto 0 as a "keep alive" packet --- usr.sbin/tcpdump/print-gre.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; -- 2.20.1