diff options
author | hannes <hannes> | 2005-03-23 09:22:58 +0000 |
---|---|---|
committer | hannes <hannes> | 2005-03-23 09:22:58 +0000 |
commit | 28a778829da2c239869944c00219f1ebcad5a6ea (patch) | |
tree | dfc218f3532b070671764f632f4e4b30e898e698 /print-bgp.c | |
parent | 973c5c75be4e0c5cec4a18c989bbc06f85243cb8 (diff) | |
download | tcpdump-28a778829da2c239869944c00219f1ebcad5a6ea.tar.gz |
extra printing for IPv6 transcoded CLNP next-hops in the MP-REACH printer
Diffstat (limited to 'print-bgp.c')
-rw-r--r-- | print-bgp.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/print-bgp.c b/print-bgp.c index 8f36df32..57e0c5da 100644 --- a/print-bgp.c +++ b/print-bgp.c @@ -36,7 +36,7 @@ #ifndef lint static const char rcsid[] _U_ = - "@(#) $Header: /tcpdump/master/tcpdump/print-bgp.c,v 1.89 2005-03-22 19:30:59 hannes Exp $"; + "@(#) $Header: /tcpdump/master/tcpdump/print-bgp.c,v 1.90 2005-03-23 09:22:58 hannes Exp $"; #endif #include <tcpdump-stdinc.h> @@ -1139,6 +1139,9 @@ bgp_attr_print(const struct bgp_attr *attr, const u_char *pptr, int len) /* rfc986 mapped IPv4 address ? */ if (EXTRACT_32BITS(tptr+BGP_VPN_RD_LEN) == 0x47000601) printf(" = %s", getname(tptr+BGP_VPN_RD_LEN+4)); + /* rfc1888 mapped IPv6 address ? */ + else if (EXTRACT_24BITS(tptr+BGP_VPN_RD_LEN) == 0x350000) + printf(" = %s", getname6(tptr+BGP_VPN_RD_LEN+3)); tptr += tlen; tlen = 0; } |