mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-19 10:53:58 +00:00
To comply with the spec, do not copy the TOS from the outer IP
header to the inner IP header of the PIM Register if this is a PIM Null-Register message. Submitted by: Pavlin Radoslavov <pavlin@icir.org>
This commit is contained in:
parent
4c9792f9d3
commit
a062038267
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=126741
@ -3289,6 +3289,10 @@ pim_input(struct mbuf *m, int off)
|
||||
return;
|
||||
}
|
||||
|
||||
/* If a NULL_REGISTER, pass it to the daemon */
|
||||
if ((ntohl(*reghdr) & PIM_NULL_REGISTER))
|
||||
goto pim_input_to_daemon;
|
||||
|
||||
/*
|
||||
* Copy the TOS from the outer IP header to the inner IP header.
|
||||
*/
|
||||
@ -3309,10 +3313,6 @@ pim_input(struct mbuf *m, int off)
|
||||
m->m_len += (iphlen + PIM_MINLEN);
|
||||
}
|
||||
|
||||
/* If a NULL_REGISTER, pass it to the daemon */
|
||||
if ((ntohl(*reghdr) & PIM_NULL_REGISTER))
|
||||
goto pim_input_to_daemon;
|
||||
|
||||
/*
|
||||
* Decapsulate the inner IP packet and loopback to forward it
|
||||
* as a normal multicast packet. Also, make a copy of the
|
||||
|
Loading…
Reference in New Issue
Block a user