summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_attr.h
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2017-08-26 01:27:22 +0200
committerDavid Lamparter <equinox@opensourcerouting.org>2017-08-26 01:46:40 +0200
commit8c9cc7bbf657e3440d9bc758fe45aef5f43c989f (patch)
tree414bc255a10402911772a195625fa819afcdd3ff /bgpd/bgp_attr.h
parent*: fix compiler warnings (diff)
downloadfrr-8c9cc7bbf657e3440d9bc758fe45aef5f43c989f.tar.xz
frr-8c9cc7bbf657e3440d9bc758fe45aef5f43c989f.zip
bgpd: encap: fix extension sizing
Variably-sized struct tails are done as [0], not [1]. The latter triggers compiler warnings and mis-sizes "sizeof(struct) + n" expressions. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to '')
-rw-r--r--bgpd/bgp_attr.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/bgpd/bgp_attr.h b/bgpd/bgp_attr.h
index 324813c08..4dd38459f 100644
--- a/bgpd/bgp_attr.h
+++ b/bgpd/bgp_attr.h
@@ -72,7 +72,7 @@ struct bgp_attr_encap_subtlv {
unsigned long refcnt;
uint16_t type;
uint16_t length;
- uint8_t value[1]; /* will be extended */
+ uint8_t value[0]; /* will be extended */
};
#if ENABLE_BGP_VNC