summaryrefslogtreecommitdiff
path: root/bgpd/bgp_ecommunity.h
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2021-01-17 16:08:03 -0500
committerDonald Sharp <sharpd@nvidia.com>2021-01-18 09:06:49 -0500
commitf6e07e1bdf6c5d4dfbc4f8b5e9a42efe71c67243 (patch)
treecab7ee7c9c704058c3e65e713c42b4de6b069591 /bgpd/bgp_ecommunity.h
parent3a15018892e7d708023d3315474570a29969d080 (diff)
bgpd: Use uint32_t for size value instead of int in ecommunity struct
The `struct ecommunity` structure is using an int for a size value. Let's switch it over to a uint32_t for size values since a size value for data can never be negative. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'bgpd/bgp_ecommunity.h')
-rw-r--r--bgpd/bgp_ecommunity.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/bgpd/bgp_ecommunity.h b/bgpd/bgp_ecommunity.h
index 6318e7edb1..6d0275a0c3 100644
--- a/bgpd/bgp_ecommunity.h
+++ b/bgpd/bgp_ecommunity.h
@@ -114,7 +114,7 @@ struct ecommunity {
uint8_t unit_size;
/* Size of Extended Communities attribute. */
- int size;
+ uint32_t size;
/* Extended Communities value. */
uint8_t *val;