summaryrefslogtreecommitdiffstats
path: root/pimd/pim_msg.h
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetwroks.com>2016-07-27 22:33:41 +0200
committerDonald Sharp <sharpd@cumulusnetworks.com>2016-12-22 02:26:04 +0100
commit346cffe31ef871d7876aacafea9cf4086146f110 (patch)
treedc263ae1062b386a4aa37fb56599c3943cd37f16 /pimd/pim_msg.h
parentpimd: Start abstraction for WC and RPT bits (diff)
downloadfrr-346cffe31ef871d7876aacafea9cf4086146f110.tar.xz
frr-346cffe31ef871d7876aacafea9cf4086146f110.zip
pimd: Revamp send of join/prune to actually set bits right.
When a *,G report is sent, the RPT and WC bits are set as well as the source is the RP address for the group. If this routers idea of the RP for this group is different than the idea of the RP from the sender than that particular *,G can be dropped. Ticket: CM-12031 Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'pimd/pim_msg.h')
-rw-r--r--pimd/pim_msg.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/pimd/pim_msg.h b/pimd/pim_msg.h
index 4a13040af..1bd8207cc 100644
--- a/pimd/pim_msg.h
+++ b/pimd/pim_msg.h
@@ -53,4 +53,8 @@ uint8_t *pim_msg_addr_encode_ipv4_source(uint8_t *buf,
struct in_addr addr,
uint8_t bits);
+
+int pim_msg_join_prune_encode (uint8_t *buf, int buf_size, int is_join,
+ struct in_addr source, struct in_addr group,
+ struct in_addr upstream, int holdtime);
#endif /* PIM_MSG_H */