Home
last modified time | relevance | path

Searched refs:sockaddr (Results 1 – 25 of 657) sorted by relevance

12345678910>>...27

/kernel/linux/linux-5.10/include/linux/sunrpc/
Daddr.h16 size_t rpc_ntop(const struct sockaddr *, char *, const size_t);
18 struct sockaddr *, const size_t);
19 char * rpc_sockaddr2uaddr(const struct sockaddr *, gfp_t);
21 struct sockaddr *, const size_t);
23 static inline unsigned short rpc_get_port(const struct sockaddr *sap) in rpc_get_port()
34 static inline void rpc_set_port(struct sockaddr *sap, in rpc_set_port()
50 static inline bool rpc_cmp_addr4(const struct sockaddr *sap1, in rpc_cmp_addr4()
51 const struct sockaddr *sap2) in rpc_cmp_addr4()
59 static inline bool __rpc_copy_addr4(struct sockaddr *dst, in __rpc_copy_addr4()
60 const struct sockaddr *src) in __rpc_copy_addr4()
[all …]
Dsvc_xprt.h18 struct sockaddr *, int,
138 int svc_port_is_privileged(struct sockaddr *sin);
145 void svc_age_temp_xprts_now(struct svc_serv *, struct sockaddr *);
152 const struct sockaddr *sa, in svc_xprt_set_local()
159 const struct sockaddr *sa, in svc_xprt_set_remote()
168 static inline unsigned short svc_addr_port(const struct sockaddr *sa) in svc_addr_port()
183 static inline size_t svc_addr_len(const struct sockaddr *sa) in svc_addr_len()
196 return svc_addr_port((const struct sockaddr *)&xprt->xpt_local); in svc_xprt_local_port()
201 return svc_addr_port((const struct sockaddr *)&xprt->xpt_remote); in svc_xprt_remote_port()
204 static inline char *__svc_print_addr(const struct sockaddr *addr, in __svc_print_addr()
/kernel/liteos_a/testsuites/unittest/net/socket/smoke/
Dnet_socket_test_007.cpp48 …ret = bind(lsfd, reinterpret_cast<const struct sockaddr *>(INVALID_USER_ADDR), sizeof(struct socka… in TcpTest()
51 …ret = bind(lsfd, reinterpret_cast<const struct sockaddr *>(INVALID_KERNEL_ADDR), sizeof(struct soc… in TcpTest()
54 …ret = connect(lsfd, reinterpret_cast<struct sockaddr *>(INVALID_USER_ADDR), sizeof(struct sockaddr… in TcpTest()
57 …ret = connect(lsfd, reinterpret_cast<struct sockaddr *>(INVALID_KERNEL_ADDR), sizeof(struct sockad… in TcpTest()
60 ret = accept(lsfd, reinterpret_cast<struct sockaddr *>(INVALID_USER_ADDR), in TcpTest()
64 ret = accept(lsfd, reinterpret_cast<struct sockaddr *>(INVALID_KERNEL_ADDR), in TcpTest()
68 ret = getsockname(lsfd, reinterpret_cast<struct sockaddr *>(INVALID_USER_ADDR), in TcpTest()
72 ret = getsockname(lsfd, reinterpret_cast<struct sockaddr *>(INVALID_KERNEL_ADDR), in TcpTest()
76 ret = getpeername(lsfd, reinterpret_cast<struct sockaddr *>(INVALID_USER_ADDR), in TcpTest()
80 ret = getpeername(lsfd, reinterpret_cast<struct sockaddr *>(INVALID_KERNEL_ADDR), in TcpTest()
[all …]
/kernel/linux/linux-5.10/drivers/infiniband/core/
Daddr.c62 void (*callback)(int status, struct sockaddr *src_addr,
196 int rdma_addr_size(const struct sockaddr *addr) in rdma_addr_size()
213 int ret = rdma_addr_size((struct sockaddr *) addr); in rdma_addr_size_in6()
221 int ret = rdma_addr_size((struct sockaddr *) addr); in rdma_addr_size_kss()
247 rdma_find_ndev_for_src_ip_rcu(struct net *net, const struct sockaddr *src_in) in rdma_find_ndev_for_src_ip_rcu()
276 int rdma_translate_ip(const struct sockaddr *addr, in rdma_translate_ip()
365 const struct sockaddr *dst_in, u32 seq) in fetch_ha()
385 static int addr4_resolve(struct sockaddr *src_sock, in addr4_resolve()
386 const struct sockaddr *dst_sock, in addr4_resolve()
418 static int addr6_resolve(struct sockaddr *src_sock, in addr6_resolve()
[all …]
/kernel/liteos_a/testsuites/unittest/container/smoke/
DIt_net_container_005.cpp72 ret = bind(peer, const_cast<struct sockaddr *>(reinterpret_cast<struct sockaddr *>(&peer_addr)), in UdpClient()
73 sizeof(struct sockaddr)); in UdpClient()
84 … const_cast<struct sockaddr *>(reinterpret_cast<struct sockaddr *>(&server_addr)), in UdpClient()
126 socklen_t peer_addr_len = sizeof(struct sockaddr); in UdpServer()
138 …ret = bind(server, const_cast<struct sockaddr *>(reinterpret_cast<struct sockaddr *>(&server_addr)… in UdpServer()
139 sizeof(struct sockaddr)); in UdpServer()
144 …ret = recvfrom(server, recv_data, DATA_LEN, 0, reinterpret_cast<struct sockaddr *>(&peer_addr), &p… in UdpServer()
150 … const_cast<struct sockaddr *>(reinterpret_cast<struct sockaddr *>(&peer_addr)), peer_addr_len); in UdpServer()
DIt_net_container_007.cpp57 ret = bind(sock, const_cast<struct sockaddr *>(reinterpret_cast<struct sockaddr *>(&addr)), in ChildFunc()
58 sizeof(struct sockaddr)); in ChildFunc()
63 …et = sendto(sock, MSG, DATA_LEN, 0, const_cast<struct sockaddr *>(reinterpret_cast<struct sockaddr in ChildFunc()
/kernel/liteos_m/kal/libc/newlib/porting/include/net/
Dif_arp.h72 struct sockaddr arp_pa;
73 struct sockaddr arp_ha;
75 struct sockaddr arp_netmask;
80 struct sockaddr arp_pa;
81 struct sockaddr arp_ha;
83 struct sockaddr arp_netmask;
Dif.h70 struct sockaddr ifa_addr;
72 struct sockaddr ifu_broadaddr;
73 struct sockaddr ifu_dstaddr;
99 struct sockaddr ifru_addr;
100 struct sockaddr ifru_dstaddr;
101 struct sockaddr ifru_broadaddr;
102 struct sockaddr ifru_netmask;
103 struct sockaddr ifru_hwaddr;
/kernel/linux/linux-5.10/net/atm/
Dpvc.c27 static int pvc_bind(struct socket *sock, struct sockaddr *sockaddr, in pvc_bind() argument
37 addr = (struct sockaddr_atmpvc *)sockaddr; in pvc_bind()
59 static int pvc_connect(struct socket *sock, struct sockaddr *sockaddr, in pvc_connect() argument
62 return pvc_bind(sock, sockaddr, sockaddr_len); in pvc_connect()
89 static int pvc_getname(struct socket *sock, struct sockaddr *sockaddr, in pvc_getname() argument
97 addr = (struct sockaddr_atmpvc *)sockaddr; in pvc_getname()
/kernel/linux/linux-5.10/include/net/
Dinet_common.h16 struct sockaddr;
20 int inet_stream_connect(struct socket *sock, struct sockaddr *uaddr,
22 int __inet_stream_connect(struct socket *sock, struct sockaddr *uaddr,
24 int inet_dgram_connect(struct socket *sock, struct sockaddr *uaddr,
37 int inet_bind(struct socket *sock, struct sockaddr *uaddr, int addr_len);
44 int __inet_bind(struct sock *sk, struct sockaddr *uaddr, int addr_len,
46 int inet_getname(struct socket *sock, struct sockaddr *uaddr,
Dcompat.h35 struct sockaddr rt_dst; /* target address */
36 struct sockaddr rt_gateway; /* gateway addr (RTF_GATEWAY) */
37 struct sockaddr rt_genmask; /* target network mask (IP) */
60 struct sockaddr __user **save_addr, compat_uptr_t *ptr,
63 struct sockaddr __user **, struct iovec **);
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/linux/
Dif_arp.h97 struct sockaddr arp_pa;
98 struct sockaddr arp_ha;
100 struct sockaddr arp_netmask;
104 struct sockaddr arp_pa;
105 struct sockaddr arp_ha;
107 struct sockaddr arp_netmask;
Dwireless.h294 struct sockaddr addr;
304 struct sockaddr bssid;
314 struct sockaddr addr;
322 struct sockaddr addr;
330 struct sockaddr bssid;
335 struct sockaddr src_addr;
342 struct sockaddr bssid;
365 struct sockaddr ap_addr;
366 struct sockaddr addr;
437 #define IW_EV_ADDR_LEN (IW_EV_LCP_LEN + sizeof(struct sockaddr))
[all …]
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/linux/
Dif_arp.h85 struct sockaddr arp_pa;
86 struct sockaddr arp_ha;
88 struct sockaddr arp_netmask;
92 struct sockaddr arp_pa;
93 struct sockaddr arp_ha;
95 struct sockaddr arp_netmask;
Dwireless.h286 struct sockaddr addr;
296 struct sockaddr bssid;
308 struct sockaddr addr;
316 struct sockaddr addr;
324 struct sockaddr bssid;
329 struct sockaddr src_addr;
336 struct sockaddr bssid;
361 struct sockaddr ap_addr;
362 struct sockaddr addr;
456 #define IW_EV_ADDR_LEN (IW_EV_LCP_LEN + sizeof(struct sockaddr))
[all …]
/kernel/linux/linux-5.10/include/uapi/linux/
Dif_arp.h117 struct sockaddr arp_pa; /* protocol address */
118 struct sockaddr arp_ha; /* hardware address */
120 struct sockaddr arp_netmask; /* netmask (only for proxy arps) */
125 struct sockaddr arp_pa; /* protocol address */
126 struct sockaddr arp_ha; /* hardware address */
128 struct sockaddr arp_netmask; /* netmask (only for proxy arps) */
/kernel/linux/linux-5.10/include/linux/lockd/
Dlockd.h105 static inline struct sockaddr *nlm_addr(const struct nlm_host *host) in nlm_addr()
107 return (struct sockaddr *)&host->h_addr; in nlm_addr()
115 static inline struct sockaddr *nlm_srcaddr(const struct nlm_host *host) in nlm_srcaddr()
117 return (struct sockaddr *)&host->h_srcaddr; in nlm_srcaddr()
215 __be32 nlmclnt_grant(const struct sockaddr *addr,
225 struct nlm_host *nlmclnt_lookup_host(const struct sockaddr *sap,
253 const struct sockaddr *sap,
300 int nlmsvc_unlock_all_by_ip(struct sockaddr *server_addr);
307 static inline int __nlm_privileged_request4(const struct sockaddr *sap) in __nlm_privileged_request4()
318 static inline int __nlm_privileged_request6(const struct sockaddr *sap) in __nlm_privileged_request6()
[all …]
/kernel/linux/linux-5.10/net/sunrpc/
Daddr.c28 static size_t rpc_ntop6_noscopeid(const struct sockaddr *sap, in rpc_ntop6_noscopeid()
66 static size_t rpc_ntop6(const struct sockaddr *sap, in rpc_ntop6()
98 static size_t rpc_ntop6_noscopeid(const struct sockaddr *sap, in rpc_ntop6_noscopeid()
104 static size_t rpc_ntop6(const struct sockaddr *sap, in rpc_ntop6()
112 static int rpc_ntop4(const struct sockaddr *sap, in rpc_ntop4()
129 size_t rpc_ntop(const struct sockaddr *sap, char *buf, const size_t buflen) in rpc_ntop()
143 struct sockaddr *sap, const size_t salen) in rpc_pton4()
200 struct sockaddr *sap, const size_t salen) in rpc_pton6()
223 struct sockaddr *sap, const size_t salen) in rpc_pton6()
245 struct sockaddr *sap, const size_t salen) in rpc_pton()
[all …]
/kernel/liteos_m/kal/libc/newlib/porting/include/sys/
Dsocket.h222 struct sockaddr { struct
238 int bind(int, const struct sockaddr *, socklen_t); argument
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);
249 ssize_t sendto(int, const void *, size_t, int, const struct sockaddr *, socklen_t);
250 ssize_t recvfrom(int, void *__restrict, size_t, int, struct sockaddr *__restrict, socklen_t *__rest…
/kernel/liteos_m/kal/libc/newlib/porting/include/
Difaddrs.h46 struct sockaddr *ifa_addr;
47 struct sockaddr *ifa_netmask;
49 struct sockaddr *ifu_broadaddr;
50 struct sockaddr *ifu_dstaddr;
/kernel/linux/linux-5.10/include/linux/
Dsocket.h32 struct sockaddr { struct
400 struct sockaddr __user *uaddr,
407 struct sockaddr __user **uaddr,
411 struct sockaddr __user **save_addr,
416 unsigned int flags, struct sockaddr __user *addr,
419 unsigned int flags, struct sockaddr __user *addr,
422 struct sockaddr __user *upeer_sockaddr,
426 struct sockaddr __user *upeer_sockaddr,
428 extern int __sys_accept4(int fd, struct sockaddr __user *upeer_sockaddr,
431 extern int __sys_bind(int fd, struct sockaddr __user *umyaddr, int addrlen);
[all …]
/kernel/linux/linux-5.10/tools/perf/trace/beauty/
Dsockaddr.c13 static size_t af_inet__scnprintf(struct sockaddr *sa, char *bf, size_t size) in af_inet__scnprintf()
21 static size_t af_inet6__scnprintf(struct sockaddr *sa, char *bf, size_t size) in af_inet6__scnprintf()
36 static size_t af_local__scnprintf(struct sockaddr *sa, char *bf, size_t size) in af_local__scnprintf()
42 static size_t (*af_scnprintfs[])(struct sockaddr *sa, char *bf, size_t size) = {
50 struct sockaddr *sa = (struct sockaddr *)arg->augmented.args; in syscall_arg__scnprintf_augmented_sockaddr()
/kernel/linux/linux-5.10/tools/perf/trace/beauty/include/linux/
Dsocket.h32 struct sockaddr { struct
399 struct sockaddr __user *uaddr,
406 struct sockaddr __user **uaddr,
410 struct sockaddr __user **save_addr,
415 unsigned int flags, struct sockaddr __user *addr,
418 unsigned int flags, struct sockaddr __user *addr,
421 struct sockaddr __user *upeer_sockaddr,
424 extern int __sys_accept4(int fd, struct sockaddr __user *upeer_sockaddr,
427 extern int __sys_bind(int fd, struct sockaddr __user *umyaddr, int addrlen);
430 extern int __sys_connect(int fd, struct sockaddr __user *uservaddr,
[all …]
/kernel/liteos_a/compat/posix/src/
Dsocket.c43 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()
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()
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/
Dsk_assign.c77 start_server(const struct sockaddr *addr, socklen_t len, int type) in start_server()
101 connect_to_server(const struct sockaddr *addr, socklen_t len, int type) in connect_to_server()
129 if (CHECK_FAIL(getsockname(fd, (struct sockaddr *)&ss, &slen))) in get_port()
157 run_test(int server_fd, const struct sockaddr *addr, socklen_t len, int type) in run_test()
217 prepare_addr(struct sockaddr *addr, int family, __u16 port, bool rewrite_addr) in prepare_addr()
250 struct sockaddr *addr;
260 .addr = (FAMILY == AF_INET) ? (struct sockaddr *)&addr4 \
261 : (struct sockaddr *)&addr6, \
305 const struct sockaddr *addr; in test_sk_assign()
312 addr = (const struct sockaddr *)test->addr; in test_sk_assign()

12345678910>>...27