mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
net: remove legacy in_addmulti()
Despite the comment to the contrary neither pf nor carp use in_addmulti(). Nothing does, so get rid of it. Carp stopped using it in08b68b0e4c(2011). It's unclear when pf stopped using it, but befored6d3f01e0a(2012). Reviewed by: bz@, melifaro@ Sponsored by: Rubicon Communications, LLC ("Netgate") Differential Revision: https://reviews.freebsd.org/D28918
This commit is contained in:
parent
c861373bdf
commit
f3245be349
2 changed files with 0 additions and 31 deletions
|
|
@ -120,8 +120,6 @@ int ifma_restart;
|
|||
* 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 @@ int ifma_restart;
|
|||
* 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 @@ in_leavegroup_locked(struct in_multi *inm, /*const*/ struct in_mfilter *imf)
|
|||
}
|
||||
|
||||
/*#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.
|
||||
|
|
|
|||
|
|
@ -450,8 +450,6 @@ int inm_record_source(struct in_multi *inm, const in_addr_t);
|
|||
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 *,
|
||||
|
|
|
|||
Loading…
Reference in a new issue