summaryrefslogtreecommitdiffhomepage
path: root/packet/bgp
diff options
context:
space:
mode:
authorShu Sugimoto <shu@su.gimo.to>2016-10-07 22:53:06 +0900
committerShu Sugimoto <shu@su.gimo.to>2016-10-07 22:53:06 +0900
commitbd42075ef02f1c1c99fb00eedc08a887f71a8303 (patch)
tree940ce445c955f08c69b0ca20efa1792d8b1ad48f /packet/bgp
parent60ebbb99b44b46060b1831366ebe6c0aa7d992ec (diff)
Add BLACKHOLE community support (RFC7999)
Diffstat (limited to 'packet/bgp')
-rw-r--r--packet/bgp/bgp.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/packet/bgp/bgp.go b/packet/bgp/bgp.go
index 405469df..60c48080 100644
--- a/packet/bgp/bgp.go
+++ b/packet/bgp/bgp.go
@@ -4697,6 +4697,7 @@ const (
COMMUNITY_ROUTE_FILTER_v6 = 0xffff0005
COMMUNITY_LLGR_STALE = 0xffff0006
COMMUNITY_NO_LLGR = 0xffff0007
+ COMMUNITY_BLACKHOLE = 0xffff029a
COMMUNITY_NO_EXPORT = 0xffffff01
COMMUNITY_NO_ADVERTISE = 0xffffff02
COMMUNITY_NO_EXPORT_SUBCONFED = 0xffffff03
@@ -4713,6 +4714,7 @@ var WellKnownCommunityNameMap = map[WellKnownCommunity]string{
COMMUNITY_ROUTE_FILTER_v6: "route-filter-v6",
COMMUNITY_LLGR_STALE: "llgr-stale",
COMMUNITY_NO_LLGR: "no-llgr",
+ COMMUNITY_BLACKHOLE: "blackhole",
COMMUNITY_NO_EXPORT: "no-export",
COMMUNITY_NO_ADVERTISE: "no-advertise",
COMMUNITY_NO_EXPORT_SUBCONFED: "no-export-subconfed",
@@ -4730,6 +4732,7 @@ var WellKnownCommunityValueMap = map[string]WellKnownCommunity{
WellKnownCommunityNameMap[COMMUNITY_LLGR_STALE]: COMMUNITY_LLGR_STALE,
WellKnownCommunityNameMap[COMMUNITY_NO_LLGR]: COMMUNITY_NO_LLGR,
WellKnownCommunityNameMap[COMMUNITY_NO_EXPORT]: COMMUNITY_NO_EXPORT,
+ WellKnownCommunityNameMap[COMMUNITY_BLACKHOLE]: COMMUNITY_BLACKHOLE,
WellKnownCommunityNameMap[COMMUNITY_NO_ADVERTISE]: COMMUNITY_NO_ADVERTISE,
WellKnownCommunityNameMap[COMMUNITY_NO_EXPORT_SUBCONFED]: COMMUNITY_NO_EXPORT_SUBCONFED,
WellKnownCommunityNameMap[COMMUNITY_NO_PEER]: COMMUNITY_NO_PEER,