summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwollman <wollman@FreeBSD.org>1995-03-20 18:31:51 +0000
committerwollman <wollman@FreeBSD.org>1995-03-20 18:31:51 +0000
commit2a30dae2a52977772361aa643579dfcb14dc775b (patch)
treefe6a36e7700f97eb2eb385ee670858b4c78126aa
parentfd40ec89dfd21e5a7248621da965231eb46fafba (diff)
downloadFreeBSD-src-2a30dae2a52977772361aa643579dfcb14dc775b.zip
FreeBSD-src-2a30dae2a52977772361aa643579dfcb14dc775b.tar.gz
This should be splimp() rather than splnet() since ifaddrs might go away
as a result of link-layer processing.
-rw-r--r--sys/netinet/ip_output.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/netinet/ip_output.c b/sys/netinet/ip_output.c
index 72f883d..e4936ce 100644
--- a/sys/netinet/ip_output.c
+++ b/sys/netinet/ip_output.c
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)ip_output.c 8.3 (Berkeley) 1/21/94
- * $Id: ip_output.c,v 1.13 1995/03/16 18:14:59 bde Exp $
+ * $Id: ip_output.c,v 1.14 1995/03/20 18:11:31 wollman Exp $
*/
#include <sys/param.h>
@@ -852,7 +852,7 @@ ip_setmoptions(optname, imop, m)
* IP address. Find the interface and confirm that
* it supports multicasting.
*/
- s = splnet();
+ s = splimp();
INADDR_TO_IFP(addr, ifp);
if (ifp == NULL || (ifp->if_flags & IFF_MULTICAST) == 0) {
error = EADDRNOTAVAIL;
@@ -900,7 +900,7 @@ ip_setmoptions(optname, imop, m)
error = EINVAL;
break;
}
- s = splnet();
+ s = splimp();
/*
* If no interface address was provided, use the interface of
* the route to the given multicast address.
@@ -982,7 +982,7 @@ ip_setmoptions(optname, imop, m)
break;
}
- s = splnet();
+ s = splimp();
/*
* If an interface address was specified, get a pointer
* to its ifnet structure.
OpenPOWER on IntegriCloud