/netbsd/sys/netinet6/ |
H A D | in6.h | 544 struct cmsghdr; 672 struct cmsghdr; 687 extern int inet6_option_init(void *, struct cmsghdr **, int); 688 extern int inet6_option_append(struct cmsghdr *, const uint8_t *, 691 extern int inet6_option_next(const struct cmsghdr *, uint8_t **); 695 extern struct cmsghdr *inet6_rthdr_init(void *, int); 698 extern int inet6_rthdr_lasthop(struct cmsghdr *, unsigned int); 700 extern int inet6_rthdr_reverse(const struct cmsghdr *, struct cmsghdr *); 702 extern int inet6_rthdr_segments(const struct cmsghdr *); 703 extern struct in6_addr *inet6_rthdr_getaddr(struct cmsghdr *, int); [all …]
|
/netbsd/lib/libc/net/ |
H A D | rthdr.c | 83 struct cmsghdr * 86 struct cmsghdr *ch; in inet6_rthdr_init() 91 ch = (struct cmsghdr *)bp; in inet6_rthdr_init() 114 inet6_rthdr_add(struct cmsghdr *cmsg, const struct in6_addr *addr, u_int flags) in inet6_rthdr_add() 151 inet6_rthdr_lasthop(struct cmsghdr *cmsg, unsigned int flags) in inet6_rthdr_lasthop() 178 inet6_rthdr_reverse(const struct cmsghdr *in, struct cmsghdr *out) 186 inet6_rthdr_segments(const struct cmsghdr *cmsg) in inet6_rthdr_segments() 215 inet6_rthdr_getaddr(struct cmsghdr *cmsg, int idx) in inet6_rthdr_getaddr() 250 inet6_rthdr_getflags(const struct cmsghdr *cmsg, int idx) in inet6_rthdr_getflags()
|
H A D | sctp_sys_calls.c | 383 struct cmsghdr *cmsg; in sctp_sendmsg() 436 cmsg = (struct cmsghdr *)controlVector; in sctp_sendmsg() 485 struct cmsghdr *cmsg; in sctp_send() 498 cmsg = (struct cmsghdr *)controlVector; in sctp_send() 608 struct cmsghdr *cmsg; in sctp_recvmsg() 630 cmsg = (struct cmsghdr *)controlVector; in sctp_recvmsg() 660 struct cmsghdr *cmsg; in sctp_recvv() 753 struct cmsghdr *cmsg; in sctp_sendv() 781 cmsg = (struct cmsghdr *)cmsgbuf; in sctp_sendv() 815 cmsg = (struct cmsghdr *)((caddr_t)cmsg + CMSG_SPACE(sizeof(struct sctp_prinfo))); in sctp_sendv() [all …]
|
H A D | ip6opt.c | 94 inet6_option_init(void *bp, struct cmsghdr **cmsgp, int type) in inet6_option_init() 96 register struct cmsghdr *ch; in inet6_option_init() 101 ch = (struct cmsghdr *)bp; in inet6_option_init() 126 inet6_option_append(struct cmsghdr *cmsg, const uint8_t *typep, int multx, in inet6_option_append() 207 inet6_option_alloc(struct cmsghdr *cmsg, int datalen, int multx, int plusy) in inet6_option_alloc() 278 inet6_option_next(const struct cmsghdr *cmsg, uint8_t **tptrp) in inet6_option_next() 337 inet6_option_find(const struct cmsghdr *cmsg, uint8_t **tptrp, int type) in inet6_option_find()
|
/netbsd/external/bsd/openldap/dist/libraries/liblutil/ |
H A D | getpeereid.c | 104 # define CMSG_SPACE(len) (_CMSG_ALIGN(sizeof(struct cmsghdr)) + _CMSG_ALIGN(len)) in lutil_getpeereid() 107 # define CMSG_LEN(len) (_CMSG_ALIGN(sizeof(struct cmsghdr)) + (len)) in lutil_getpeereid() 110 struct cmsghdr cm; in lutil_getpeereid() 113 struct cmsghdr *cmsg; in lutil_getpeereid() 132 msg.msg_controllen = sizeof( struct cmsghdr ) + sizeof( int ); /* no padding! */ in lutil_getpeereid() 181 struct cmsghdr *cmp; in lutil_getpeereid()
|
/netbsd/crypto/external/bsd/openssh/dist/ |
H A D | monitor_fdpass.c | 48 struct cmsghdr hdr; in mm_send_fd() 51 struct cmsghdr *cmsg; in mm_send_fd() 103 struct cmsghdr hdr; in mm_receive_fd() 106 struct cmsghdr *cmsg; in mm_receive_fd()
|
/netbsd/external/bsd/tmux/dist/ |
H A D | compat.h | 184 ((mhdr)->msg_controllen >= sizeof(struct cmsghdr) ? \ 185 (struct cmsghdr *)(mhdr)->msg_control : \ 186 (struct cmsghdr *)NULL) 198 #define CMSG_SPACE(len) (CMSG_ALIGN(sizeof(struct cmsghdr)) + CMSG_ALIGN(len)) 202 #define CMSG_LEN(len) (CMSG_ALIGN(sizeof(struct cmsghdr)) + (len))
|
/netbsd/crypto/external/bsd/openssl/dist/include/internal/ |
H A D | ktls.h | 90 struct cmsghdr *cmsg; in ktls_send_ctrl_message() 132 struct cmsghdr *cmsg; in ktls_read_record() 303 struct cmsghdr *cmsg; in ktls_send_ctrl_message() 305 struct cmsghdr hdr; in ktls_send_ctrl_message() 356 struct cmsghdr *cmsg; in ktls_read_record() 358 struct cmsghdr hdr; in ktls_read_record()
|
/netbsd/sys/external/bsd/libnv/dist/ |
H A D | msgio.c | 76 msghdr_add_fd(struct cmsghdr *cmsg, int fd) in msghdr_add_fd() 95 msghdr_get_fd(struct cmsghdr *cmsg) in msghdr_get_fd() 183 struct cmsghdr *cmsg; in cred_send() 223 struct cmsghdr *cmsg; in cred_recv() 259 struct cmsghdr *cmsg; in fd_package_send() 308 struct cmsghdr *cmsg; in fd_package_recv()
|
/netbsd/tests/net/fdpass/ |
H A D | fdpass.c | 51 struct cmsghdr hdr; in send_fd() 54 struct cmsghdr *cmsg; in send_fd() 103 struct cmsghdr hdr; in recv_fd() 106 struct cmsghdr *cmsg; in recv_fd()
|
/netbsd/sys/compat/netbsd32/ |
H A D | netbsd32_socket.c | 56 #define CMSG32_ASIZE CMSG32_ALIGN(sizeof(struct cmsghdr)) 64 __CASTV(struct cmsghdr *, \ 69 __CASTV(struct cmsghdr *, \ 70 (mhdr)->msg_controllen < sizeof(struct cmsghdr) ? 0 : \ 73 #define CMSG32_SPACE(l) (CMSG32_ALIGN(sizeof(struct cmsghdr)) + CMSG32_ALIGN(l)) 74 #define CMSG32_LEN(l) (CMSG32_ALIGN(sizeof(struct cmsghdr)) + (l)) 80 struct cmsghdr *cmsg, cmsg32; in copyout32_msg_control_mbuf() 85 cmsg = mtod(m, struct cmsghdr *); in copyout32_msg_control_mbuf() 385 struct cmsghdr *cmsg, cmsg32, *cc; in copyin32_msg_control()
|
/netbsd/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/ |
H A D | sanitizer_platform_limits_openbsd.cc | 183 CHECK_TYPE_SIZE(cmsghdr); 184 CHECK_SIZE_AND_OFFSET(cmsghdr, cmsg_len); 185 CHECK_SIZE_AND_OFFSET(cmsghdr, cmsg_level); 186 CHECK_SIZE_AND_OFFSET(cmsghdr, cmsg_type);
|
H A D | sanitizer_platform_limits_solaris.cc | 238 CHECK_TYPE_SIZE(cmsghdr); 239 CHECK_SIZE_AND_OFFSET(cmsghdr, cmsg_len); 240 CHECK_SIZE_AND_OFFSET(cmsghdr, cmsg_level); 241 CHECK_SIZE_AND_OFFSET(cmsghdr, cmsg_type);
|
/netbsd/sys/external/bsd/compiler_rt/dist/lib/sanitizer_common/ |
H A D | sanitizer_platform_limits_openbsd.cc | 185 CHECK_TYPE_SIZE(cmsghdr); 186 CHECK_SIZE_AND_OFFSET(cmsghdr, cmsg_len); 187 CHECK_SIZE_AND_OFFSET(cmsghdr, cmsg_level); 188 CHECK_SIZE_AND_OFFSET(cmsghdr, cmsg_type);
|
H A D | sanitizer_platform_limits_solaris.cc | 240 CHECK_TYPE_SIZE(cmsghdr); 241 CHECK_SIZE_AND_OFFSET(cmsghdr, cmsg_len); 242 CHECK_SIZE_AND_OFFSET(cmsghdr, cmsg_level); 243 CHECK_SIZE_AND_OFFSET(cmsghdr, cmsg_type);
|
/netbsd/external/bsd/openldap/dist/libraries/libldap/ |
H A D | os-local.c | 198 # define CMSG_SPACE(len) (_CMSG_ALIGN( sizeof(struct cmsghdr)) + _CMSG_ALIGN(len) ) in ldap_pvt_connect() 201 # define CMSG_LEN(len) (_CMSG_ALIGN( sizeof(struct cmsghdr)) + (len) ) in ldap_pvt_connect() 204 struct cmsghdr cm; in ldap_pvt_connect() 207 struct cmsghdr *cmsg; in ldap_pvt_connect()
|
/netbsd/external/gpl3/gcc.old/dist/libsanitizer/sanitizer_common/ |
H A D | sanitizer_platform_limits_openbsd.cc | 183 CHECK_TYPE_SIZE(cmsghdr); 184 CHECK_SIZE_AND_OFFSET(cmsghdr, cmsg_len); 185 CHECK_SIZE_AND_OFFSET(cmsghdr, cmsg_level); 186 CHECK_SIZE_AND_OFFSET(cmsghdr, cmsg_type);
|
H A D | sanitizer_platform_limits_solaris.cc | 238 CHECK_TYPE_SIZE(cmsghdr); 239 CHECK_SIZE_AND_OFFSET(cmsghdr, cmsg_len); 240 CHECK_SIZE_AND_OFFSET(cmsghdr, cmsg_level); 241 CHECK_SIZE_AND_OFFSET(cmsghdr, cmsg_type);
|
/netbsd/sys/sys/ |
H A D | socket.h | 526 struct cmsghdr { struct 548 #define __CMSG_ASIZE __CMSG_ALIGN(sizeof(struct cmsghdr)) argument 560 __CASTV(struct cmsghdr *, \ 569 __CASTV(struct cmsghdr *, \ 570 (mhdr)->msg_controllen < sizeof(struct cmsghdr) ? 0 : \
|
/netbsd/external/gpl3/gdb/dist/gdb/testsuite/gdb.reverse/ |
H A D | recvmsg-reverse.c | 72 struct cmsghdr *cm1 = CMSG_FIRSTHDR (&wmsg); in main() 80 struct cmsghdr *cm2 = CMSG_NXTHDR (&wmsg, cm1); in main()
|
/netbsd/external/gpl3/gdb.old/dist/gdb/testsuite/gdb.reverse/ |
H A D | recvmsg-reverse.c | 72 struct cmsghdr *cm1 = CMSG_FIRSTHDR (&wmsg); in main() 80 struct cmsghdr *cm2 = CMSG_NXTHDR (&wmsg, cm1); in main()
|
/netbsd/sys/compat/common/ |
H A D | uipc_syscalls_43.c | 250 struct cmsghdr *cmsg = mtod(control, struct cmsghdr *); in compat_43_sys_recvmsg() 305 struct cmsghdr *cmsg; in compat43_set_accrights() 323 cmsg = mtod(ctl, struct cmsghdr *); in compat43_set_accrights()
|
/netbsd/external/mpl/bind/dist/lib/isc/unix/ |
H A D | net.c | 377 hdrlen = (socklen_t)CMSG_DATA(((struct cmsghdr *)NULL)); in cmsg_len() 388 struct cmsghdr *cmsgp; in cmsg_space() 393 char dummybuf[sizeof(struct cmsghdr) + 1024]; in cmsg_space() 399 cmsgp = (struct cmsghdr *)dummybuf; in cmsg_space() 452 struct cmsghdr h; in cmsgsend() 455 struct cmsghdr *cmsgp; in cmsgsend()
|
/netbsd/dist/pf/sbin/pflogd/ |
H A D | privsep_fdpass.c | 55 struct cmsghdr *cmsg; in send_fd() 91 struct cmsghdr *cmsg; in receive_fd()
|
/netbsd/external/mpl/dhcp/dist/common/ |
H A D | socket.c | 780 hdrlen = (size_t)CMSG_DATA(((struct cmsghdr *)NULL)); in CMSG_LEN() 788 struct cmsghdr *cmsgp; in CMSG_SPACE() 795 struct cmsghdr cmsg_sizer; in CMSG_SPACE() 796 u_int8_t pktinfo_sizer[sizeof(struct cmsghdr) + 1024]; in CMSG_SPACE() 803 cmsgp = (struct cmsghdr *)&dummybuf; in CMSG_SPACE() 866 struct cmsghdr *cmsg; in send_packet6() 971 struct cmsghdr *cmsg; 1079 struct cmsghdr *cmsg; in receive_packet6()
|