diff options
author | Donald Sharp <sharpd@cumulusnetworks.com> | 2020-03-22 02:56:36 +0100 |
---|---|---|
committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2020-03-24 12:51:41 +0100 |
commit | 5a1ae2c237777c6a5a909b89b302cb9c70825092 (patch) | |
tree | dc02bdfec1c72c3f59f3fcba06ffd6f0e7795670 /bgpd/bgp_rd.c | |
parent | bgpd, isisd, lib: Make key values const for skiplist (diff) | |
download | frr-5a1ae2c237777c6a5a909b89b302cb9c70825092.tar.xz frr-5a1ae2c237777c6a5a909b89b302cb9c70825092.zip |
bgpd: Rework code to use `const struct prefix`
Future work needs the ability to specify a
const struct prefix value. Iterate into
bgp a bit to get this started.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'bgpd/bgp_rd.c')
-rw-r--r-- | bgpd/bgp_rd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bgpd/bgp_rd.c b/bgpd/bgp_rd.c index ea9758349..5facf3269 100644 --- a/bgpd/bgp_rd.c +++ b/bgpd/bgp_rd.c @@ -76,7 +76,7 @@ void decode_rd_as4(const uint8_t *pnt, struct rd_as *rd_as) } /* type == RD_TYPE_IP */ -void decode_rd_ip(uint8_t *pnt, struct rd_ip *rd_ip) +void decode_rd_ip(const uint8_t *pnt, struct rd_ip *rd_ip) { memcpy(&rd_ip->ip, pnt, 4); pnt += 4; |