From 7e5f769d91319b4130f7d611dd14252806892ace Mon Sep 17 00:00:00 2001 From: "Ondrej Zajicek (work)" Date: Fri, 15 Mar 2019 20:54:01 +0100 Subject: BGP: Handle case where capabilites are not used If peer does not announce capabilities at all, or when we have capabilities disabled, handle that as implicit IPv4 unicast. --- proto/bgp/bgp.h | 1 + 1 file changed, 1 insertion(+) (limited to 'proto/bgp/bgp.h') diff --git a/proto/bgp/bgp.h b/proto/bgp/bgp.h index cfc88d8e..56dbf485 100644 --- a/proto/bgp/bgp.h +++ b/proto/bgp/bgp.h @@ -215,6 +215,7 @@ struct bgp_caps { u8 llgr_aware; /* Long-lived GR capability, RFC draft */ u16 af_count; /* Number of af_data items */ + u16 length; /* Length of capabilities in OPEN msg */ struct bgp_af_caps af_data[0]; /* Per-AF capability data */ }; -- cgit v1.2.3