Home
last modified time | relevance | path

Searched refs:inm (Results 1 – 10 of 10) sorted by relevance

/xnu-10063.101.15/bsd/netinet/
H A Digmp.c864 struct in_multi *inm; in igmp_input_v1_query() local
910 IN_FIRST_MULTI(step, inm); in igmp_input_v1_query()
911 while (inm != NULL) { in igmp_input_v1_query()
912 INM_LOCK(inm); in igmp_input_v1_query()
913 if (inm->inm_ifp != ifp || inm->inm_timer != 0) { in igmp_input_v1_query()
917 switch (inm->inm_state) { in igmp_input_v1_query()
928 inm->inm_state = IGMP_REPORTING_MEMBER; in igmp_input_v1_query()
929 inm->inm_timer = IGMP_RANDOM_DELAY(IGMP_V1V2_MAX_RI); in igmp_input_v1_query()
936 INM_UNLOCK(inm); in igmp_input_v1_query()
937 IN_NEXT_MULTI(step, inm); in igmp_input_v1_query()
[all …]
H A Din_mcast.c133 static int inm_get_source(struct in_multi *inm, const in_addr_t haddr,
179 struct in_multi inm; /* in_multi */ member
241 inm_is_ifp_detached(const struct in_multi *inm) in inm_is_ifp_detached() argument
243 VERIFY(inm->inm_ifma != NULL); in inm_is_ifp_detached()
244 VERIFY(inm->inm_ifp == inm->inm_ifma->ifma_ifp); in inm_is_ifp_detached()
246 return !ifnet_is_attached(inm->inm_ifp, 0); in inm_is_ifp_detached()
547 struct in_multi *__single inm; in in_getmulti() local
551 IN_LOOKUP_MULTI(group, ifp, inm); in in_getmulti()
552 if (inm != NULL) { in in_getmulti()
553 INM_LOCK(inm); in in_getmulti()
[all …]
H A Din_var.h418 #define IN_LOOKUP_MULTI(addr, ifp, inm) \ argument
424 IN_FIRST_MULTI(_step, inm); \
425 while ((inm) != NULL) { \
426 INM_LOCK_SPIN(inm); \
427 if ((inm)->inm_ifp == (ifp) && \
428 (inm)->inm_addr.s_addr == (addr)->s_addr) { \
429 INM_ADDREF_LOCKED(inm); \
430 INM_UNLOCK(inm); \
433 INM_UNLOCK(inm); \
434 IN_NEXT_MULTI(_step, inm); \
[all …]
H A Din.c783 struct in_multi *inm = ifp->if_allhostsinm; in inctl_ifaddr() local
786 in_delmulti(inm); in inctl_ifaddr()
788 INM_REMREF(inm); in inctl_ifaddr()
1817 struct in_multi *inm; in in_ifinit() local
1818 inm = in_addmulti(&addr, ifp); in in_ifinit()
1820 if (inm != NULL) { in in_ifinit()
1826 ifp->if_allhostsinm = inm; in in_ifinit()
H A Dip_output.c896 struct in_multi *inm; in ip_output_list() local
962 IN_LOOKUP_MULTI(&pkt_dst, ifp, inm); in ip_output_list()
964 if (inm != NULL && (imo == NULL || loop)) { in ip_output_list()
1011 INM_REMREF(inm); in ip_output_list()
1016 INM_REMREF(inm); in ip_output_list()
1033 if (inm != NULL) { in ip_output_list()
1034 INM_REMREF(inm); in ip_output_list()
H A Dip_input.c1505 struct in_multi *inm; in ip_input_second_pass() local
1511 IN_LOOKUP_MULTI(&ip->ip_dst, inifp, inm); in ip_input_second_pass()
1513 if (inm == NULL) { in ip_input_second_pass()
1520 INM_REMREF(inm); in ip_input_second_pass()
2009 struct in_multi *inm; in ip_input() local
2015 IN_LOOKUP_MULTI(&ip->ip_dst, inifp, inm); in ip_input()
2017 if (inm == NULL) { in ip_input()
2023 INM_REMREF(inm); in ip_input()
/xnu-10063.101.15/bsd/netinet6/
H A Dmld6.c857 struct in6_multi *inm; in mld_v1_input_query() local
934 IN6_FIRST_MULTI(step, inm); in mld_v1_input_query()
935 while (inm != NULL) { in mld_v1_input_query()
936 IN6M_LOCK(inm); in mld_v1_input_query()
937 if (inm->in6m_ifp == ifp) { in mld_v1_input_query()
938 mtp.cst += mld_v1_update_group(inm, timer); in mld_v1_input_query()
940 IN6M_UNLOCK(inm); in mld_v1_input_query()
941 IN6_NEXT_MULTI(step, inm); in mld_v1_input_query()
951 IN6_LOOKUP_MULTI(&mld->mld_addr, ifp, inm); in mld_v1_input_query()
954 if (inm != NULL) { in mld_v1_input_query()
[all …]
H A Din6_mcast.c123 static int in6m_get_source(struct in6_multi *inm,
240 in6m_is_ifp_detached(const struct in6_multi *inm) in in6m_is_ifp_detached() argument
242 VERIFY(inm->in6m_ifma != NULL); in in6m_is_ifp_detached()
243 VERIFY(inm->in6m_ifp == inm->in6m_ifma->ifma_ifp); in in6m_is_ifp_detached()
245 return !ifnet_is_attached(inm->in6m_ifp, 0); in in6m_is_ifp_detached()
484 struct in6_multi *__single inm; in in6_mc_get() local
490 IN6_LOOKUP_MULTI(group, ifp, inm); in in6_mc_get()
491 if (inm != NULL) { in in6_mc_get()
492 IN6M_LOCK(inm); in in6_mc_get()
493 VERIFY(inm->in6m_reqcnt >= 1); in in6_mc_get()
[all …]
H A Dicmp6.c535 struct in6_multi *inm; in icmp6_input() local
538 IN6_LOOKUP_MULTI(&ip6->ip6_dst, ifp, inm); in icmp6_input()
541 if (inm == NULL) { in icmp6_input()
553 IN6M_REMREF(inm); in icmp6_input()
/xnu-10063.101.15/tools/lldbmacros/
H A Dnet.py996 inm = kern.GetValueFromAddress(cmd_args[0], 'in_multi_dbg *')
998 out_string += in_multi_summary_format_string.format("Total holds : ", inm.inm_refhold_cnt)
999 out_string += in_multi_summary_format_string.format("Total releases : ", inm.inm_refrele_cnt)
1004 kgm_pc = inm.inm_refhold[cnt].pc[ix]
1007 … out_string += "\nHold [" + str(int(cnt)) + "] (thread " + hex(inm.inm_refhold[cnt].th) + "):\n"
1017 kgm_pc = inm.inm_refrele[cnt].pc[ix]
1020 … out_string += "\nRelease [" + str(int(cnt)) + "] (thread " + hex(inm.inm_refrele[cnt].th) + "):\n"
1380 inm = Cast(inm_trash_head.tqh_first, 'in_multi_dbg *')
1383 while (int(inm) != 0):
1391 …inm_trash_format_string.format(cnt + 1, inm, inm.inm_refhold_cnt - inm.inm_refrele_cnt, inm.inm_re…
[all …]