Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/net Don't unlink and deallocate ether_multi here. ether...



details:   https://anonhg.NetBSD.org/src/rev/5ca0d68dc218
branches:  trunk
changeset: 499059:5ca0d68dc218
user:      enami <enami%NetBSD.org@localhost>
date:      Fri Nov 10 02:29:44 2000 +0000

description:
Don't unlink and deallocate ether_multi here.  ether_ifdetach will do it.

diffstat:

 sys/net/if_vlan.c |  6 +-----
 1 files changed, 1 insertions(+), 5 deletions(-)

diffs (23 lines):

diff -r 28003ac1fea9 -r 5ca0d68dc218 sys/net/if_vlan.c
--- a/sys/net/if_vlan.c Fri Nov 10 02:27:19 2000 +0000
+++ b/sys/net/if_vlan.c Fri Nov 10 02:29:44 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_vlan.c,v 1.18 2000/11/10 02:27:19 enami Exp $       */
+/*     $NetBSD: if_vlan.c,v 1.19 2000/11/10 02:29:44 enami Exp $       */
 
 /*-
  * Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -661,13 +661,9 @@
        while ((mc = LIST_FIRST(&ifv->ifv_mc_listhead)) != NULL) {
                memcpy(&ifr->ifr_addr, &mc->mc_addr, mc->mc_addr.ss_len);
                (void)(*ifp->if_ioctl)(ifp, SIOCDELMULTI, (caddr_t)ifr);
-               LIST_REMOVE(mc->mc_enm, enm_list);
-               free(mc->mc_enm, M_IFMADDR);
                LIST_REMOVE(mc, mc_entries);
                FREE(mc, M_DEVBUF);
        }
-
-       KASSERT(LIST_FIRST(&ifv->ifv_ec.ec_multiaddrs) == NULL);
 }
 
 static void



Home | Main Index | Thread Index | Old Index