summaryrefslogtreecommitdiffhomepage
path: root/packet
diff options
context:
space:
mode:
authorISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>2015-06-20 13:17:59 +0900
committerISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>2015-06-20 15:31:50 +0900
commit124733d4d3024f37a2dffce93fcc60400f62d421 (patch)
tree53fa406907219ad89d1043962e494229924f32ff /packet
parentc3d99e9959da8bb6cf1e5bb797bc29b6e1d62f18 (diff)
packet: handle RF_IPV4_MC, RF_IPV6_MC cases in routeFamilyPrefix()
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'packet')
-rw-r--r--packet/bgp.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/packet/bgp.go b/packet/bgp.go
index e8ebe3e0..15888439 100644
--- a/packet/bgp.go
+++ b/packet/bgp.go
@@ -1690,9 +1690,9 @@ func GetRouteFamily(name string) (RouteFamily, error) {
func routeFamilyPrefix(afi uint16, safi uint8) (prefix AddrPrefixInterface, err error) {
switch AfiSafiToRouteFamily(afi, safi) {
- case RF_IPv4_UC:
+ case RF_IPv4_UC, RF_IPv4_MC:
prefix = NewIPAddrPrefix(0, "")
- case RF_IPv6_UC:
+ case RF_IPv6_UC, RF_IPv6_MC:
prefix = NewIPv6AddrPrefix(0, "")
case RF_IPv4_VPN:
prefix = NewLabelledVPNIPAddrPrefix(0, "", *NewLabel(), nil)