diff options
author | 2017-03-08 10:05:30 +0000 | |
---|---|---|
committer | 2017-03-08 10:05:30 +0000 | |
commit | 99350b59c7a9e0576a4545ad81397b87b37c20b2 (patch) | |
tree | b544f0b785688ea09a347763ac5ced58100362b9 /usr.sbin/tcpdump/print-etherip.c | |
parent | argument to the document description (Nd) macro should be lowercase. (diff) | |
download | wireguard-openbsd-99350b59c7a9e0576a4545ad81397b87b37c20b2.tar.xz wireguard-openbsd-99350b59c7a9e0576a4545ad81397b87b37c20b2.zip |
Fix etherip version parsing, ok dlg@
Diffstat (limited to 'usr.sbin/tcpdump/print-etherip.c')
-rw-r--r-- | usr.sbin/tcpdump/print-etherip.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/tcpdump/print-etherip.c b/usr.sbin/tcpdump/print-etherip.c index 640bdebac8e..6c690df8e15 100644 --- a/usr.sbin/tcpdump/print-etherip.c +++ b/usr.sbin/tcpdump/print-etherip.c @@ -1,4 +1,4 @@ -/* $OpenBSD: print-etherip.c,v 1.8 2015/01/16 06:40:21 deraadt Exp $ */ +/* $OpenBSD: print-etherip.c,v 1.9 2017/03/08 10:05:30 jca Exp $ */ /* * Copyright (c) 2001 Jason L. Wright (jason@thought.net) @@ -72,7 +72,7 @@ etherip_print(const u_char *bp, u_int caplen, u_int len, const u_char *bp2) printf("etherip %s > %s ver ", ipaddr_string(&ip->ip_src), ipaddr_string(&ip->ip_dst)); - switch ((*pbuf) & 0xf) { + switch (*pbuf >> 4) { case 2: hlen = 1; printf("%d", 2); |