Fix the AFI for IPv6.

The Address Family Identifier was not the one I thought it was.
Define it and fix its use for IPv6.

Signed-off-by: Benjamin Cama <benoar@dolka.fr>
This commit is contained in:
Benjamin Cama 2011-07-21 02:49:38 +02:00
parent e86393ea90
commit 3ea85f7c57
2 changed files with 8 additions and 4 deletions

4
bgp.h
View file

@ -67,6 +67,10 @@ struct bgp_mp_cap_param {
uint8_t safi;
} __attribute__ ((packed));
/* bgp_mp_cap_param.afi */
#define BGP_MP_AFI_RESERVED 0
#define BGP_MP_AFI_IPv4 1
#define BGP_MP_AFI_IPv6 2
/* bgp_mp_cap_param.safi */
#define BGP_MP_SAFI_UNICAST 1
#define BGP_MP_SAFI_MULTICAST 2