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
4b9dcf4e75
commit
f3c61c8731
@ -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…
x
Reference in New Issue
Block a user