mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-05-01 17:59:27 +00:00
Merge pull request #9313 from idryzhov/bgp-zebra-opaque
BGP opaque data improvements
This commit is contained in:
commit
f932b4eef3
@ -21,12 +21,15 @@
|
|||||||
#ifndef FRR_ROUTE_OPAQUE_H
|
#ifndef FRR_ROUTE_OPAQUE_H
|
||||||
#define FRR_ROUTE_OPAQUE_H
|
#define FRR_ROUTE_OPAQUE_H
|
||||||
|
|
||||||
|
#include "assert.h"
|
||||||
|
#include "zclient.h"
|
||||||
|
|
||||||
#include "bgpd/bgp_aspath.h"
|
#include "bgpd/bgp_aspath.h"
|
||||||
#include "bgpd/bgp_community.h"
|
#include "bgpd/bgp_community.h"
|
||||||
#include "bgpd/bgp_lcommunity.h"
|
#include "bgpd/bgp_lcommunity.h"
|
||||||
|
|
||||||
struct bgp_zebra_opaque {
|
struct bgp_zebra_opaque {
|
||||||
char aspath[ASPATH_STR_DEFAULT_LEN];
|
char aspath[256];
|
||||||
|
|
||||||
/* Show at least 10 communities AA:BB */
|
/* Show at least 10 communities AA:BB */
|
||||||
char community[COMMUNITY_SIZE * 20];
|
char community[COMMUNITY_SIZE * 20];
|
||||||
@ -35,4 +38,7 @@ struct bgp_zebra_opaque {
|
|||||||
char lcommunity[LCOMMUNITY_SIZE * 30];
|
char lcommunity[LCOMMUNITY_SIZE * 30];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
static_assert(sizeof(struct bgp_zebra_opaque) <= ZAPI_MESSAGE_OPAQUE_LENGTH,
|
||||||
|
"BGP opaque data shouldn't be larger than zebra's buffer");
|
||||||
|
|
||||||
#endif /* FRR_ROUTE_OPAQUE_H */
|
#endif /* FRR_ROUTE_OPAQUE_H */
|
||||||
|
Loading…
Reference in New Issue
Block a user