/freebsd-11-stable/sys/netinet/ |
H A D | in_mcast.c | 278 imo_grow(struct ip_moptions *imo) argument 290 omships = imo->imo_membership; 291 omfilters = imo->imo_mfilters; 292 oldmax = imo->imo_max_memberships; 306 imo->imo_max_memberships = newmax; 307 imo->imo_membership = nmships; 308 imo->imo_mfilters = nmfilters; 329 imo_match_group(const struct ip_moptions *imo, const struct ifnet *ifp, argument 340 if (imo->imo_membership == NULL || imo 367 imo_match_source(const struct ip_moptions *imo, const size_t gidx, const struct sockaddr *src) argument 399 imo_multi_filter(const struct ip_moptions *imo, const struct ifnet *ifp, const struct sockaddr *group, const struct sockaddr *src) argument 1346 struct ip_moptions *imo; local 1531 struct ip_moptions *imo; local 1582 inp_freemoptions(struct ip_moptions *imo) argument 1593 inp_freemoptions_internal(struct ip_moptions *imo) argument 1617 struct ip_moptions *imo; local 1640 struct ip_moptions *imo; local 1758 struct ip_moptions *imo; local 1935 struct ip_moptions *imo; local 2235 struct ip_moptions *imo; local 2462 struct ip_moptions *imo; local 2531 struct ip_moptions *imo; local 2703 struct ip_moptions *imo; local [all...] |
H A D | ip_output.c | 209 struct ip_moptions *imo, struct inpcb *inp) 352 imo != NULL && imo->imo_multicast_ifp != NULL) { 357 ifp = imo->imo_multicast_ifp; 430 if (imo != NULL) { 431 ip->ip_ttl = imo->imo_multicast_ttl; 432 if (imo->imo_multicast_vif != -1) 435 ip_mcast_src(imo->imo_multicast_vif) : 442 if ((imo == NULL) || (imo 208 ip_output(struct mbuf *m, struct mbuf *opt, struct route *ro, int flags, struct ip_moptions *imo, struct inpcb *inp) argument [all...] |
H A D | ip_carp.c | 1277 struct ip_moptions *imo = &cif->cif_imo; local 1280 if (imo->imo_membership) 1283 imo->imo_membership = (struct in_multi **)malloc( 1286 imo->imo_mfilters = NULL; 1287 imo->imo_max_memberships = IP_MIN_MEMBERSHIPS; 1288 imo->imo_multicast_vif = -1; 1292 &imo->imo_membership[0])) != 0) { 1293 free(imo->imo_membership, M_CARP); 1296 imo->imo_num_memberships++; 1297 imo 1378 struct ip_moptions *imo = &cif->cif_imo; local [all...] |
H A D | in_pcb.c | 1074 struct ip_moptions *imo; local 1077 imo = inp->inp_moptions; 1078 if (imo->imo_multicast_ifp != NULL) { 1079 ifp = imo->imo_multicast_ifp; 1451 struct ip_moptions *imo; local 1457 imo = inp->inp_moptions; 1459 imo != NULL) { 1464 if (imo->imo_multicast_ifp == ifp) 1465 imo->imo_multicast_ifp = NULL; 1471 for (i = 0, gap = 0; i < imo [all...] |
H A D | ip_mroute.c | 1221 struct ip_moptions *imo) 1246 if (imo && ((vifi = imo->imo_multicast_vif) < V_numvifs)) { 1679 struct ip_moptions imo; local 1685 imo.imo_multicast_ifp = vifp->v_ifp; 1686 imo.imo_multicast_ttl = mtod(m, struct ip *)->ip_ttl - 1; 1687 imo.imo_multicast_loop = 1; 1688 imo.imo_multicast_vif = -1; 1689 imo.imo_num_memberships = 0; 1690 imo 1220 X_ip_mforward(struct ip *ip, struct ifnet *ifp, struct mbuf *m, struct ip_moptions *imo) argument [all...] |
H A D | igmp.c | 3399 struct ip_moptions imo; local 3432 imo.imo_multicast_ttl = 1; 3433 imo.imo_multicast_vif = -1; 3434 imo.imo_multicast_loop = (V_ip_mrouter != NULL); 3443 imo.imo_multicast_ifp = V_loif; 3445 imo.imo_multicast_ifp = ifp; 3465 error = ip_output(m0, ipopts, NULL, 0, &imo, NULL);
|
H A D | udp_usrreq.c | 514 struct ip_moptions *imo; local 549 imo = inp->inp_moptions; 553 if (imo == NULL) { 562 blocked = imo_multi_filter(imo, ifp,
|
/freebsd-11-stable/sys/netinet6/ |
H A D | in6_mcast.c | 222 im6o_grow(struct ip6_moptions *imo) argument 234 omships = imo->im6o_membership; 235 omfilters = imo->im6o_mfilters; 236 oldmax = imo->im6o_max_memberships; 251 imo->im6o_max_memberships = newmax; 252 imo->im6o_membership = nmships; 253 imo->im6o_mfilters = nmfilters; 274 im6o_match_group(const struct ip6_moptions *imo, const struct ifnet *ifp, argument 285 if (imo->im6o_membership == NULL || imo 317 im6o_match_source(const struct ip6_moptions *imo, const size_t gidx, const struct sockaddr *src) argument 349 im6o_mc_filter(const struct ip6_moptions *imo, const struct ifnet *ifp, const struct sockaddr *group, const struct sockaddr *src) argument 1331 struct ip6_moptions *imo; local 1488 struct ip6_moptions *imo; local 1534 ip6_freemoptions(struct ip6_moptions *imo) argument 1568 struct ip6_moptions *imo; local 1808 struct ip6_moptions *imo; local 2097 struct ip6_moptions *imo; local 2341 struct ip6_moptions *imo; local 2381 struct ip6_moptions *imo; local [all...] |
H A D | udp6_usrreq.c | 285 struct ip6_moptions *imo; local 336 imo = inp->in6p_moptions; 337 if (imo && IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst)) { 348 blocked = im6o_mc_filter(imo, ifp,
|
/freebsd-11-stable/sys/netpfil/pf/ |
H A D | if_pfsync.c | 1374 struct ip_moptions *imo = &sc->sc_imo; local 1420 if (imo->imo_membership) 1437 if (imo->imo_membership) 2356 struct ip_moptions *imo = &sc->sc_imo; local 2362 imo->imo_membership = (struct in_multi **)mship; 2363 imo->imo_max_memberships = IP_MIN_MEMBERSHIPS; 2364 imo->imo_multicast_vif = -1; 2367 &imo->imo_membership[0])) != 0) { 2368 imo->imo_membership = NULL; 2371 imo 2382 struct ip_moptions *imo = &sc->sc_imo; local [all...] |