summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_common.c
diff options
context:
space:
mode:
authorChris Hall <GMCH@hestia.halldom.com>2010-01-27 11:11:54 +0000
committerChris Hall <GMCH@hestia.halldom.com>2010-01-27 11:11:54 +0000
commitffb52b1a705814c52d2d1b41c7058897f11b5aa3 (patch)
treec3887b034c37b95577390c5d33d6d26c347975b2 /bgpd/bgp_common.c
parent8bfae24fc3a8baaca3e419f261f132e454163f57 (diff)
downloadquagga-ffb52b1a705814c52d2d1b41c7058897f11b5aa3.tar.bz2
quagga-ffb52b1a705814c52d2d1b41c7058897f11b5aa3.tar.xz
Wiring up ROUTE-REFRESH and ORF handling. Work-in-progress.
modified: bgpd/bgp.h modified: bgpd/bgp_common.c modified: bgpd/bgp_common.h modified: bgpd/bgp_connection.c modified: bgpd/bgp_connection.h modified: bgpd/bgp_fsm.c modified: bgpd/bgp_fsm.h modified: bgpd/bgp_msg_read.c modified: bgpd/bgp_msg_read.h modified: bgpd/bgp_msg_write.c modified: bgpd/bgp_notification.c modified: bgpd/bgp_notification.h modified: bgpd/bgp_open_state.c modified: bgpd/bgp_open_state.h modified: bgpd/bgp_route_refresh.c modified: bgpd/bgp_route_refresh.h modified: lib/qafi_safi.h
Diffstat (limited to 'bgpd/bgp_common.c')
-rw-r--r--bgpd/bgp_common.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/bgpd/bgp_common.c b/bgpd/bgp_common.c
index 90281ff5..8b2b6cea 100644
--- a/bgpd/bgp_common.c
+++ b/bgpd/bgp_common.c
@@ -62,6 +62,7 @@ qafx_num(qafx_bit_t bit)
/*==============================================================================
* Conversion tables for qafx_num => qAFI and qSAFI
* and qafx_num => iAFI and iSAFI
+ * and qafx_num => pAF
*/
const qAFI_t qAFI_map[] =
@@ -108,6 +109,17 @@ const iSAFI_t iSAFI_map[] =
[qafx_num_other] = iSAFI_Reserved,
} ;
+const pAF_t pAF_map[] =
+ {
+ [qafx_ipv4_unicast] = AF_INET,
+ [qafx_ipv4_multicast] = AF_INET,
+ [qafx_ipv4_mpls_vpn] = AF_INET,
+ [qafx_ipv6_unicast] = AF_INET6,
+ [qafx_ipv6_multicast] = AF_INET6,
+ [qafx_ipv6_mpls_vpn] = AF_INET6,
+ [qafx_num_other] = AF_UNSPEC,
+ } ;
+
/*==============================================================================
* Convert iAFI/iSAFI => qafx_num_t -- tolerates unknown/reserved
* and qAFI/qSAFI => qafx_num_t -- tolerates undef, but not unknown