Home
last modified time | relevance | path

Searched refs:p_fd (Results 1 – 2 of 2) sorted by relevance

/external/toybox/toys/pending/
Darping.c243 int p_fd = xsocket(AF_INET, SOCK_DGRAM, 0); in arping_main() local
245 if (setsockopt(p_fd, SOL_SOCKET, SO_BINDTODEVICE, TT.iface, in arping_main()
252 if (bind(p_fd, (struct sockaddr*)&saddr, sizeof(saddr))) in arping_main()
259 if (connect(p_fd, (struct sockaddr *) &saddr, sizeof(saddr))) in arping_main()
264 xclose(p_fd); in arping_main()
Dtraceroute.c616 int p_fd = xsocket(AF_INET6, SOCK_DGRAM, 0); in traceroute_main() local
617 if (toys.optflags & FLAG_i) bind_to_interface(p_fd); in traceroute_main()
620 if (connect(p_fd, (struct sockaddr *)&dest, sizeof(struct sockaddr_in6)) < 0) in traceroute_main()
622 if(getsockname(p_fd, (struct sockaddr *)&prb, &len)) in traceroute_main()
624 close(p_fd); in traceroute_main()