Advertise IPv6 capability to peers.

Also rename a param define, and fix a forgotten ntohs().

Signed-off-by: Benjamin Cama <benoar@dolka.fr>
This commit is contained in:
Benjamin Cama 2011-07-20 00:22:18 +02:00
parent 1032adb5b4
commit 5305d86922
2 changed files with 18 additions and 4 deletions

2
bgp.h
View file

@ -50,7 +50,7 @@ struct bgp_opt_param {
char value[BGP_MAX_OPT_PARAM_SIZE];
} __attribute__ ((packed));
#define BGP_CAPABILITY_PARAM_TYPE 2
#define BGP_PARAM_TYPE_CAPABILITY 2
struct bgp_capability {
uint8_t code;
uint8_t len;