|
Lines 132-137
Link Here
|
| 132 |
#define BGPTYPE_AS4_PATH 17 /* RFC4893 */ |
132 |
#define BGPTYPE_AS4_PATH 17 /* RFC4893 */ |
| 133 |
#define BGPTYPE_AGGREGATOR4 18 /* RFC4893 */ |
133 |
#define BGPTYPE_AGGREGATOR4 18 /* RFC4893 */ |
| 134 |
#define BGPTYPE_PMSI_TUNNEL 22 /* draft-ietf-l3vpn-2547bis-mcast-bgp-02.txt */ |
134 |
#define BGPTYPE_PMSI_TUNNEL 22 /* draft-ietf-l3vpn-2547bis-mcast-bgp-02.txt */ |
|
|
135 |
#define BGPTYPE_LARGE_COMMUNITIES 30 /* draft-ietf-idr-large-community */ |
| 135 |
#define BGPTYPE_ATTR_SET 128 /* draft-marques-ppvpn-ibgp */ |
136 |
#define BGPTYPE_ATTR_SET 128 /* draft-marques-ppvpn-ibgp */ |
| 136 |
|
137 |
|
| 137 |
#define BGP_MP_NLRI_MINSIZE 3 /* End of RIB Marker detection */ |
138 |
#define BGP_MP_NLRI_MINSIZE 3 /* End of RIB Marker detection */ |
|
Lines 157-162
Link Here
|
| 157 |
{ BGPTYPE_EXTD_COMMUNITIES, "Extended Community"}, |
158 |
{ BGPTYPE_EXTD_COMMUNITIES, "Extended Community"}, |
| 158 |
{ BGPTYPE_PMSI_TUNNEL, "PMSI Tunnel"}, |
159 |
{ BGPTYPE_PMSI_TUNNEL, "PMSI Tunnel"}, |
| 159 |
{ BGPTYPE_ATTR_SET, "Attribute Set"}, |
160 |
{ BGPTYPE_ATTR_SET, "Attribute Set"}, |
|
|
161 |
{ BGPTYPE_LARGE_COMMUNITIES, "Large Community"}, |
| 160 |
{ 255, "Reserved for development"}, |
162 |
{ 255, "Reserved for development"}, |
| 161 |
{ 0, NULL} |
163 |
{ 0, NULL} |
| 162 |
}; |
164 |
}; |
|
Lines 1462-1467
Link Here
|
| 1462 |
tptr +=4; |
1464 |
tptr +=4; |
| 1463 |
} |
1465 |
} |
| 1464 |
break; |
1466 |
break; |
|
|
1467 |
case BGPTYPE_LARGE_COMMUNITIES: |
| 1468 |
if (len == 0 || len % 12) { |
| 1469 |
ND_PRINT((ndo, "invalid len")); |
| 1470 |
break; |
| 1471 |
} |
| 1472 |
while (tlen>0) { |
| 1473 |
ND_TCHECK2(tptr[0], 12); |
| 1474 |
ND_PRINT((ndo, "%u:%u:%u%s", |
| 1475 |
EXTRACT_32BITS(tptr), |
| 1476 |
EXTRACT_32BITS(tptr + 4), |
| 1477 |
EXTRACT_32BITS(tptr + 8), |
| 1478 |
(tlen>12) ? ", " : "")); |
| 1479 |
tlen -= 12; |
| 1480 |
tptr += 12; |
| 1481 |
} |
| 1482 |
break; |
| 1465 |
case BGPTYPE_ORIGINATOR_ID: |
1483 |
case BGPTYPE_ORIGINATOR_ID: |
| 1466 |
if (len != 4) { |
1484 |
if (len != 4) { |
| 1467 |
ND_PRINT((ndo, "invalid len")); |
1485 |
ND_PRINT((ndo, "invalid len")); |