diff options
| author | saravanank <saravanank@vmware.com> | 2019-05-04 05:07:39 -0700 |
|---|---|---|
| committer | saravanank <saravanank@vmware.com> | 2019-05-14 21:40:50 -0700 |
| commit | d57a8bbf4591ae00dcaa0f9dac29cc936cce505d (patch) | |
| tree | 6baeb96f2f4ea3e325a5d6dd107fb96fa7fe66c7 /pimd/pim_msg.c | |
| parent | c843f56de2987381bfa38fe343c5f6a5ec23d2cd (diff) | |
pimd: PIM Msg header includes N bit as defined by RFC
This commit includes parsing of Nbit and contructing pim hdr with Nbit
Adding Nbit to PIm hdr structure
Adding Scope zone bit and Bidir bit to Encoded IPv4 Group Address
Signed-off-by: Saravanan K <saravanank@vmware.com>
Diffstat (limited to 'pimd/pim_msg.c')
| -rw-r--r-- | pimd/pim_msg.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pimd/pim_msg.c b/pimd/pim_msg.c index 63688f87e0..2e467502b1 100644 --- a/pimd/pim_msg.c +++ b/pimd/pim_msg.c @@ -39,7 +39,7 @@ #include "pim_oil.h" void pim_msg_build_header(uint8_t *pim_msg, size_t pim_msg_size, - uint8_t pim_msg_type) + uint8_t pim_msg_type, bool no_fwd) { struct pim_msg_header *header = (struct pim_msg_header *)pim_msg; @@ -48,6 +48,7 @@ void pim_msg_build_header(uint8_t *pim_msg, size_t pim_msg_size, */ header->ver = PIM_PROTO_VERSION; header->type = pim_msg_type; + header->Nbit = no_fwd; header->reserved = 0; |
