Home
last modified time | relevance | path

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

/external/chromium_org/third_party/usrsctp/usrsctplib/netinet/
Dsctp_userspace.c40 sctp_userspace_get_mtu_from_ifn(uint32_t if_index, int af) in sctp_userspace_get_mtu_from_ifn() argument
45 if_indextoname(if_index, ifr.ifr_name); in sctp_userspace_get_mtu_from_ifn()
60 sctp_userspace_get_mtu_from_ifn(uint32_t if_index, int af) in sctp_userspace_get_mtu_from_ifn() argument
81 if (pAdapt->IfIndex == if_index) in sctp_userspace_get_mtu_from_ifn()
Dsctp_bsd_addr.c642 ifn->if_index,
735 ifa->ifa_ifp->if_index, ifa->ifa_ifp->if_type, ifa->ifa_ifp->if_xname,
745 ifa->ifa_ifp->if_index,
Dsctp_os_userspace.h904 int sctp_userspace_get_mtu_from_ifn(uint32_t if_index, int af);
/external/wpa_supplicant_8/src/ap/
Dvlan_init.c110 int if_index; in br_delif() local
119 if_index = if_nametoindex(if_name); in br_delif()
121 if (if_index == 0) { in br_delif()
130 args[1] = if_index; in br_delif()
161 int if_index; in br_addif() local
170 if_index = if_nametoindex(if_name); in br_addif()
172 if (if_index == 0) { in br_addif()
181 args[1] = if_index; in br_addif()
/external/dnsmasq/src/
Dtftp.c50 int is_err = 1, if_index = 0, mtu = 0; in tftp_request() local
103 if_index = ((struct in_pktinfo *)CMSG_DATA(cmptr))->ipi_ifindex; in tftp_request()
111 if_index = *((unsigned int *)CMSG_DATA(cmptr)); in tftp_request()
119 if_index = ((struct sockaddr_dl *)CMSG_DATA(cmptr))->sdl_index; in tftp_request()
123 if (!indextoname(listen->tftpfd, if_index, name) || in tftp_request()
125 !iface_check(AF_INET, (struct all_addr *)&addr.sin_addr, name, &if_index)) in tftp_request()
Dforward.c583 int if_index = 0; in receive_query() local
655 if_index = ((struct in_pktinfo *)CMSG_DATA(cmptr))->ipi_ifindex; in receive_query()
665 if_index = *((unsigned int *)CMSG_DATA(cmptr)); in receive_query()
667 if_index = ((struct sockaddr_dl *)CMSG_DATA(cmptr))->sdl_index; in receive_query()
679 if_index =((struct in6_pktinfo *)CMSG_DATA(cmptr))->ipi6_ifindex; in receive_query()
686 if (!indextoname(listen->fd, if_index, ifr.ifr_name) || in receive_query()
687 !iface_check(listen->family, &dst_addr, ifr.ifr_name, &if_index)) in receive_query()
719 m, &source_addr, &dst_addr, if_index); in receive_query()
722 else if (forward_query(listen->fd, &source_addr, &dst_addr, if_index, in receive_query()
Dnetwork.c118 static int iface_allowed(struct irec **irecp, int if_index, in iface_allowed() argument
134 !indextoname(fd, if_index, ifr.ifr_name) || in iface_allowed()
208 int scope, int if_index, void *vparam) in iface_allowed_v6() argument
224 return iface_allowed((struct irec **)vparam, if_index, &addr, netmask); in iface_allowed_v6()
228 static int iface_allowed_v4(struct in_addr local, int if_index, in iface_allowed_v4() argument
242 return iface_allowed((struct irec **)vparam, if_index, &addr, netmask); in iface_allowed_v4()
Ddhcp.c27 static int complete_context(struct in_addr local, int if_index,
367 static int complete_context(struct in_addr local, int if_index, in complete_context() argument
397 if (if_index == param->ind && context->current == context) in complete_context()
/external/ipsec-tools/src/racoon/
Dgrabmyaddr.c284 for (p = p0; p && p->if_index && p->if_name; p++) { in if_maxindex()
285 if (max < p->if_index) in if_maxindex()
286 max = p->if_index; in if_maxindex()
/external/libpcap/
Dpcap-dlpi.c1673 return (ifnet.if_index);