diff options
| author | David Lamparter <equinox@opensourcerouting.org> | 2022-03-27 11:50:40 +0200 | 
|---|---|---|
| committer | David Lamparter <equinox@opensourcerouting.org> | 2022-03-28 14:13:23 +0200 | 
| commit | 145e4c38b9d4b02f40a233cf6d83df0ef90b3902 (patch) | |
| tree | 0e85c0d3c5f4dd2b0211535a32fd84f02963777d /pimd/pim_assert.c | |
| parent | b6d9ad298d625c9ac18f45dd0591b7d51473f12d (diff) | |
pim6d: include IPv6 pseudoheader in TX checksums
Lots of passing src/dst around, but it is what it is.
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'pimd/pim_assert.c')
| -rw-r--r-- | pimd/pim_assert.c | 5 | 
1 files changed, 4 insertions, 1 deletions
diff --git a/pimd/pim_assert.c b/pimd/pim_assert.c index e7fff4db6f..cbd44388c1 100644 --- a/pimd/pim_assert.c +++ b/pimd/pim_assert.c @@ -338,6 +338,7 @@ int pim_assert_build_msg(uint8_t *pim_msg, int buf_size, struct interface *ifp,  			 uint32_t metric_preference, uint32_t route_metric,  			 uint32_t rpt_bit_flag)  { +	struct pim_interface *pim_ifp = ifp->info;  	uint8_t *buf_pastend = pim_msg + buf_size;  	uint8_t *pim_msg_curr;  	int pim_msg_size; @@ -380,7 +381,9 @@ int pim_assert_build_msg(uint8_t *pim_msg, int buf_size, struct interface *ifp,  	  Add PIM header  	*/  	pim_msg_size = pim_msg_curr - pim_msg; -	pim_msg_build_header(pim_msg, pim_msg_size, PIM_MSG_TYPE_ASSERT, false); +	pim_msg_build_header(pim_ifp->primary_address, +			     qpim_all_pim_routers_addr, pim_msg, pim_msg_size, +			     PIM_MSG_TYPE_ASSERT, false);  	return pim_msg_size;  }  | 
