Source-Changes-HG archive

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

[src/trunk]: src/sys/net remove struct ifnet if_mcastop, it's not used by any...



details:   https://anonhg.NetBSD.org/src/rev/b75f509191de
branches:  trunk
changeset: 932331:b75f509191de
user:      jdolecek <jdolecek%NetBSD.org@localhost>
date:      Tue May 05 08:05:03 2020 +0000

description:
remove struct ifnet if_mcastop, it's not used by anything

diffstat:

 sys/net/if.c |  12 ++++--------
 sys/net/if.h |   5 +----
 2 files changed, 5 insertions(+), 12 deletions(-)

diffs (52 lines):

diff -r e0e08df42845 -r b75f509191de sys/net/if.c
--- a/sys/net/if.c      Tue May 05 06:32:43 2020 +0000
+++ b/sys/net/if.c      Tue May 05 08:05:03 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if.c,v 1.474 2020/04/18 15:56:26 thorpej Exp $ */
+/*     $NetBSD: if.c,v 1.475 2020/05/05 08:05:03 jdolecek Exp $        */
 
 /*-
  * Copyright (c) 1999, 2000, 2001, 2008 The NetBSD Foundation, Inc.
@@ -90,7 +90,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if.c,v 1.474 2020/04/18 15:56:26 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if.c,v 1.475 2020/05/05 08:05:03 jdolecek Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_inet.h"
@@ -3791,12 +3791,8 @@
        int rc;
        struct ifreq ifr;
 
-       if (ifp->if_mcastop != NULL)
-               rc = (*ifp->if_mcastop)(ifp, cmd, sa);
-       else {
-               ifreq_setaddr(cmd, &ifr, sa);
-               rc = (*ifp->if_ioctl)(ifp, cmd, &ifr);
-       }
+       ifreq_setaddr(cmd, &ifr, sa);
+       rc = (*ifp->if_ioctl)(ifp, cmd, &ifr);
 
        return rc;
 }
diff -r e0e08df42845 -r b75f509191de sys/net/if.h
--- a/sys/net/if.h      Tue May 05 06:32:43 2020 +0000
+++ b/sys/net/if.h      Tue May 05 08:05:03 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if.h,v 1.282 2020/02/14 22:04:12 thorpej Exp $ */
+/*     $NetBSD: if.h,v 1.283 2020/05/05 08:05:03 jdolecek Exp $        */
 
 /*-
  * Copyright (c) 1999, 2000, 2001 The NetBSD Foundation, Inc.
@@ -381,9 +381,6 @@
                        *if_sysctl_log; /* :: */
        int             (*if_initaddr)  /* :: */
                            (struct ifnet *, struct ifaddr *, bool);
-       int             (*if_mcastop)   /* :: */
-                           (struct ifnet *, const unsigned long,
-                           const struct sockaddr *);
        int             (*if_setflags)  /* :: */
                            (struct ifnet *, const u_short);
        kmutex_t        *if_ioctl_lock; /* :: */



Home | Main Index | Thread Index | Old Index