diff options
author | 2007-06-14 03:23:49 +0000 | |
---|---|---|
committer | 2007-06-14 03:23:49 +0000 | |
commit | 77af516fbf64b1179fbf725bc421a3951dd1a3be (patch) | |
tree | 76dd51392bf0f42f3af4140b9ed18d1cc6b3079f /usr.sbin/tcpdump/print-ospf.c | |
parent | - shorten -c's argument name to avoid ugly line split (diff) | |
download | wireguard-openbsd-77af516fbf64b1179fbf725bc421a3951dd1a3be.tar.xz wireguard-openbsd-77af516fbf64b1179fbf725bc421a3951dd1a3be.zip |
The External Route Tag for AS-External-LSAs can be an arbitrary 32bit
value and doesn't need to be an IPv4 address. It is more like a
vendor-specific field.
as discussed with claudio after looking into rfc2328
Diffstat (limited to 'usr.sbin/tcpdump/print-ospf.c')
-rw-r--r-- | usr.sbin/tcpdump/print-ospf.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.sbin/tcpdump/print-ospf.c b/usr.sbin/tcpdump/print-ospf.c index ddd85f289e8..7955f07fcb1 100644 --- a/usr.sbin/tcpdump/print-ospf.c +++ b/usr.sbin/tcpdump/print-ospf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: print-ospf.c,v 1.11 2006/04/21 23:09:34 cloder Exp $ */ +/* $OpenBSD: print-ospf.c,v 1.12 2007/06/14 03:23:49 reyk Exp $ */ /* * Copyright (c) 1992, 1993, 1994, 1995, 1996, 1997 @@ -25,7 +25,7 @@ #ifndef lint static const char rcsid[] = - "@(#) $Header: /home/cvs/src/usr.sbin/tcpdump/print-ospf.c,v 1.11 2006/04/21 23:09:34 cloder Exp $ (LBL)"; + "@(#) $Header: /home/cvs/src/usr.sbin/tcpdump/print-ospf.c,v 1.12 2007/06/14 03:23:49 reyk Exp $ (LBL)"; #endif #include <sys/param.h> @@ -320,9 +320,9 @@ ospf_print_lsa(register const struct lsa *lsap) ipaddr_string(&almp->asla_forward)); } TCHECK(almp->asla_tag); - if (almp->asla_tag.s_addr) { - printf(" tag %s", - ipaddr_string(&almp->asla_tag)); + if (almp->asla_tag) { + printf(" tag %u", + ntohl(almp->asla_tag)); } ++almp; } |