Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F151329006
D28918.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D28918.diff
View Options
diff --git a/sys/netinet/in_mcast.c b/sys/netinet/in_mcast.c
--- a/sys/netinet/in_mcast.c
+++ b/sys/netinet/in_mcast.c
@@ -120,8 +120,6 @@
* Functions with non-static linkage defined in this file should be
* declared in in_var.h:
* imo_multi_filter()
- * in_addmulti()
- * in_delmulti()
* in_joingroup()
* in_joingroup_locked()
* in_leavegroup()
@@ -130,9 +128,6 @@
* inp_freemoptions()
* inp_getmoptions()
* inp_setmoptions()
- *
- * XXX: Both carp and pf need to use the legacy (*,G) KPIs in_addmulti()
- * and in_delmulti().
*/
static void imf_commit(struct in_mfilter *);
static int imf_get_source(struct in_mfilter *imf,
@@ -1367,30 +1362,6 @@
}
/*#ifndef BURN_BRIDGES*/
-/*
- * Join an IPv4 multicast group in (*,G) exclusive mode.
- * The group must be a 224.0.0.0/24 link-scope group.
- * This KPI is for legacy kernel consumers only.
- */
-struct in_multi *
-in_addmulti(struct in_addr *ap, struct ifnet *ifp)
-{
- struct in_multi *pinm;
- int error;
-#ifdef INVARIANTS
- char addrbuf[INET_ADDRSTRLEN];
-#endif
-
- KASSERT(IN_LOCAL_GROUP(ntohl(ap->s_addr)),
- ("%s: %s not in 224.0.0.0/24", __func__,
- inet_ntoa_r(*ap, addrbuf)));
-
- error = in_joingroup(ifp, ap, NULL, &pinm);
- if (error != 0)
- pinm = NULL;
-
- return (pinm);
-}
/*
* Block or unblock an ASM multicast source on an inpcb.
diff --git a/sys/netinet/in_var.h b/sys/netinet/in_var.h
--- a/sys/netinet/in_var.h
+++ b/sys/netinet/in_var.h
@@ -450,8 +450,6 @@
void inm_release_deferred(struct in_multi *);
void inm_release_list_deferred(struct in_multi_head *);
void inm_release_wait(void *);
-struct in_multi *
-in_addmulti(struct in_addr *, struct ifnet *);
int in_joingroup(struct ifnet *, const struct in_addr *,
/*const*/ struct in_mfilter *, struct in_multi **);
int in_joingroup_locked(struct ifnet *, const struct in_addr *,
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Apr 8, 3:37 PM (4 h, 50 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31105693
Default Alt Text
D28918.diff (1 KB)
Attached To
Mode
D28918: net: remove legacy in_addmulti()
Attached
Detach File
Event Timeline
Log In to Comment