diff options
author | 2011-09-18 14:04:36 +0000 | |
---|---|---|
committer | 2011-09-18 14:04:36 +0000 | |
commit | 0924cc522bc3833f34439cbfe19c98c92254276f (patch) | |
tree | ede3b1bca6884ac966dec39b82a63ea250c96b7c | |
parent | Move the pdesc initialization code into pf_setup_pdesc(). Unify (diff) | |
download | wireguard-openbsd-0924cc522bc3833f34439cbfe19c98c92254276f.tar.xz wireguard-openbsd-0924cc522bc3833f34439cbfe19c98c92254276f.zip |
extract 8 octets (as per RFC 2661) rather than a long; with jsing@
-rw-r--r-- | usr.sbin/tcpdump/print-l2tp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/tcpdump/print-l2tp.c b/usr.sbin/tcpdump/print-l2tp.c index 95020de4c13..f8808442145 100644 --- a/usr.sbin/tcpdump/print-l2tp.c +++ b/usr.sbin/tcpdump/print-l2tp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: print-l2tp.c,v 1.6 2011/07/25 18:39:35 claudio Exp $ */ +/* $OpenBSD: print-l2tp.c,v 1.7 2011/09/18 14:04:36 naddy Exp $ */ /* * Copyright (c) 1991, 1993, 1994, 1995, 1996, 1997 @@ -295,7 +295,7 @@ l2tp_bearer_cap_print(const u_char *dat, u_int length) static void l2tp_tie_breaker_print(const u_char *dat, u_int length) { - printf("%lx", *(u_long *)dat); /* XXX */ + print_octets(dat, (length < 8 ? length : 8)); } static void |