diff options
| author | Quentin Young <qlyoung@cumulusnetworks.com> | 2019-11-21 19:01:55 -0500 | 
|---|---|---|
| committer | Quentin Young <qlyoung@cumulusnetworks.com> | 2019-11-22 03:26:28 -0500 | 
| commit | 91085f974a29a43bf6ec6f2c1b13df281837bd88 (patch) | |
| tree | 778067f160fc6a30d30de4dafeb7afc1e00ca701 /bgpd/bgp_ecommunity.h | |
| parent | 21c64e0895b4ad050474d417ccd1d43a30eb9ab9 (diff) | |
bgpd: use safe functions to work with ecom attrs
Tons of insane just-so pointer math here where it is not needed. This is
too smart. Use safer methods.
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'bgpd/bgp_ecommunity.h')
| -rw-r--r-- | bgpd/bgp_ecommunity.h | 2 | 
1 files changed, 0 insertions, 2 deletions
diff --git a/bgpd/bgp_ecommunity.h b/bgpd/bgp_ecommunity.h index 249e5bf7de..ae64f41ca1 100644 --- a/bgpd/bgp_ecommunity.h +++ b/bgpd/bgp_ecommunity.h @@ -105,8 +105,6 @@ struct ecommunity_val {  	char val[ECOMMUNITY_SIZE];  }; -#define ecom_length(X)    ((X)->size * ECOMMUNITY_SIZE) -  /*   * Encode BGP Route Target AS:nn.   */  | 
