Searched refs:cmsghdr (Results 1 - 25 of 56) sorted by relevance
123
/linux-master/include/linux/ |
H A D | socket.h | 101 * (cmsghdr, cmsg_data[]) 104 struct cmsghdr { struct 121 ((void *)(cmsg) + sizeof(struct cmsghdr)) 123 ((void __user *)(cmsg) + sizeof(struct cmsghdr)) 124 #define CMSG_SPACE(len) (sizeof(struct cmsghdr) + CMSG_ALIGN(len)) 125 #define CMSG_LEN(len) (sizeof(struct cmsghdr) + (len)) 127 #define __CMSG_FIRSTHDR(ctl,len) ((len) >= sizeof(struct cmsghdr) ? \ 128 (struct cmsghdr *)(ctl) : \ 129 (struct cmsghdr *)NULL) 131 #define CMSG_OK(mhdr, cmsg) ((cmsg)->cmsg_len >= sizeof(struct cmsghdr) [all...] |
/linux-master/tools/perf/trace/beauty/include/linux/ |
H A D | socket.h | 101 * (cmsghdr, cmsg_data[]) 104 struct cmsghdr { struct 121 ((void *)(cmsg) + sizeof(struct cmsghdr)) 123 ((void __user *)(cmsg) + sizeof(struct cmsghdr)) 124 #define CMSG_SPACE(len) (sizeof(struct cmsghdr) + CMSG_ALIGN(len)) 125 #define CMSG_LEN(len) (sizeof(struct cmsghdr) + (len)) 127 #define __CMSG_FIRSTHDR(ctl,len) ((len) >= sizeof(struct cmsghdr) ? \ 128 (struct cmsghdr *)(ctl) : \ 129 (struct cmsghdr *)NULL) 131 #define CMSG_OK(mhdr, cmsg) ((cmsg)->cmsg_len >= sizeof(struct cmsghdr) [all...] |
/linux-master/include/net/ |
H A D | handshake.h | 45 u8 tls_get_record_type(const struct sock *sk, const struct cmsghdr *msg);
|
H A D | scm.h | 137 len = sizeof(struct cmsghdr) + sizeof(int);
|
/linux-master/net/core/ |
H A D | scm.c | 67 static int scm_fp_copy(struct cmsghdr *cmsg, struct scm_fp_list **fplp) 74 num = (cmsg->cmsg_len - sizeof(struct cmsghdr))/sizeof(int); 145 struct cmsghdr *cmsg; 151 /* Verify that cmsg_len is at least sizeof(struct cmsghdr) */ 232 if (!msg->msg_control || msg->msg_controllen < sizeof(struct cmsghdr)) { 242 struct cmsghdr __user *cm = msg->msg_control_user; 256 struct cmsghdr *cm = msg->msg_control; 309 if (msg->msg_controllen <= sizeof(struct cmsghdr)) 311 return (msg->msg_controllen - sizeof(struct cmsghdr)) / sizeof(int); 316 struct cmsghdr __use [all...] |
/linux-master/net/handshake/ |
H A D | alert.c | 39 struct cmsghdr *cmsg; 74 u8 tls_get_record_type(const struct sock *sk, const struct cmsghdr *cmsg)
|
/linux-master/tools/testing/vsock/ |
H A D | msg_zerocopy_common.c | 32 struct cmsghdr *cm;
|
/linux-master/tools/testing/selftests/landlock/ |
H A D | common.h | 161 struct cmsghdr _align; 174 struct cmsghdr *cmsg; 195 struct cmsghdr _align; 208 struct cmsghdr *cmsg = CMSG_FIRSTHDR(&msg);
|
/linux-master/tools/testing/selftests/net/ |
H A D | cmsg_sender.c | 228 struct cmsghdr *cmsg; 233 cmsg = (struct cmsghdr *)(cbuf + *cmsg_len); 247 struct cmsghdr *cmsg; 276 cmsg = (struct cmsghdr *)(cbuf + cmsg_len); 294 cmsg = (struct cmsghdr *)(cbuf + cmsg_len); 306 cmsg = (struct cmsghdr *)(cbuf + cmsg_len); 341 struct cmsghdr *cmsg;
|
H A D | udpgso_bench_tx.c | 139 static void flush_cmsg(struct cmsghdr *cmsg) 216 struct cmsghdr *cmsg; 314 static void send_ts_cmsg(struct cmsghdr *cm) 339 struct cmsghdr *cmsg; 378 static void send_udp_segment_cmsg(struct cmsghdr *cm) 396 struct cmsghdr *cmsg;
|
H A D | ipv6_flowlabel.c | 75 struct cmsghdr *cm; 103 struct cmsghdr *cm;
|
H A D | tcp_inq.c | 103 struct cmsghdr *cm;
|
H A D | msg_zerocopy.c | 172 struct cmsghdr *cm; 199 msg->msg_control = (struct cmsghdr *)ckbuf; 363 struct cmsghdr *cmsg; 396 struct cmsghdr *cm;
|
H A D | so_txtime.c | 78 struct cmsghdr *cm; 164 struct cmsghdr *cm;
|
H A D | nettest.c | 908 struct cmsghdr *cm; 912 for (cm = (struct cmsghdr *)CMSG_FIRSTHDR(m); 914 cm = (struct cmsghdr *)CMSG_NXTHDR(m, cm)) { 966 struct cmsghdr *cm; 978 cm = (struct cmsghdr *)cmsgbuf; 1062 struct cmsghdr *cm = (struct cmsghdr *)cmsgbuf;
|
H A D | timestamping.c | 159 struct cmsghdr *cmsg; 285 struct cmsghdr cm;
|
/linux-master/net/ |
H A D | compat.c | 143 struct cmsghdr *kcmsg, *kcmsg_base; 152 kcmsg_base = kcmsg = (struct cmsghdr *)stackbuf; 162 tmp = ((ucmlen - sizeof(*ucmsg)) + sizeof(struct cmsghdr)); 189 tmp = ((cmsg.cmsg_len - sizeof(*ucmsg)) + sizeof(struct cmsghdr)); 202 kcmsg = (struct cmsghdr *)((char *)kcmsg + tmp); 222 if (kcmsg_base != (struct cmsghdr *)stackbuf)
|
/linux-master/samples/seccomp/ |
H A D | user-trap.c | 35 struct cmsghdr *cmsg; 66 struct cmsghdr *cmsg;
|
/linux-master/tools/testing/selftests/bpf/prog_tests/ |
H A D | lwt_reroute.c | 101 struct cmsghdr *cmsg = CMSG_FIRSTHDR(&msg);
|
H A D | token.c | 150 struct cmsghdr *cmsg; 159 struct cmsghdr align; 185 struct cmsghdr *cmsg; 194 struct cmsghdr align;
|
/linux-master/net/sunrpc/ |
H A D | svcsock.c | 156 static void svc_set_cmsg_data(struct svc_rqst *rqstp, struct cmsghdr *cmh) 232 struct cmsghdr *cmsg, int ret) 263 struct cmsghdr cmsg; 501 struct cmsghdr *cmh) 518 struct cmsghdr *cmh) 540 struct cmsghdr *cmh) 569 struct cmsghdr hdr; 572 struct cmsghdr *cmh = &buffer.hdr; 692 struct cmsghdr hdr; 695 struct cmsghdr *cm [all...] |
/linux-master/arch/um/os-Linux/ |
H A D | file.c | 510 struct cmsghdr *cmsg; 655 struct cmsghdr align; 664 struct cmsghdr *cmsg = CMSG_FIRSTHDR(&msg);
|
/linux-master/net/rds/ |
H A D | rds.h | 933 struct cmsghdr *cmsg); 935 struct cmsghdr *cmsg, 938 struct cmsghdr *cmsg); 944 struct cmsghdr *cmsg);
|
H A D | rdma.c | 612 struct cmsghdr *cmsg, 812 struct cmsghdr *cmsg) 855 struct cmsghdr *cmsg) 869 struct cmsghdr *cmsg)
|
/linux-master/arch/um/os-Linux/drivers/ |
H A D | tuntap_user.c | 71 struct cmsghdr *cmsg;
|
Completed in 261 milliseconds
123