diff options
author | 2010-06-30 19:01:06 +0000 | |
---|---|---|
committer | 2010-06-30 19:01:06 +0000 | |
commit | 9ddd9e6346aa1d7553f6f695ea6e562fb2b8f5be (patch) | |
tree | 81f42baf75ee93070491caed84acef27e7f7c246 | |
parent | fix route label awesomeness, issue also known as PR6416 (diff) | |
download | wireguard-openbsd-9ddd9e6346aa1d7553f6f695ea6e562fb2b8f5be.tar.xz wireguard-openbsd-9ddd9e6346aa1d7553f6f695ea6e562fb2b8f5be.zip |
Print MPLS label as decimal and not hex. All other places we print MPLS
labels we use decimal.
OK jsg@ deraadt@
-rw-r--r-- | usr.sbin/tcpdump/print-mpls.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/tcpdump/print-mpls.c b/usr.sbin/tcpdump/print-mpls.c index 946ababa612..3228e1a28be 100644 --- a/usr.sbin/tcpdump/print-mpls.c +++ b/usr.sbin/tcpdump/print-mpls.c @@ -1,4 +1,4 @@ -/* $OpenBSD: print-mpls.c,v 1.1 2005/10/08 19:45:15 canacar Exp $ */ +/* $OpenBSD: print-mpls.c,v 1.2 2010/06/30 19:01:06 claudio Exp $ */ /* * Copyright (c) 2005 Jason L. Wright (jason@thought.net) @@ -49,7 +49,7 @@ mpls_print(const u_char *bp, u_int len) bottom = (tag >> 8) & 0x1; ttl = (tag >> 0) & 0xff; - printf("MPLS(label 0x%x, exp %u, ttl %u) ", label, exp, ttl); + printf("MPLS(label %u, exp %u, ttl %u) ", label, exp, ttl); /* XXX decode "Router Alert Label" */ |