diff options
| author | Donald Sharp <sharpd@cumulusnetwroks.com> | 2016-07-27 15:27:52 -0400 | 
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2016-12-21 20:26:04 -0500 | 
| commit | 984c84f48600a9c6b7b0513e3ad8f234465dec1e (patch) | |
| tree | e52711eb17d6362fedc4b64bc244f56a72fb5c43 /pimd/pim_msg.h | |
| parent | 7293a05356086cc75cc0690f4b03110229771743 (diff) | |
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.h | 7 | 
1 files changed, 6 insertions, 1 deletions
diff --git a/pimd/pim_msg.h b/pimd/pim_msg.h index ece900db5f..4a13040af6 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 */  | 
