]> git.puffer.fish Git - mirror/frr.git/commitdiff
pimd: mark rest-of-packet ignored in C-RP parse
authorDavid Lamparter <equinox@opensourcerouting.org>
Wed, 16 Oct 2024 10:45:35 +0000 (12:45 +0200)
committerDavid Lamparter <equinox@opensourcerouting.org>
Wed, 16 Oct 2024 11:30:25 +0000 (13:30 +0200)
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>
pimd/pim_bsr_rpdb.c

index 3ec9f99cd198b6142457f1d510a586de44061eb9..6e93b65f4b99e27578eb06aa8fc719349bfda033 100644 (file)
@@ -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)) {