diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2010-06-30 19:01:07 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2010-06-30 19:01:07 +0000 |
commit | c002370e6d2ac868c778fa017e4c4963076c1535 (patch) | |
tree | ddaa558d85553a58dd1c88e789e92d387fdd3440 | |
parent | 9e374d34abb131bdbcbeccda0201c493b1b67800 (diff) |
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" */ |