/third_party/toybox/toys/pending/ |
D | tftpd.c | 77 static void send_errpkt(struct sockaddr *dstaddr, in send_errpkt() argument 83 if (sendto(TT.sfd, g_errpkt, strlen(errmsg)+5, 0, dstaddr, socklen) < 0) in send_errpkt() 88 static void do_action(struct sockaddr *srcaddr, struct sockaddr *dstaddr, in do_action() argument 109 send_errpkt(dstaddr, socklen, "can't open file"); in do_action() 150 send_errpkt(dstaddr, socklen, "read-error"); in do_action() 160 if (sendto(TT.sfd, spkt, (ptr - spkt), 0, dstaddr, socklen) <0) in do_action() 180 send_errpkt(dstaddr, socklen, "read-error"); in do_action() 218 send_errpkt(dstaddr, socklen, "write error"); in do_action() 240 struct sockaddr_storage srcaddr, dstaddr; in tftpd_main() local 250 recvmsg_len = recvfrom(fd, toybuf, blksize, 0, (void *)&dstaddr, &socklen); in tftpd_main() [all …]
|
/third_party/ltp/include/ |
D | tst_netdevice.h | 78 unsigned int srcprefix, size_t srclen, const void *dstaddr, 81 #define NETDEV_ADD_ROUTE(ifname, family, srcaddr, srcprefix, srclen, dstaddr, \ argument 84 (srcaddr), (srcprefix), (srclen), (dstaddr), (dstprefix), \ 94 in_addr_t dstaddr, unsigned int dstprefix, in_addr_t gateway); 95 #define NETDEV_ADD_ROUTE_INET(ifname, srcaddr, srcprefix, dstaddr, dstprefix, \ argument 98 (srcprefix), (dstaddr), (dstprefix), (gateway)) 105 unsigned int srcprefix, size_t srclen, const void *dstaddr, 109 dstaddr, dstprefix, dstlen, gateway, gatewaylen) \ argument 111 (srcaddr), (srcprefix), (srclen), (dstaddr), (dstprefix), \ 119 in_addr_t dstaddr, unsigned int dstprefix, in_addr_t gateway); [all …]
|
/third_party/libwebsockets/lib/plat/windows/ |
D | windows-sockets.c | 481 struct sockaddr_in dstaddr; in lws_plat_inet_pton() local 482 int dstaddrlen = sizeof(dstaddr); in lws_plat_inet_pton() 484 memset(&dstaddr, 0, sizeof(dstaddr)); in lws_plat_inet_pton() 485 dstaddr.sin_family = AF_INET; in lws_plat_inet_pton() 487 if (!WSAStringToAddressW(buffer, af, 0, (struct sockaddr *) &dstaddr, &dstaddrlen)) { in lws_plat_inet_pton() 489 memcpy(dst, &dstaddr.sin_addr, sizeof(dstaddr.sin_addr)); in lws_plat_inet_pton() 493 struct sockaddr_in6 dstaddr; in lws_plat_inet_pton() local 494 int dstaddrlen = sizeof(dstaddr); in lws_plat_inet_pton() 496 memset(&dstaddr, 0, sizeof(dstaddr)); in lws_plat_inet_pton() 497 dstaddr.sin6_family = AF_INET6; in lws_plat_inet_pton() [all …]
|
/third_party/ltp/runtest/ |
D | net_stress.broken_ip | 12 broken_ip4-dstaddr broken_ip-dstaddr.sh 14 broken_ip6-dstaddr broken_ip-dstaddr.sh -6
|
/third_party/ltp/lib/ |
D | tst_netdevice.c | 373 const void *dstaddr, unsigned int dstprefix, size_t dstlen, in modify_route() argument 420 if (dstaddr && !tst_rtnl_add_attr(file, lineno, ctx, RTA_DST, dstaddr, in modify_route() 452 in_addr_t srcaddr, unsigned int srcprefix, in_addr_t dstaddr, in modify_route_inet() argument 464 dst = &dstaddr; in modify_route_inet() 465 dstlen = sizeof(dstaddr); in modify_route_inet() 479 unsigned int srcprefix, size_t srclen, const void *dstaddr, in tst_netdev_add_route() argument 485 srclen, dstaddr, dstprefix, dstlen, gateway, gatewaylen); in tst_netdev_add_route() 490 in_addr_t dstaddr, unsigned int dstprefix, in_addr_t gateway) in tst_netdev_add_route_inet() argument 493 NLM_F_CREATE | NLM_F_EXCL, ifname, srcaddr, srcprefix, dstaddr, in tst_netdev_add_route_inet() 499 unsigned int srcprefix, size_t srclen, const void *dstaddr, in tst_netdev_remove_route() argument [all …]
|
/third_party/curl/packages/OS400/ |
D | os400sys.c | 1160 sockaddr2ebcdic(struct sockaddr_storage *dstaddr, in sockaddr2ebcdic() argument 1171 sizeof(srcaddr->sa_family) || srclen > sizeof(*dstaddr)) { in sockaddr2ebcdic() 1176 memcpy((char *) dstaddr, (char *) srcaddr, srclen); in sockaddr2ebcdic() 1182 dstu = (struct sockaddr_un *) dstaddr; in sockaddr2ebcdic() 1183 dstsize = sizeof(*dstaddr) - offsetof(struct sockaddr_un, sun_path); in sockaddr2ebcdic() 1195 sockaddr2ascii(struct sockaddr *dstaddr, int dstlen, in sockaddr2ascii() argument 1213 memcpy((char *) dstaddr, (char *) srcaddr, srclen); in sockaddr2ascii() 1221 dstu = (struct sockaddr_un *) dstaddr; in sockaddr2ascii() 1266 struct sockaddr *dstaddr, int addrlen) in Curl_os400_sendto() argument 1271 i = sockaddr2ebcdic(&laddr, dstaddr, addrlen); in Curl_os400_sendto()
|
/third_party/ltp/testcases/network/stress/broken_ip/ |
D | 00_Descriptions.txt | 25 broken_ip4-dstaddr 42 broken_ip6-dstaddr
|
/third_party/ltp/doc/ |
D | network-c-api.txt | 217 *srcaddr, unsigned int srcprefix, size_t srclen, const void *dstaddr, 223 +dstaddr+ are optional. You must also specify the corresponding length 229 int srcprefix, in_addr_t dstaddr, unsigned int dstprefix, in_addr_t 237 *srcaddr, unsigned int srcprefix, size_t srclen, const void *dstaddr, 244 unsigned int srcprefix, in_addr_t dstaddr, unsigned int dstprefix, in_addr_t
|
/third_party/curl/lib/ |
D | setup-os400.h | 206 struct sockaddr *dstaddr, int addrlen);
|