diff options
author | hannes <hannes> | 2002-07-02 10:05:09 +0000 |
---|---|---|
committer | hannes <hannes> | 2002-07-02 10:05:09 +0000 |
commit | 92606eca34150e094055e2c429c50f95f37ba520 (patch) | |
tree | 51e6ab32fe15e21d2ede829602a8155b48067a37 /print-bgp.c | |
parent | 84dbd61af931df3416a4df1fc2d0c855bc8c6b37 (diff) | |
download | tcpdump-92606eca34150e094055e2c429c50f95f37ba520.tar.gz |
some SAFIs for labeled BGP (code still missing)
Diffstat (limited to 'print-bgp.c')
-rw-r--r-- | print-bgp.c | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/print-bgp.c b/print-bgp.c index 14eb508d..a6817ecb 100644 --- a/print-bgp.c +++ b/print-bgp.c @@ -33,7 +33,7 @@ #ifndef lint static const char rcsid[] = - "@(#) $Header: /tcpdump/master/tcpdump/print-bgp.c,v 1.30 2002-06-11 17:08:43 itojun Exp $"; + "@(#) $Header: /tcpdump/master/tcpdump/print-bgp.c,v 1.31 2002-07-02 10:05:09 hannes Exp $"; #endif #include <sys/param.h> @@ -200,6 +200,10 @@ static const char *bgpattr_type[] = { #define SAFNUM_UNIMULTICAST 3 /* labeled BGP RFC3107 */ #define SAFNUM_LABUNICAST 4 +/* Section 4.3.4 of draft-rosen-rfc2547bis-03.txt */ +#define SAFNUM_VPNUNICAST 128 +#define SAFNUM_VPNMULTICAST 129 +#define SAFNUM_VPNANYCAST 130 static const char *bgpattr_nlri_safi[] = { "Reserved", "Unicast", "Multicast", "Unicast+Multicast", "labeled Unicast" @@ -312,7 +316,7 @@ decode_labeled_prefix4(const u_char *pd, char *buf, u_int buflen) is added of the prefix length; we also do only read out just one label - there is no real application for advertisment of - stacked labels in a asingle BGP message + stacked labels in a a single BGP message */ plen-=24; /* adjust prefixlen - labellength */ @@ -850,3 +854,9 @@ bgp_print(const u_char *dat, int length) trunc: printf(" [|BGP]"); } + + + + + + |