aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorGarrett Wollman <wollman@FreeBSD.org>1997-02-14 15:30:54 +0000
committerGarrett Wollman <wollman@FreeBSD.org>1997-02-14 15:30:54 +0000
commit4a26224c8d4cd5e63f8c0b29b107fa7f9babc8b1 (patch)
tree16c1f5aed5452a28ecd8f82539968f12e88e80b2 /sys
parentc5d50e135a7957134850bb390e8aebd9129c8c93 (diff)
Notes
Diffstat (limited to 'sys')
-rw-r--r--sys/net/if.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/sys/net/if.c b/sys/net/if.c
index 982fc002cd8e..1bcb1d821e08 100644
--- a/sys/net/if.c
+++ b/sys/net/if.c
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)if.c 8.3 (Berkeley) 1/4/94
- * $FreeBSD$
+ * $Id$
*/
#include <sys/param.h>
@@ -669,6 +669,7 @@ ifpromisc(ifp, pswitch)
int pswitch;
{
struct ifreq ifr;
+ int error;
if (pswitch) {
/*
@@ -688,7 +689,10 @@ ifpromisc(ifp, pswitch)
ifp->if_flags &= ~IFF_PROMISC;
}
ifr.ifr_flags = ifp->if_flags;
- return ((*ifp->if_ioctl)(ifp, SIOCSIFFLAGS, (caddr_t)&ifr));
+ error = (*ifp->if_ioctl)(ifp, SIOCSIFFLAGS, (caddr_t)&ifr);
+ if (error == 0)
+ rt_ifmsg(ifp);
+ return error;
}
/*
@@ -795,6 +799,9 @@ if_allmulti(ifp, onswitch)
}
}
splx(s);
+
+ if (error == 0)
+ rt_ifmsg(ifp);
return error;
}