summaryrefslogtreecommitdiffstats
path: root/pimd/pim_msg.h
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetwroks.com>2016-07-27 21:27:52 +0200
committerDonald Sharp <sharpd@cumulusnetworks.com>2016-12-22 02:26:04 +0100
commit984c84f48600a9c6b7b0513e3ad8f234465dec1e (patch)
treee52711eb17d6362fedc4b64bc244f56a72fb5c43 /pimd/pim_msg.h
parentpimd: Fixup pim_oil interface to be a bit more consistent. (diff)
downloadfrr-984c84f48600a9c6b7b0513e3ad8f234465dec1e.tar.xz
frr-984c84f48600a9c6b7b0513e3ad8f234465dec1e.zip
pimd: Start abstraction for WC and RPT bits
Start the abstraction of the WC and RPT bits so we can send the data as appropriate. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'pimd/pim_msg.h')
-rw-r--r--pimd/pim_msg.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/pimd/pim_msg.h b/pimd/pim_msg.h
index ece900db5..4a13040af 100644
--- a/pimd/pim_msg.h
+++ b/pimd/pim_msg.h
@@ -44,8 +44,13 @@ uint8_t *pim_msg_addr_encode_ipv4_ucast(uint8_t *buf,
uint8_t *pim_msg_addr_encode_ipv4_group(uint8_t *buf,
int buf_size,
struct in_addr addr);
+
+#define PIM_ENCODE_SPARSE_BIT 0x04
+#define PIM_ENCODE_WC_BIT 0x02
+#define PIM_ENCODE_RPT_BIT 0x01
uint8_t *pim_msg_addr_encode_ipv4_source(uint8_t *buf,
int buf_size,
- struct in_addr addr);
+ struct in_addr addr,
+ uint8_t bits);
#endif /* PIM_MSG_H */