summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_rd.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2020-03-22 02:56:36 +0100
committerDonald Sharp <sharpd@cumulusnetworks.com>2020-03-24 12:51:41 +0100
commit5a1ae2c237777c6a5a909b89b302cb9c70825092 (patch)
treedc02bdfec1c72c3f59f3fcba06ffd6f0e7795670 /bgpd/bgp_rd.c
parentbgpd, isisd, lib: Make key values const for skiplist (diff)
downloadfrr-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.c2
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;