diff options
author | wollman <wollman@FreeBSD.org> | 1994-09-09 22:05:02 +0000 |
---|---|---|
committer | wollman <wollman@FreeBSD.org> | 1994-09-09 22:05:02 +0000 |
commit | d8b7eaadb890a68537ee8ea4aca2fdaa321b77d2 (patch) | |
tree | a23a7b9c437708809d4db8eb7d7a8e9d54898fbe /sys/netinet | |
parent | ded5569beec4c60cf02c4c8bffe3f111b275e24d (diff) | |
download | FreeBSD-src-d8b7eaadb890a68537ee8ea4aca2fdaa321b77d2.zip FreeBSD-src-d8b7eaadb890a68537ee8ea4aca2fdaa321b77d2.tar.gz |
Disable IPMULTICAST_VIF socket option when MROUTING is not defined,
since it doesn'tmake any sense for non-routers.
CVS:
Diffstat (limited to 'sys/netinet')
-rw-r--r-- | sys/netinet/ip_output.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/netinet/ip_output.c b/sys/netinet/ip_output.c index 57ec677..adf76b4 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.5 1994/08/18 22:35:31 wollman Exp $ + * $Id: ip_output.c,v 1.6 1994/09/06 22:42:24 wollman Exp $ */ #include <sys/param.h> @@ -790,7 +790,7 @@ ip_setmoptions(optname, imop, m) } switch (optname) { - +#ifdef MROUTING /* store an index number for the vif you wanna use in the send */ case IP_MULTICAST_VIF: if (m == NULL || m->m_len != sizeof(int)) { @@ -804,6 +804,7 @@ ip_setmoptions(optname, imop, m) } imo->imo_multicast_vif = i; break; +#endif case IP_MULTICAST_IF: /* |