From eb2cd9b5c36dbba7b3fdba1e18d61132a9e1afcb Mon Sep 17 00:00:00 2001 From: "Angelos D. Keromytis" Date: Sat, 29 Jul 2000 22:51:23 +0000 Subject: Don't set the source IP address if doing multicast; this is a quick fix -- the logic has to be reworked to allow for multicast-over-IPsec. Patch from gene@lucky.net. --- sys/netinet/ip_output.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'sys') diff --git a/sys/netinet/ip_output.c b/sys/netinet/ip_output.c index 26456705de7..be360787aa3 100644 --- a/sys/netinet/ip_output.c +++ b/sys/netinet/ip_output.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ip_output.c,v 1.78 2000/06/21 17:25:04 form Exp $ */ +/* $OpenBSD: ip_output.c,v 1.79 2000/07/29 22:51:22 angelos Exp $ */ /* $NetBSD: ip_output.c,v 1.28 1996/02/13 23:43:07 christos Exp $ */ /* @@ -258,7 +258,8 @@ ip_output(m0, va_alist) } /* Set the source IP address */ - ip->ip_src = ia->ia_addr.sin_addr; + if (!IN_MULTICAST(ip->ip_dst.s_addr)) + ip->ip_src = ia->ia_addr.sin_addr; } #ifdef IPSEC -- cgit v1.2.3