/external/dhcpcd-6.8.2/ |
H A D | script-stub.c | 38 send_interface(struct fd_list *fd, const struct interface *ifp) argument 45 script_runreason(const struct interface *ifp, const char *reason) argument
|
H A D | rpc-interface.h | 43 int rpc_update_ipv4(struct interface *ifp); 47 int rpc_update_ipv6(struct interface *ifp); 51 int rpc_notify_unicast_arp(struct interface *ifp);
|
H A D | rpc-stub.c | 50 rpc_update_ipv4(struct interface *ifp) argument 58 rpc_update_ipv6(struct interface *ifp) argument 66 rpc_notify_unicast_arp(struct interface *ifp) argument
|
H A D | duid.c | 54 duid_make(unsigned char *d, const struct interface *ifp, uint16_t type) argument 65 u16 = htons(ifp->family); 77 memcpy(p, ifp->hwaddr, ifp->hwlen); 78 p += ifp->hwlen; 84 duid_get(unsigned char *d, const struct interface *ifp) argument 113 logger(ifp->ctx, LOG_ERR, 118 if (ifp->family == ARPHRD_NETROM) { 119 logger(ifp->ctx, LOG_WARNING, 120 "%s: is a NET/ROM psuedo interface", ifp 153 duid_init(const struct interface *ifp) argument [all...] |
H A D | dhcpcd.c | 214 const struct interface *ifp; local 216 TAILQ_FOREACH(ifp, ctx->ifaces, next) { 217 if (D_STATE_RUNNING(ifp) || 218 RS_STATE_RUNNING(ifp) || 219 D6_STATE_RUNNING(ifp)) 323 dhcpcd_drop(struct interface *ifp, int stop) argument 326 dhcp6_drop(ifp, stop ? NULL : "EXPIRE6"); 327 ipv6nd_drop(ifp); 328 ipv6_drop(ifp); 329 dhcp_drop(ifp, sto 334 stop_interface(struct interface *ifp) argument 360 configure_interface1(struct interface *ifp) argument 529 dhcpcd_selectprofile(struct interface *ifp, const char *profile) argument 567 configure_interface(struct interface *ifp, int argc, char **argv, unsigned long long options) argument 589 struct interface *ifp = arg; local 609 struct interface *ifp; local 700 warn_iaid_conflict(struct interface *ifp, uint8_t *iaid) argument 728 pre_start(struct interface *ifp) argument 744 struct interface *ifp = arg; local 852 struct interface *ifp = arg; local 891 dhcpcd_initstate1(struct interface *ifp, int argc, char **argv, unsigned long long options) argument 919 dhcpcd_initstate(struct interface *ifp, unsigned long long options) argument 926 run_preinit(struct interface *ifp) argument 945 struct interface *ifp, *iff, *ifn; local 1018 struct interface *ifp; local 1043 struct interface *ifp; local 1057 struct interface *ifp; local 1071 struct interface *ifp; local 1080 struct interface *ifp; local 1093 if_reboot(struct interface *ifp, int argc, char **argv) argument 1126 struct interface *ifn, *ifp; local 1156 struct interface *ifp; local 1185 struct interface *ifp; local 1286 struct interface *ifp; local 1313 struct interface *ifp; local 1436 struct interface *ifp; local [all...] |
H A D | if.c | 106 if_free(struct interface *ifp) argument 109 if (ifp == NULL) 111 ipv4_free(ifp); 112 dhcp_free(ifp); 113 dhcp6_free(ifp); 114 ipv6nd_free(ifp); 115 ipv6_free(ifp); 116 free_options(ifp->options); 117 free(ifp); 155 if_setflag(struct interface *ifp, shor argument 195 struct interface *ifp; local 259 struct interface *ifp; local 595 struct interface *ifp; local 699 struct interface *ifp, *ift; local [all...] |
H A D | dhcp.c | 121 static int dhcp_open(struct interface *ifp); 582 get_option_routes(struct interface *ifp, const struct dhcp_message *dhcp) argument 584 struct if_options *ifo = ifp->options; 594 p = get_option(ifp->ctx, dhcp, DHO_CSR, &len); 599 p = get_option(ifp->ctx, dhcp, DHO_MSCSR, &len); 604 routes = decode_rfc3442_rt(ifp->ctx, p, len); 608 state = D_CSTATE(ifp); 612 logger(ifp->ctx, LOG_DEBUG, 614 ifp->name, csr); 624 logger(ifp 712 make_message(struct dhcp_message **message, const struct interface *ifp, uint8_t type) argument 1069 write_lease(const struct interface *ifp, const struct dhcp_message *dhcp) argument 1127 read_lease(struct interface *ifp) argument 1278 dhcp_env(char **env, const char *prefix, const struct dhcp_message *dhcp, const struct interface *ifp) argument 1477 dhcp_xid(const struct interface *ifp) argument 1493 dhcp_close(struct interface *ifp) argument 1510 dhcp_openudp(struct interface *ifp) argument 1640 send_message(struct interface *ifp, uint8_t type, void (*callback)(void *)) argument 1821 struct interface *ifp = arg; local 1852 struct interface *ifp = arg; local 1867 struct interface *ifp = arg; local 1879 dhcp_decline(struct interface *ifp) argument 1888 struct interface *ifp = arg; local 1917 struct interface *ifp = arg; local 2062 dhcp_bind(struct interface *ifp, struct arp_state *astate) argument 2230 struct interface *ifp = arg; local 2260 dhcp_static(struct interface *ifp) argument 2284 dhcp_inform(struct interface *ifp) argument 2329 dhcp_reboot_newopts(struct interface *ifp, unsigned long long oldopts) argument 2349 dhcp_reboot(struct interface *ifp) argument 2411 dhcp_drop(struct interface *ifp, const char *reason) argument 2469 log_dhcp1(int lvl, const char *msg, const struct interface *ifp, const struct dhcp_message *dhcp, const struct in_addr *from, int ad) argument 2533 log_dhcp(int lvl, const char *msg, const struct interface *ifp, const struct dhcp_message *dhcp, const struct in_addr *from) argument 2566 save_gateway_addr(struct interface *ifp, const uint8_t *gw_hwaddr) argument 2631 dhcp_probe_gw(struct interface *ifp) argument 2652 start_unicast_arp(struct interface *ifp) argument 2802 struct interface *ifp = arg; local 2824 dhcp_handledhcp(struct interface *ifp, struct dhcp_message **dhcpp, const struct in_addr *from) argument 3250 struct interface *ifp = arg; local 3359 dhcp_open(struct interface *ifp) argument 3393 dhcp_dump(struct interface *ifp) argument 3419 dhcp_free(struct interface *ifp) argument 3460 dhcp_init(struct interface *ifp) argument 3546 struct interface *ifp = arg; local 3723 dhcp_start(struct interface *ifp) argument 3743 dhcp_handleifa(int cmd, struct interface *ifp, const struct in_addr *addr, const struct in_addr *net, const struct in_addr *dst, __unused int flags) argument [all...] |
H A D | dhcp6.c | 157 dhcp6_makevendor(struct dhcp6_option *o, const struct interface *ifp) argument 168 ifo = ifp->options; 185 logger(ifp->ctx, LOG_ERR, 186 "%s: DHCPv6 Vendor Class too big", ifp->name); 298 dhcp6_updateelapsed(struct interface *ifp, struct dhcp6_message *m, size_t len) argument 311 state = D6_STATE(ifp); 321 dhcp6_newxid(const struct interface *ifp, struct dhcp6_message *m) argument 325 if (ifp->options->options & DHCPCD_XID_HWADDR && 326 ifp->hwlen >= sizeof(xid)) 328 memcpy(&xid, (ifp 339 dhcp6_findselfsla(struct interface *ifp, const uint8_t *iaid) argument 393 dhcp6_delegateaddr(struct in6_addr *addr, struct interface *ifp, const struct ipv6_addr *prefix, const struct if_sla *sla, struct if_ia *ia) argument 493 dhcp6_has_public_addr(const struct interface *ifp) argument 508 dhcp6_makemessage(struct interface *ifp) argument 964 dhcp6_freedrop_addrs(struct interface *ifp, int drop, const struct interface *ifd) argument 977 dhcp6_delete_delegates(struct interface *ifp) argument 990 dhcp6_update_auth(struct interface *ifp, struct dhcp6_message *m, size_t len) argument 1010 dhcp6_sendmessage(struct interface *ifp, void (*callback)(void *)) argument 1237 struct interface *ifp; local 1257 dhcp6_dadcompleted(const struct interface *ifp) argument 1275 struct interface *ifp; local 1318 dhcp6_addrequestedaddrs(struct interface *ifp) argument 1375 struct interface *ifp; local 1411 struct interface *ifp; local 1425 struct interface *ifp; local 1439 struct interface *ifp; local 1453 dhcp6_hasprefixdelegation(struct interface *ifp) argument 1476 struct interface *ifp; local 1519 dhcp6_startrequest(struct interface *ifp) argument 1543 dhcp6_startconfirm(struct interface *ifp) argument 1572 struct interface *ifp; local 1599 struct interface *ifp; local 1617 dhcp6_startrelease(struct interface *ifp) argument 1646 dhcp6_checkstatusok(const struct interface *ifp, const struct dhcp6_message *m, const uint8_t *p, size_t len) argument 1699 dhcp6_iffindaddr(struct interface *ifp, const struct in6_addr *addr, short flags) argument 1726 struct interface *ifp; local 1738 dhcp6_findna(struct interface *ifp, uint16_t ot, const uint8_t *iaid, const uint8_t *d, size_t l, const struct timespec *acquired) argument 1819 dhcp6_findpd(struct interface *ifp, const uint8_t *iaid, const uint8_t *d, size_t l, const struct timespec *acquired) argument 1945 dhcp6_findia(struct interface *ifp, const struct dhcp6_message *m, size_t l, const char *sfrom, const struct timespec *acquired) argument 2097 dhcp6_validatelease(struct interface *ifp, const struct dhcp6_message *m, size_t len, const char *sfrom, const struct timespec *acquired) argument 2131 dhcp6_writelease(const struct interface *ifp) argument 2152 dhcp6_readlease(struct interface *ifp, int validate) argument 2256 dhcp6_startinit(struct interface *ifp) argument 2303 dhcp6_ifdelegateaddr(struct interface *ifp, struct ipv6_addr *prefix, const struct if_sla *sla, struct if_ia *ia, struct interface *ifs) argument 2373 dhcp6_script_try_run(struct interface *ifp, int delegated) argument 2408 dhcp6_delegate_prefix(struct interface *ifp) argument 2521 dhcp6_find_delegates(struct interface *ifp) argument 2581 dhcp6_findpfxdlgif(struct interface *ifp) argument 2608 struct interface *ifp, *ifpx; local 3163 struct interface *ifp = arg; local 3246 dhcp6_start(struct interface *ifp, enum DH6S init_state) argument 3305 dhcp6_reboot(struct interface *ifp) argument 3326 dhcp6_freedrop(struct interface *ifp, int drop, const char *reason) argument 3423 dhcp6_drop(struct interface *ifp, const char *reason) argument 3430 dhcp6_free(struct interface *ifp) argument 3440 struct interface *ifp; local 3456 dhcp6_env(char **env, const char *prefix, const struct interface *ifp, const struct dhcp6_message *m, size_t len) argument 3601 dhcp6_dump(struct interface *ifp) argument [all...] |
H A D | ipv6nd.c | 228 ipv6nd_makersprobe(struct interface *ifp) argument 234 state = RS_STATE(ifp); 236 state->rslen = sizeof(*rs) + (size_t)ROUNDUP8(ifp->hwlen + 2); 247 nd->nd_opt_len = (uint8_t)((ROUNDUP8(ifp->hwlen + 2)) >> 3); 248 memcpy(nd + 1, ifp->hwaddr, ifp->hwlen); 255 struct interface *ifp = arg; local 262 if (ipv6_linklocal(ifp) == NULL) { 263 logger(ifp->ctx, LOG_DEBUG, 265 ifp 320 ipv6nd_expire(struct interface *ifp, uint32_t seconds) argument 449 ipv6nd_free(struct interface *ifp) argument 595 ipv6nd_dadcompleted(const struct interface *ifp) argument 617 struct interface *ifp; local 725 ipv6nd_handlera(struct dhcpcd_ctx *dctx, struct interface *ifp, struct icmp6_hdr *icp, size_t len) argument 1235 ipv6nd_runignoredra(struct interface *ifp) argument 1261 ipv6nd_hasra(const struct interface *ifp) argument 1274 ipv6nd_hasradhcp(const struct interface *ifp) argument 1290 ipv6nd_env(char **env, const char *prefix, const struct interface *ifp) argument 1422 struct interface *ifp; local 1520 ipv6nd_drop(struct interface *ifp) argument 1552 ipv6nd_handlena(struct dhcpcd_ctx *dctx, struct interface *ifp, struct icmp6_hdr *icp, size_t len) argument 1637 struct interface *ifp; local 1715 struct interface *ifp = arg; local 1748 ipv6nd_startrs(struct interface *ifp) argument [all...] |
H A D | arp.c | 58 arp_request(const struct interface *ifp, in_addr_t sip, in_addr_t tip, argument 66 ar.ar_hrd = htons(ifp->family); 68 ar.ar_hln = ifp->hwlen; 87 APPEND(ifp->hwaddr, ifp->hwlen); 90 APPEND(dest_hw_addr, ifp->hwlen); 92 ZERO(ifp->hwlen); 94 return if_sendrawpacket(ifp, ETHERTYPE_ARP, arp_buffer, len, 124 struct interface *ifp = arg; local 135 state = D_STATE(ifp); 193 arp_open(struct interface *ifp) argument 228 struct interface *ifp = astate->iface; local 270 struct interface *ifp = astate->iface; local 309 arp_find(struct interface *ifp, const struct in_addr *addr) argument 324 arp_new(struct interface *ifp, const struct in_addr *addr) argument 382 arp_close(struct interface *ifp) argument 406 arp_handleifa(int cmd, struct interface *ifp, const struct in_addr *addr, int flags) argument [all...] |
H A D | script.c | 223 make_env(const struct interface *ifp, const char *reason, char ***argv) argument 230 const struct if_options *ifo = ifp->options; 243 state = D_STATE(ifp); 247 d6_state = D6_CSTATE(ifp); 254 else if (ipv6nd_hasra(ifp)) 284 if (ifp->ctx->options & DHCPCD_DUMPLEASE) 294 e = strlen("interface") + strlen(ifp->name) + 2; 296 snprintf(env[0], e, "interface=%s", ifp->name); 300 if (ifp->ctx->options & DHCPCD_DUMPLEASE) 307 ifp 570 send_interface(struct fd_list *fd, const struct interface *ifp) argument 618 script_runreason(const struct interface *ifp, const char *reason) argument [all...] |
H A D | ipv4.c | 114 ipv4_iffindaddr(struct interface *ifp, argument 120 state = IPV4_STATE(ifp); 132 ipv4_iffindlladdr(struct interface *ifp) argument 137 state = IPV4_STATE(ifp); 150 struct interface *ifp; local 153 TAILQ_FOREACH(ifp, ctx->ifaces, next) { 154 ap = ipv4_iffindaddr(ifp, addr, NULL); 164 struct interface *ifp; local 167 TAILQ_FOREACH(ifp, ctx->ifaces, next) { 168 state = D_STATE(ifp); 441 add_subnet_route(struct rt_head *rt, const struct interface *ifp) argument 474 add_loopback_route(struct rt_head *rt, const struct interface *ifp) argument 501 get_routes(struct interface *ifp) argument 531 massage_host_routes(struct rt_head *rt, const struct interface *ifp) argument 550 add_destination_route(struct rt_head *rt, const struct interface *ifp) argument 575 add_router_host_route(struct rt_head *rt, const struct interface *ifp) argument 652 struct interface *ifp; local 743 ipv4_deladdr(struct interface *ifp, const struct in_addr *addr, const struct in_addr *net) argument 784 delete_address(struct interface *ifp) argument 800 ipv4_getstate(struct interface *ifp) argument 819 ipv4_addaddr(struct interface *ifp, const struct dhcp_lease *lease) argument 864 ipv4_finalisert(struct interface *ifp) argument 879 ipv4_finaliseaddr(struct interface *ifp) argument 1034 struct interface *ifp; local 1084 ipv4_free(struct interface *ifp) argument [all...] |
H A D | ipv4ll.c | 76 struct interface *ifp; local 91 TAILQ_FOREACH(ifp, astate->iface->ctx->ifaces, next) { 92 state = D_CSTATE(ifp); 98 if (ifp == NULL) 208 struct interface *ifp = arg; local 209 struct dhcp_state *state = D_STATE(ifp); 223 if (sizeof(seed) > ifp->hwlen) { 225 memcpy(&seed, ifp->hwaddr, ifp->hwlen); 227 memcpy(&seed, ifp 276 ipv4ll_stop(struct interface *ifp) argument [all...] |
H A D | if-sun.c | 82 if_openrawsocket(struct interface *ifp, int protocol) argument 90 if_sendrawpacket(const struct interface *ifp, int protocol, argument 99 if_readrawpacket(struct interface *ifp, int protocol, argument 146 if_addrflags6(const struct in6_addr *addr, const struct interface *ifp) argument
|
H A D | if.h | 97 int if_setflag(struct interface *ifp, short flag); 98 #define if_up(ifp) if_setflag((ifp), (IFF_UP | IFF_RUNNING)) 139 #define if_addaddress(ifp, addr, net, brd) \ 140 if_address(ifp, addr, net, brd, 1) 141 #define if_deladdress(ifp, addr, net) \ 142 if_address(ifp, addr, net, NULL, -1)
|
H A D | ipv4.h | 67 #define IPV4_STATE(ifp) \ 68 ((struct ipv4_state *)(ifp)->if_data[IF_DATA_IPV4]) 69 #define IPV4_CSTATE(ifp) \ 70 ((const struct ipv4_state *)(ifp)->if_data[IF_DATA_IPV4]) 85 int ipv4_deladdr(struct interface *ifp, const struct in_addr *,
|
H A D | if-bsd.c | 152 if_linkaddr(struct sockaddr_dl *sdl, const struct interface *ifp) argument 159 sdl->sdl_index = (unsigned short)ifp->index; 221 if_getssid(struct interface *ifp) argument 225 r = if_getssid1(ifp->name, ifp->ssid); 227 ifp->ssid_len = (unsigned int)r; 294 if_openrawsocket(struct interface *ifp, uint16_t protocol) argument 321 state = D_STATE(ifp); 328 logger(ifp->ctx, LOG_ERR, "BPF version mismatch - recompile"); 333 strlcpy(ifr.ifr_name, ifp 378 if_sendrawpacket(const struct interface *ifp, uint16_t protocol, const void *data, size_t len, const uint8_t *dest_hw_addr) argument 407 if_readrawpacket(struct interface *ifp, uint16_t protocol, void *data, size_t len, int *flags) argument 458 if_address(const struct interface *ifp, const struct in_addr *address, const struct in_addr *netmask, const struct in_addr *broadcast, int action) argument 684 if_initrt(struct interface *ifp) argument 722 if_addrflags(const struct in_addr *addr, const struct interface *ifp) argument 744 if_addrflags(__unused const struct in_addr *addr, __unused const struct interface *ifp) argument 1042 if_initrt6(struct interface *ifp) argument 1079 if_addrflags6(const struct in6_addr *addr, const struct interface *ifp) argument 1158 struct interface *ifp; local 1451 if_nd6_flag(int s, const struct interface *ifp, unsigned int flag, int set) argument 1487 af_attach(int s, const struct interface *ifp, int af) argument 1499 set_ifxflags(int s, const struct interface *ifp, int own) argument 1528 _if_checkipv6(int s, struct dhcpcd_ctx *ctx, const struct interface *ifp, int own) argument 1679 if_checkipv6(struct dhcpcd_ctx *ctx, const struct interface *ifp, int own) argument [all...] |
H A D | dhcp6.h | 207 #define D6_STATE(ifp) \ 208 ((struct dhcp6_state *)(ifp)->if_data[IF_DATA_DHCP6]) 209 #define D6_CSTATE(ifp) \ 210 ((const struct dhcp6_state *)(ifp)->if_data[IF_DATA_DHCP6]) 211 #define D6_STATE_RUNNING(ifp) \ 212 (D6_CSTATE((ifp)) && \ 213 D6_CSTATE((ifp))->reason && dhcp6_dadcompleted((ifp)))
|
H A D | ifaddrs.c | 138 struct ifaddrs *ifp; local 141 ifp = ifa; 142 free(ifp->ifa_name); 143 if (ifp->ifa_addr) 144 free(ifp->ifa_addr); 145 if (ifp->ifa_netmask) 146 free(ifp->ifa_netmask); 148 free(ifp);
|
H A D | if-linux.c | 206 if_init(struct interface *ifp) argument 218 snprintf(path, sizeof(path), PROC_PROMOTE, ifp->name); 228 if_conf(struct interface *ifp) argument 234 snprintf(path, sizeof(path), SYS_LAYER2, ifp->name); 239 ifp->options->options |= DHCPCD_BROADCAST; 321 get_netlink(struct dhcpcd_ctx *ctx, struct interface *ifp, int fd, int flags, argument 381 r = callback(ctx, ifp, nlm); 523 link_route(struct dhcpcd_ctx *ctx, __unused struct interface *ifp, argument 579 link_addr(struct dhcpcd_ctx *ctx, struct interface *ifp, struct nlmsghdr *nlm) argument 600 if ((ifp 674 struct interface *ifp; local 690 link_neigh(struct dhcpcd_ctx *ctx, __unused struct interface *ifp, struct nlmsghdr *nlm) argument 734 link_netlink(struct dhcpcd_ctx *ctx, struct interface *ifp, struct nlmsghdr *nlm) argument 839 send_netlink(struct dhcpcd_ctx *ctx, struct interface *ifp, int protocol, struct nlmsghdr *hdr, int (*callback)(struct dhcpcd_ctx *, struct interface *, struct nlmsghdr *)) argument 1010 _gnl_getfamily(__unused struct dhcpcd_ctx *ctx, __unused struct interface *ifp, struct nlmsghdr *nlm) argument 1045 _if_getssid(__unused struct dhcpcd_ctx *ctx, struct interface *ifp, struct nlmsghdr *nlm) argument 1074 if_getssid_nl80211(struct interface *ifp) argument 1096 if_getssid(struct interface *ifp) argument 1128 if_openrawsocket(struct interface *ifp, uint16_t protocol) argument 1196 if_sendrawpacket(const struct interface *ifp, uint16_t protocol, const void *data, size_t len, const uint8_t *dest_hw_addr) argument 1232 if_readrawpacket(struct interface *ifp, uint16_t protocol, void *data, size_t len, int *flags) argument 1391 _if_initrt(struct dhcpcd_ctx *ctx, __unused struct interface *ifp, struct nlmsghdr *nlm) argument 1402 if_initrt(struct interface *ifp) argument 1422 if_addrflags(__unused const struct in_addr *addr, __unused const struct interface *ifp) argument 1593 _if_initrt6(struct dhcpcd_ctx *ctx, __unused struct interface *ifp, struct nlmsghdr *nlm) argument 1604 if_initrt6(struct interface *ifp) argument 1624 if_addrflags6(const struct in6_addr *addr, const struct interface *ifp) argument 1728 if_checkipv6(struct dhcpcd_ctx *ctx, const struct interface *ifp, int own) argument [all...] |
H A D | ipv6.h | 169 #define IPV6_STATE(ifp) \ 170 ((struct ipv6_state *)(ifp)->if_data[IF_DATA_IPV6]) 171 #define IPV6_CSTATE(ifp) \ 172 ((const struct ipv6_state *)(ifp)->if_data[IF_DATA_IPV6]) 219 const struct interface *ifp, int *dad_counter); 241 #define ipv6_linklocal(ifp) ipv6_iffindaddr((ifp), NULL) 245 #define ipv6_free(ifp) ipv6_freedrop((ifp), 0) 246 #define ipv6_drop(ifp) ipv6_freedro [all...] |
H A D | ipv6.c | 380 const struct interface *ifp, 391 ifp->hwaddr, ifp->hwlen, 392 ifp->ssid, ifp->ssid_len, 394 ifp->ctx->secret, ifp->ctx->secret_len); 402 ipv6_makeaddr(struct in6_addr *addr, const struct interface *ifp, argument 413 if (ifp->options->options & DHCPCD_SLAACPRIVATE) { 414 if (ifp 378 ipv6_makestableprivate(struct in6_addr *addr, const struct in6_addr *prefix, int prefix_len, const struct interface *ifp, int *dad_counter) argument 637 struct interface *ifp; local 891 ipv6_getstate(struct interface *ifp) argument 920 struct interface *ifp; local 1045 ipv6_iffindaddr(const struct interface *ifp, const struct in6_addr *addr) argument 1068 ipv6_addlinklocalcallback(struct interface *ifp, void (*callback)(void *), void *arg) argument 1093 ipv6_newlinklocal(struct interface *ifp) argument 1117 ipv6_addlinklocal(struct interface *ifp) argument 1227 ipv6_start(struct interface *ifp) argument 1260 ipv6_freedrop(struct interface *ifp, int drop) argument 1352 const struct interface *ifp; local 1373 ipv6_regen_desync(struct interface *ifp, int force) argument 1397 ipv6_gentempifid(struct interface *ifp) argument 1490 const struct interface *ifp; local 1584 ipv6_settempstale(struct interface *ifp) argument 1675 ipv6_addtempaddrs(struct interface *ifp, const struct timespec *now) argument 1707 struct interface *ifp = arg; local 1898 make_route(const struct interface *ifp, const struct ra *rap) argument 1919 make_prefix(const struct interface *ifp, const struct ra *rap, const struct ipv6_addr *addr) argument 2003 const struct interface *ifp; local [all...] |
/external/libcups/cups/ |
H A D | getifaddrs.c | 35 struct ifreq *ifp; /* Interface data */ local 94 ifp = (struct ifreq *)bufptr; 95 ifpsize = sizeof(ifp->ifr_name) + sockaddr_len(&(ifp->ifr_addr)); 101 memcpy(request.ifr_name, ifp->ifr_name, sizeof(ifp->ifr_name)); 131 temp->ifa_name = strdup(ifp->ifr_name); 133 if ((temp->ifa_addr = calloc(1, sockaddr_len(&(ifp->ifr_addr)))) != NULL) 134 memcpy(temp->ifa_addr, &(ifp->ifr_addr), sockaddr_len(&(ifp [all...] |
/external/blktrace/ |
H A D | blkrawverify.c | 144 FILE *ifp, *ofp; local 155 ifp = fopen(file, "r"); 156 if (!ifp) 166 fclose(ifp); 174 while ((n = fread(bit, sizeof(struct blk_io_trace), 1, ifp)) == 1) { 175 if (ferror(ifp)) { 176 clearerr(ifp); 199 n = fread(pdu_buf, bit->pdu_len, 1, ifp); 246 if (n == 0 && !feof(ifp)) 249 fclose(ifp); [all...] |
/external/libusb/libusb/ |
H A D | descriptor.c | 197 struct libusb_interface_descriptor *ifp = local 200 free((void *) ifp->extra); 201 if (ifp->endpoint) { 202 for (j = 0; j < ifp->bNumEndpoints; j++) 204 ifp->endpoint + j); 206 free((void *) ifp->endpoint); 223 struct libusb_interface_descriptor *ifp; local 240 ifp = altsetting + usb_interface->num_altsetting; 241 usbi_parse_descriptor(buffer, "bbbbbbbbb", ifp, 0); 242 if (ifp [all...] |