summaryrefslogtreecommitdiff
path: root/pimd/pim_bsr_rpdb.c
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2024-10-16 12:45:35 +0200
committerDavid Lamparter <equinox@opensourcerouting.org>2024-10-16 13:30:25 +0200
commit6476f9deac140ce017e1959fa4eb8fff19b8c60f (patch)
tree2d0c09628e6a12a4990709e6c577648fa26d8b53 /pimd/pim_bsr_rpdb.c
parent3ce0fe0e089d6cc7e95e075f9c03a980ecfb8abd (diff)
pimd: mark rest-of-packet ignored in C-RP parse
The `buf` pointer is being updated as the parse goes along. It's not used after the last update, but I'd rather keep this in for consistency. Just make a note of it being unused. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'pimd/pim_bsr_rpdb.c')
-rw-r--r--pimd/pim_bsr_rpdb.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/pimd/pim_bsr_rpdb.c b/pimd/pim_bsr_rpdb.c
index 3ec9f99cd1..6e93b65f4b 100644
--- a/pimd/pim_bsr_rpdb.c
+++ b/pimd/pim_bsr_rpdb.c
@@ -502,6 +502,9 @@ int pim_crp_process(struct interface *ifp, pim_sgaddr *src_dst, uint8_t *buf,
buf += sizeof(*crp_hdr);
remain -= sizeof(*crp_hdr);
+ /* ignore trailing data */
+ (void)buf;
+
size_t ngroups = crp_hdr->prefix_cnt;
if (remain < ngroups * sizeof(struct pim_encoded_group_ipv4)) {