/freebsd-10-stable/sys/netinet/ |
H A D | in_mcast.c | 234 imo_grow(struct ip_moptions *imo) argument 246 omships = imo->imo_membership; 247 omfilters = imo->imo_mfilters; 248 oldmax = imo->imo_max_memberships; 262 imo->imo_max_memberships = newmax; 263 imo->imo_membership = nmships; 264 imo->imo_mfilters = nmfilters; 285 imo_match_group(const struct ip_moptions *imo, const struct ifnet *ifp, argument 296 if (imo->imo_membership == NULL || imo 323 imo_match_source(const struct ip_moptions *imo, const size_t gidx, const struct sockaddr *src) argument 355 imo_multi_filter(const struct ip_moptions *imo, const struct ifnet *ifp, const struct sockaddr *group, const struct sockaddr *src) argument 1308 struct ip_moptions *imo; local 1493 struct ip_moptions *imo; local 1544 inp_freemoptions(struct ip_moptions *imo) argument 1555 inp_freemoptions_internal(struct ip_moptions *imo) argument 1579 struct ip_moptions *imo; local 1602 struct ip_moptions *imo; local 1719 struct ip_moptions *imo; local 1899 struct ip_moptions *imo; local 2198 struct ip_moptions *imo; local 2420 struct ip_moptions *imo; local 2489 struct ip_moptions *imo; local 2661 struct ip_moptions *imo; local [all...] |
H A D | ip_output.c | 120 struct ip_moptions *imo, struct inpcb *inp) 260 imo != NULL && imo->imo_multicast_ifp != NULL) { 265 ifp = imo->imo_multicast_ifp; 345 if (imo != NULL) { 346 ip->ip_ttl = imo->imo_multicast_ttl; 347 if (imo->imo_multicast_vif != -1) 350 ip_mcast_src(imo->imo_multicast_vif) : 357 if ((imo == NULL) || (imo 119 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 | 1266 struct ip_moptions *imo = &cif->cif_imo; local 1269 if (imo->imo_membership) 1272 imo->imo_membership = (struct in_multi **)malloc( 1275 if (imo->imo_membership == NULL) 1277 imo->imo_mfilters = NULL; 1278 imo->imo_max_memberships = IP_MIN_MEMBERSHIPS; 1279 imo->imo_multicast_vif = -1; 1283 &imo->imo_membership[0])) != 0) { 1284 free(imo->imo_membership, M_CARP); 1287 imo 1370 struct ip_moptions *imo = &cif->cif_imo; local [all...] |
H A D | in_pcb.c | 1009 struct ip_moptions *imo; local 1012 imo = inp->inp_moptions; 1013 if (imo->imo_multicast_ifp != NULL) { 1014 ifp = imo->imo_multicast_ifp; 1379 struct ip_moptions *imo; local 1385 imo = inp->inp_moptions; 1387 imo != NULL) { 1392 if (imo->imo_multicast_ifp == ifp) 1393 imo->imo_multicast_ifp = NULL; 1399 for (i = 0, gap = 0; i < imo [all...] |
H A D | ip_mroute.c | 1220 struct ip_moptions *imo) 1245 if (imo && ((vifi = imo->imo_multicast_vif) < V_numvifs)) { 1678 struct ip_moptions imo; local 1684 imo.imo_multicast_ifp = vifp->v_ifp; 1685 imo.imo_multicast_ttl = mtod(m, struct ip *)->ip_ttl - 1; 1686 imo.imo_multicast_loop = 1; 1687 imo.imo_multicast_vif = -1; 1688 imo.imo_num_memberships = 0; 1689 imo 1219 X_ip_mforward(struct ip *ip, struct ifnet *ifp, struct mbuf *m, struct ip_moptions *imo) argument [all...] |
H A D | igmp.c | 3397 struct ip_moptions imo; local 3430 imo.imo_multicast_ttl = 1; 3431 imo.imo_multicast_vif = -1; 3432 imo.imo_multicast_loop = (V_ip_mrouter != NULL); 3441 imo.imo_multicast_ifp = V_loif; 3443 imo.imo_multicast_ifp = ifp; 3463 error = ip_output(m0, ipopts, NULL, 0, &imo, NULL);
|
H A D | udp_usrreq.c | 505 struct ip_moptions *imo; local 540 imo = inp->inp_moptions; 544 if (imo == NULL) { 553 blocked = imo_multi_filter(imo, ifp,
|
/freebsd-10-stable/sys/netinet6/ |
H A D | in6_mcast.c | 223 im6o_grow(struct ip6_moptions *imo) argument 235 omships = imo->im6o_membership; 236 omfilters = imo->im6o_mfilters; 237 oldmax = imo->im6o_max_memberships; 252 imo->im6o_max_memberships = newmax; 253 imo->im6o_membership = nmships; 254 imo->im6o_mfilters = nmfilters; 275 im6o_match_group(const struct ip6_moptions *imo, const struct ifnet *ifp, argument 286 if (imo->im6o_membership == NULL || imo 318 im6o_match_source(const struct ip6_moptions *imo, const size_t gidx, const struct sockaddr *src) argument 350 im6o_mc_filter(const struct ip6_moptions *imo, const struct ifnet *ifp, const struct sockaddr *group, const struct sockaddr *src) argument 1332 struct ip6_moptions *imo; local 1489 struct ip6_moptions *imo; local 1535 ip6_freemoptions(struct ip6_moptions *imo) argument 1569 struct ip6_moptions *imo; local 1813 struct ip6_moptions *imo; local 2102 struct ip6_moptions *imo; local 2342 struct ip6_moptions *imo; local 2382 struct ip6_moptions *imo; local [all...] |
H A D | udp6_usrreq.c | 289 struct ip6_moptions *imo; local 340 imo = inp->in6p_moptions; 341 if (imo && IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst)) { 352 blocked = im6o_mc_filter(imo, ifp,
|
/freebsd-10-stable/sys/netpfil/pf/ |
H A D | if_pfsync.c | 1318 struct ip_moptions *imo = &sc->sc_imo; local 1363 if (imo->imo_membership) 1376 if (imo->imo_membership) 2237 struct ip_moptions *imo = &sc->sc_imo; local 2243 imo->imo_membership = (struct in_multi **)mship; 2244 imo->imo_max_memberships = IP_MIN_MEMBERSHIPS; 2245 imo->imo_multicast_vif = -1; 2248 &imo->imo_membership[0])) != 0) { 2249 imo->imo_membership = NULL; 2252 imo 2263 struct ip_moptions *imo = &sc->sc_imo; local [all...] |