mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
Fix regression from r249894. Now we pass "gw" as argument to if_output
method, thus for multicast case we need it to point at "dst". PR: 185395 Submitted by: ae
This commit is contained in:
parent
ea0c377602
commit
183e1c8634
1 changed files with 6 additions and 0 deletions
|
|
@ -332,6 +332,12 @@ again:
|
|||
__func__, mtu, rte, (rte != NULL) ? rte->rt_flags : 0, ifp));
|
||||
if (IN_MULTICAST(ntohl(ip->ip_dst.s_addr))) {
|
||||
m->m_flags |= M_MCAST;
|
||||
/*
|
||||
* IP destination address is multicast. Make sure "gw"
|
||||
* still points to the address in "ro". (It may have been
|
||||
* changed to point to a gateway address, above.)
|
||||
*/
|
||||
gw = dst;
|
||||
/*
|
||||
* See if the caller provided any multicast options
|
||||
*/
|
||||
|
|
|
|||
Loading…
Reference in a new issue