diff options
author | Christian Weisgerber <naddy@cvs.openbsd.org> | 2011-09-18 14:04:37 +0000 |
---|---|---|
committer | Christian Weisgerber <naddy@cvs.openbsd.org> | 2011-09-18 14:04:37 +0000 |
commit | 23847114ac4076d41cf02652dc94fa04a5f6f3cf (patch) | |
tree | f2ee6d97ff5ef38e9073d6a022caa6e10ac6aeeb /usr.sbin/tcpdump/print-l2tp.c | |
parent | 6d823e07fed95b18cbecd140d75419d164b73178 (diff) |
extract 8 octets (as per RFC 2661) rather than a long; with jsing@
Diffstat (limited to 'usr.sbin/tcpdump/print-l2tp.c')
-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 |