/kernel/liteos_m/kal/libc/newlib/porting/include/sys/ |
D | socket.h | 42 typedef unsigned socklen_t; typedef 47 socklen_t msg_namelen; 60 socklen_t msg_controllen; 71 socklen_t cmsg_len; 238 int bind(int, const struct sockaddr *, socklen_t); 239 int connect(int, const struct sockaddr *, socklen_t); 241 int accept(int, struct sockaddr *__restrict, socklen_t *__restrict); 242 int accept4(int, struct sockaddr *__restrict, socklen_t *__restrict, int); 244 int getsockname(int, struct sockaddr *__restrict, socklen_t *__restrict); 245 int getpeername(int, struct sockaddr *__restrict, socklen_t *__restrict); [all …]
|
/kernel/liteos_a/testsuites/unittest/net/socket/smoke/ |
D | net_socket_test_007.cpp | 61 reinterpret_cast<socklen_t *>(INVALID_USER_ADDR)); in TcpTest() 65 reinterpret_cast<socklen_t *>(INVALID_KERNEL_ADDR)); in TcpTest() 69 reinterpret_cast<socklen_t *>(INVALID_USER_ADDR)); in TcpTest() 73 reinterpret_cast<socklen_t *>(INVALID_KERNEL_ADDR)); in TcpTest() 77 reinterpret_cast<socklen_t *>(INVALID_USER_ADDR)); in TcpTest() 81 reinterpret_cast<socklen_t *>(INVALID_KERNEL_ADDR)); in TcpTest() 91 …reinterpret_cast<struct sockaddr *>(INVALID_USER_ADDR), static_cast<socklen_t>(sizeof(struct socka… in TcpTest() 95 …reinterpret_cast<struct sockaddr *>(INVALID_KERNEL_ADDR), static_cast<socklen_t>(sizeof(struct soc… in TcpTest() 105 …reinterpret_cast<struct sockaddr *>(INVALID_USER_ADDR), reinterpret_cast<socklen_t *>(INVALID_USER… in TcpTest() 109 …reinterpret_cast<struct sockaddr *>(INVALID_KERNEL_ADDR), reinterpret_cast<socklen_t *>(INVALID_KE… in TcpTest() [all …]
|
D | net_socket_test_002.cpp | 55 socklen_t clnAddrLen = sizeof(clnAddr); in UdpTest() 79 static_cast<socklen_t>(sizeof(clnAddr))); in UdpTest()
|
/kernel/liteos_a/compat/posix/src/ |
D | socket.c | 43 int accept(int s, struct sockaddr *addr, socklen_t *addrlen) in accept() 48 int bind(int s, const struct sockaddr *name, socklen_t namelen) in bind() 63 int getpeername(int s, struct sockaddr *name, socklen_t *namelen) in getpeername() 70 int getsockname(int s, struct sockaddr *name, socklen_t *namelen) in getsockname() 77 int getsockopt(int s, int level, int optname, void *optval, socklen_t *optlen) in getsockopt() 82 int setsockopt(int s, int level, int optname, const void *optval, socklen_t optlen) in setsockopt() 92 int connect(int s, const struct sockaddr *name, socklen_t namelen) in connect() 114 struct sockaddr *from, socklen_t *fromlen) in recvfrom() 141 const struct sockaddr *to, socklen_t tolen) in sendto() 156 const char *inet_ntop(int af, const void *src, char *dst, socklen_t size) in inet_ntop()
|
/kernel/liteos_a/syscall/ |
D | net_syscall.c | 78 int SysBind(int s, const struct sockaddr *name, socklen_t namelen) in SysBind() 101 int SysConnect(int s, const struct sockaddr *name, socklen_t namelen) in SysConnect() 138 socklen_t *addressLen) in SysAccept() 144 CHECK_ASPACE(addressLen, sizeof(socklen_t)); in SysAccept() 164 int SysGetSockName(int s, struct sockaddr *name, socklen_t *namelen) in SysGetSockName() 170 CHECK_ASPACE(namelen, sizeof(socklen_t)); in SysGetSockName() 193 int SysGetPeerName(int s, struct sockaddr *name, socklen_t *namelen) in SysGetPeerName() 199 CHECK_ASPACE(namelen, sizeof(socklen_t)); in SysGetPeerName() 246 const struct sockaddr *to, socklen_t tolen) in SysSendTo() 299 socklen_t *addressLen) in SysRecvFrom() [all …]
|
D | los_syscall.h | 149 extern int SysBind(int s, const struct sockaddr *name, socklen_t namelen); 150 extern int SysConnect(int s, const struct sockaddr *name, socklen_t namelen); 152 extern int SysAccept(int socket, struct sockaddr *address, socklen_t *addressLen); 153 extern int SysGetSockName(int s, struct sockaddr *name, socklen_t *namelen); 154 extern int SysGetPeerName(int s, struct sockaddr *name, socklen_t *namelen); 157 const struct sockaddr *to, socklen_t tolen); 160 struct sockaddr *address, socklen_t *addressLen); 163 const void *optValue, socklen_t optLen); 165 void *optValue, socklen_t *optLen);
|
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/ |
D | network_helpers.c | 73 socklen_t len; in start_server() 111 socklen_t addrlen = sizeof(addr); in fastopen_connect() 146 socklen_t addrlen) in connect_fd_to_addr() 160 socklen_t addrlen, optlen; in connect_to_fd() 198 socklen_t len = sizeof(addr); in connect_fd_to_fd() 215 struct sockaddr_storage *addr, socklen_t *len) in make_sockaddr()
|
D | test_sock_addr.c | 56 typedef int (*info_fn)(int, struct sockaddr *, socklen_t *); 604 struct sockaddr *addr, socklen_t addr_len) in mk_sockaddr() 1142 socklen_t len1 = sizeof(addr1); in cmp_sock_addr() 1145 if (fn(sock1, (struct sockaddr *)&addr1, (socklen_t *)&len1) != 0) in cmp_sock_addr() 1167 socklen_t addr_len) in start_server() 1198 socklen_t addr_len) in connect_to_server() 1260 socklen_t addr_len, int set_cmsg, int flags, in sendmsg_to_server() 1329 socklen_t addr_len) in fastconnect_to_server() 1373 socklen_t addr_len = sizeof(struct sockaddr_storage); in init_addrs() 1395 socklen_t addr_len = sizeof(struct sockaddr_storage); in run_bind_test_case() [all …]
|
D | test_socket_cookie.c | 64 socklen_t len = sizeof(addr); in connect_to_server() 96 socklen_t len = sizeof(addr); in validate_map()
|
/kernel/liteos_m/kal/libc/newlib/porting/include/ |
D | netdb.h | 95 socklen_t ai_addrlen; 104 int getnameinfo(const struct sockaddr * __restrict sa, socklen_t salen, char * __restrict host, \ 105 socklen_t hostlen, char * __restrict serv, socklen_t servlen, int flags); 163 struct hostent *gethostbyaddr(const void *addr, socklen_t len, int type);
|
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/ |
D | sk_assign.c | 61 start_server(const struct sockaddr *addr, socklen_t len, int type) in start_server() 85 connect_to_server(const struct sockaddr *addr, socklen_t len, int type) in connect_to_server() 110 socklen_t slen = sizeof(ss); in get_port() 134 socklen_t slen; in rcv_msg() 144 run_test(int server_fd, const struct sockaddr *addr, socklen_t len, int type) in run_test() 238 socklen_t len;
|
D | sockmap_listen.c | 214 static int accept_timeout(int fd, struct sockaddr *addr, socklen_t *len, in accept_timeout() 232 static void init_addr_loopback4(struct sockaddr_storage *ss, socklen_t *len) in init_addr_loopback4() 242 static void init_addr_loopback6(struct sockaddr_storage *ss, socklen_t *len) in init_addr_loopback6() 253 socklen_t *len) in init_addr_loopback() 290 socklen_t len; in socket_loopback_reuseport() 363 socklen_t len; in test_insert_bound() 446 socklen_t len; in test_lookup_after_insert() 555 socklen_t len; in test_destroy_orphan_child() 589 socklen_t len; in test_clone_after_delete() 627 socklen_t len; in test_accept_after_delete() [all …]
|
D | cls_redirect.c | 36 static int start_server(const struct sockaddr *addr, socklen_t len, int type) in start_server() 53 static int connect_to_server(const struct sockaddr *addr, socklen_t len, in connect_to_server() 92 static bool set_up_conn(const struct sockaddr *addr, socklen_t len, int type, in set_up_conn() 96 socklen_t slen = sizeof(ss); in set_up_conn() 139 static socklen_t prepare_addr(struct sockaddr_storage *addr, int family) in prepare_addr() 373 socklen_t slen; in test_cls_redirect_common()
|
D | sockopt_inherit.c | 13 socklen_t len = sizeof(addr); in connect_to_server() 41 socklen_t optlen = 1; in verify_sockopt() 68 socklen_t len = sizeof(addr); in server_thread()
|
/kernel/uniproton/src/net/lwip-2.1/src/ |
D | sockets.c | 33 int accept(int s, struct sockaddr *addr, socklen_t *addrlen) in accept() 38 int bind(int s, const struct sockaddr *name, socklen_t namelen) in bind() 53 int getpeername(int s, struct sockaddr *name, socklen_t *namelen) in getpeername() 60 int getsockname(int s, struct sockaddr *name, socklen_t *namelen) in getsockname() 67 int getsockopt(int s, int level, int optname, void *optval, socklen_t *optlen) in getsockopt() 73 int setsockopt(int s, int level, int optname, const void *optval, socklen_t optlen) in setsockopt() 84 int connect(int s, const struct sockaddr *name, socklen_t namelen) in connect() 110 struct sockaddr *from, socklen_t *fromlen) in recvfrom() 138 const struct sockaddr *to, socklen_t tolen) in sendto() 153 const char *inet_ntop(int af, const void *src, char *dst, socklen_t size) in inet_ntop()
|
/kernel/liteos_m/components/net/lwip-2.1/porting/src/ |
D | sockets_porting.c | 44 int accept(int s, struct sockaddr *addr, socklen_t *addrlen) in accept() 49 int bind(int s, const struct sockaddr *name, socklen_t namelen) in bind() 64 int getpeername(int s, struct sockaddr *name, socklen_t *namelen) in getpeername() 71 int getsockname(int s, struct sockaddr *name, socklen_t *namelen) in getsockname() 78 int getsockopt(int s, int level, int optname, void *optval, socklen_t *optlen) in getsockopt() 83 int setsockopt(int s, int level, int optname, const void *optval, socklen_t optlen) in setsockopt() 93 int connect(int s, const struct sockaddr *name, socklen_t namelen) in connect() 115 struct sockaddr *from, socklen_t *fromlen) in recvfrom() 142 const struct sockaddr *to, socklen_t tolen) in sendto() 157 const char *inet_ntop(int af, const void *src, char *dst, socklen_t size) in inet_ntop()
|
/kernel/linux/linux-5.10/tools/testing/selftests/net/mptcp/ |
D | mptcp_connect.c | 89 static void xgetnameinfo(const struct sockaddr *addr, socklen_t addrlen, in xgetnameinfo() 90 char *host, socklen_t hostlen, in xgetnameinfo() 91 char *serv, socklen_t servlen) in xgetnameinfo() 607 socklen_t salen) in check_sockaddr() 611 socklen_t wanted_size = 0; in check_sockaddr() 640 static void check_getpeername(int fd, struct sockaddr_storage *ss, socklen_t salen) in check_getpeername() 643 socklen_t peersalen = sizeof(peerss); in check_getpeername() 675 socklen_t salen = sizeof(ss); in check_getpeername_connect() 704 socklen_t salen; in main_loop_s()
|
/kernel/linux/linux-5.10/tools/testing/selftests/net/ |
D | fin_ack_lat.c | 32 socklen_t len = sizeof(laddr); in client() 94 (socklen_t *)&addrlen); in server() 116 socklen_t len = sizeof(laddr); in main()
|
D | so_txtime.c | 218 socklen_t vallen = sizeof(so_txtime_val); in setsockopt_txtime() 235 static int setup_tx(struct sockaddr *addr, socklen_t alen) in setup_tx() 251 static int setup_rx(struct sockaddr *addr, socklen_t alen) in setup_rx() 269 static void do_test(struct sockaddr *addr, socklen_t alen) in do_test()
|
D | nettest.c | 210 static int tcp_md5sig(int sd, void *addr, socklen_t alen, struct sock_args *args) in tcp_md5sig() 325 socklen_t optlen = len; in get_bind_to_device() 568 socklen_t alen = sizeof(local_addr); in show_sockstat() 636 static int send_msg_no_cmsg(int sd, void *addr, socklen_t alen) in send_msg_no_cmsg() 657 static int send_msg_cmsg(int sd, void *addr, socklen_t alen, in send_msg_cmsg() 719 static int send_msg(int sd, void *addr, socklen_t alen, struct sock_args *args) in send_msg() 744 socklen_t alen = sizeof(addr); in socket_read_dgram() 893 static int stdin_to_socket(int sd, int type, void *addr, socklen_t alen) in stdin_to_socket() 940 static int msg_loop(int client, int sd, void *addr, socklen_t alen, in msg_loop() 1099 socklen_t alen; in bind_socket() [all …]
|
/kernel/liteos_m/components/net/test/ |
D | net_socket_test_007.c | 56 socklen_t clnAddrLen = sizeof(clnAddr); in UdpTestMoreTask() 85 … ret = sendto(sfd, g_buf, BUF_SIZE, 0, (struct sockaddr*)&clnAddr, (socklen_t)sizeof(clnAddr)); in UdpTestMoreTask()
|
D | net_socket_test_002.c | 50 socklen_t clnAddrLen = sizeof(clnAddr); in UdpTestTask() 73 (socklen_t)sizeof(clnAddr)); in UdpTestTask()
|
/kernel/linux/linux-5.10/samples/bpf/ |
D | test_cgrp2_sock.c | 128 socklen_t optlen = len; in get_bind_to_device() 142 socklen_t optlen = sizeof(mark); in get_somark() 155 socklen_t optlen = sizeof(prio); in get_priority()
|
/kernel/liteos_a/net/lwip-2.1/porting/src/ |
D | sockets.c | 75 static int lwip_setsockopt_wrap(int s, int level, int optname, const void *optval, socklen_t optlen… 76 int lwip_setsockopt(int s, int level, int optname, const void *optval, socklen_t optlen) in lwip_setsockopt() 81 static int lwip_bind_wrap(int s, const struct sockaddr *name, socklen_t namelen); 82 int lwip_bind(int s, const struct sockaddr *name, socklen_t namelen) in lwip_bind() 88 const struct sockaddr *to, socklen_t tolen); 89 …dto(int s, const void *dataptr, size_t size, int flags, const struct sockaddr *to, socklen_t tolen) in lwip_sendto() 104 static int lwip_setsockopt2(int s, int level, int optname, const void *optval, socklen_t optlen); 110 static int lwip_bind2(int s, const struct sockaddr *name, socklen_t namelen); 116 …o2(int s, const void *dataptr, size_t size, int flags, const struct sockaddr *to, socklen_t tolen); 140 static int lwip_setsockopt_wrap(int s, int level, int optname, const void *optval, socklen_t optlen) in lwip_setsockopt_wrap() [all …]
|
/kernel/linux/common_modules/newip/examples/ |
D | nip_udp_client_demo.c | 30 socklen_t slen = sizeof(struct sockaddr_nin); in _sendto() 53 socklen_t slen = sizeof(struct sockaddr_nin); in _recvfrom()
|