svn commit: r364548 - stable/12/sys/netinet

Michael Tuexen tuexen at FreeBSD.org
Sun Aug 23 21:23:46 UTC 2020


Author: tuexen
Date: Sun Aug 23 21:23:45 2020
New Revision: 364548
URL: https://svnweb.freebsd.org/changeset/base/364548

Log:
  MFC r358080:
  Remove unused function.

Modified:
  stable/12/sys/netinet/sctp_bsd_addr.c
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/sys/netinet/sctp_bsd_addr.c
==============================================================================
--- stable/12/sys/netinet/sctp_bsd_addr.c	Sun Aug 23 21:22:13 2020	(r364547)
+++ stable/12/sys/netinet/sctp_bsd_addr.c	Sun Aug 23 21:23:45 2020	(r364548)
@@ -362,23 +362,6 @@ sctp_addr_change_event_handler(void *arg __unused, str
 	sctp_addr_change(ifa, cmd);
 }
 
-void
-     sctp_add_or_del_interfaces(int (*pred) (struct ifnet *), int add){
-	struct ifnet *ifn;
-	struct ifaddr *ifa;
-
-	IFNET_RLOCK();
-	CK_STAILQ_FOREACH(ifn, &MODULE_GLOBAL(ifnet), if_link) {
-		if (!(*pred) (ifn)) {
-			continue;
-		}
-		CK_STAILQ_FOREACH(ifa, &ifn->if_addrhead, ifa_link) {
-			sctp_addr_change(ifa, add ? RTM_ADD : RTM_DELETE);
-		}
-	}
-	IFNET_RUNLOCK();
-}
-
 struct mbuf *
 sctp_get_mbuf_for_msg(unsigned int space_needed, int want_header,
     int how, int allonebuf, int type)


More information about the svn-src-stable-12 mailing list