diff options
| author | Gleb Smirnoff <glebius@FreeBSD.org> | 2014-01-06 19:14:46 +0000 |
|---|---|---|
| committer | Gleb Smirnoff <glebius@FreeBSD.org> | 2014-01-06 19:14:46 +0000 |
| commit | c5e694c786ddeabd9c3df467a70ccc7e6a082bbc (patch) | |
| tree | 8bb34513b677571974e6de471fff524c92359185 | |
| parent | 9fb34378b0ee03af1cd7840317f28f21bfaba8c0 (diff) | |
Notes
| -rw-r--r-- | sys/netinet/ip_output.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/netinet/ip_output.c b/sys/netinet/ip_output.c index 464c85289e41..2838e76feffb 100644 --- a/sys/netinet/ip_output.c +++ b/sys/netinet/ip_output.c @@ -331,6 +331,12 @@ again: 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 */ if (imo != NULL) { |
