Home | History | Annotate | Download | only in netinet

Lines Matching defs:ifn

537 	struct ifnet *ifn;
541 /* first question, is the ifn we will emit on
544 ifn = rt->rt_ifp;
545 if (ifn) {
547 IFADDR_READER_FOREACH(ifa, ifn) {
556 IFADDR_READER_FOREACH(ifa, ifn) {
622 struct ifnet *ifn;
627 /* first question, is the ifn we will emit on
630 ifn = rt->rt_ifp;
644 /* first question, is the ifn we will emit on
647 if (ifn) {
649 IFADDR_READER_FOREACH(ifa, ifn) {
663 IFADDR_READER_FOREACH(ifa, ifn) {
762 if (ifn) {
763 IFADDR_READER_FOREACH(ifa, ifn) {
786 if (ifn) {
787 IFADDR_READER_FOREACH(ifa, ifn) {
830 sctp_select_v4_nth_prefered_addr_from_ifn_boundall (struct ifnet *ifn, struct sctp_tcb *stcb, int non_asoc_addr_ok,
837 IFADDR_READER_FOREACH(ifa, ifn) {
858 sctp_count_v4_num_prefered_boundall (struct ifnet *ifn, struct sctp_tcb *stcb, int non_asoc_addr_ok,
865 IFADDR_READER_FOREACH(ifa, ifn) {
894 struct ifnet *ifn;
906 * of the interface we go through all the ifn's looking for an address
909 * fill in the address of the route ifn, which means we probably already
912 ifn = rt->rt_ifp;
916 if (ifn == NULL) {
919 num_prefered = sctp_count_v4_num_prefered_boundall (ifn, stcb, non_asoc_addr_ok, loopscope, ipv4_scope, &sin_loop, &sin_local);
945 sin = sctp_select_v4_nth_prefered_addr_from_ifn_boundall (ifn, stcb, non_asoc_addr_ok, loopscope,
958 IFADDR_READER_FOREACH(ifa, ifn) {
978 IFNET_READER_FOREACH(ifn) {
979 if (ifn == inp->next_ifn_touse)
981 if (loopscope == 0 && ifn->if_type == IFT_LOOP) {
985 if (ifn == rt->rt_ifp)
988 num_prefered = sctp_count_v4_num_prefered_boundall (ifn, stcb, non_asoc_addr_ok,
992 printf("Found ifn:%p %d prefered source addresses\n", ifn, num_prefered);
1007 sin = sctp_select_v4_nth_prefered_addr_from_ifn_boundall (ifn, stcb, non_asoc_addr_ok, loopscope,
1027 IFNET_READER_FOREACH(ifn) {
1028 if (ifn == inp->next_ifn_touse)
1030 if (loopscope == 0 && ifn->if_type == IFT_LOOP) {
1034 if (ifn == rt->rt_ifp)
1038 IFADDR_READER_FOREACH(ifa, ifn) {
1110 * ifn is a linked list of addresses. So one interface can
1297 struct ifnet *ifn;
1300 ifn = rt->rt_ifp;
1307 /* first question, is the ifn we will emit on
1310 if (ifn) {
1311 IFADDR_READER_FOREACH(ifa, ifn) {
1411 if (ifn) {
1412 IFADDR_READER_FOREACH(ifa, ifn) {
1481 struct ifnet *ifn;
1485 /* first question, is the ifn we will emit on
1489 ifn = rt->rt_ifp;
1490 if (ifn) {
1491 IFADDR_READER_FOREACH(ifa, ifn) {
1553 sctp_select_v6_nth_addr_from_ifn_boundall (struct ifnet *ifn, struct sctp_tcb *stcb, int non_asoc_addr_ok, uint8_t loopscope,
1561 IFADDR_READER_FOREACH(ifa, ifn) {
1601 sctp_count_v6_num_eligible_boundall (struct ifnet *ifn, struct sctp_tcb *stcb,
1609 IFADDR_READER_FOREACH(ifa, ifn) {
1645 * there for the destination ifn that we are using that
1648 struct ifnet *ifn;
1652 ifn = rt->rt_ifp;
1661 num_eligible_addr = sctp_count_v6_num_eligible_boundall (ifn, stcb, non_asoc_addr_ok, loopscope, loc_scope);
1688 ifn, stcb, non_asoc_addr_ok, loopscope,
1697 sin6 = sctp_select_v6_nth_addr_from_ifn_boundall (ifn, stcb, non_asoc_addr_ok, loopscope,
1703 printf("Selected address %d ifn:%p for the route\n", cur_addr_num, ifn);
1719 * or we have NO eligible source addresses for the ifn
1733 printf("Start at first IFN:%p\n", inp->next_ifn_touse);
1740 printf("Resume at IFN:%p\n", inp->next_ifn_touse);
1746 printf("IFN Resets\n");
1755 IFNET_READER_FOREACH(ifn) {
1756 if (loopscope == 0 && ifn->if_type == IFT_LOOP) {
1760 if (loc_scope && (ifn->if_index != loc_scope)) {
1772 if (ifn == rt->rt_ifp) {
1781 num_eligible_addr = sctp_count_v6_num_eligible_boundall (ifn, stcb, non_asoc_addr_ok, loopscope, loc_scope);
1784 printf("IFN:%p has %d eligible\n", ifn, num_eligible_addr);
1794 inp->next_ifn_touse = ifn;
1798 sin6 = sctp_select_v6_nth_addr_from_ifn_boundall (ifn, stcb, non_asoc_addr_ok, loopscope, loc_scope, 0, 1);
1803 sin6 = sctp_select_v6_nth_addr_from_ifn_boundall (ifn, stcb, non_asoc_addr_ok, loopscope, loc_scope, 0, 0);
1810 printf("Selected the %d'th address of ifn:%p\n",
1811 cur_addr_num, ifn);
1867 * ifn of the route is actually one of the bound addresses.
2737 struct ifnet *ifn;
2744 IFNET_READER_FOREACH(ifn) {
2746 (ifn->if_type == IFT_LOOP)) {
2753 IFADDR_READER_FOREACH(ifa, ifn) {
2770 IFNET_READER_FOREACH(ifn) {
2772 (ifn->if_type == IFT_LOOP)) {
2779 IFADDR_READER_FOREACH(ifa, ifn) {
3691 struct ifnet *ifn;
3697 IFNET_READER_FOREACH(ifn) {
3699 (ifn->if_type == IFT_LOOP)) {
3706 IFADDR_READER_FOREACH(ifa, ifn) {
3720 IFNET_READER_FOREACH(ifn) {
3722 (ifn->if_type == IFT_LOOP)) {
3729 IFADDR_READER_FOREACH(ifa, ifn) {