Home
last modified time | relevance | path

Searched refs:cmsghdr (Results 1 – 25 of 50) sorted by relevance

12

/dragonfly/lib/libc/net/
H A Drthdr.c54 struct cmsghdr *
61 inet6_rthdr_add(struct cmsghdr *cmsg __unused, const struct in6_addr *addr __unused, u_int flags __… in inet6_rthdr_add()
67 inet6_rthdr_lasthop(struct cmsghdr *cmsg __unused, unsigned int flags __unused) in inet6_rthdr_lasthop()
73 inet6_rthdr_reverse(const struct cmsghdr *in __unused, struct cmsghdr *out __unused) in inet6_rthdr_reverse()
79 inet6_rthdr_segments(const struct cmsghdr *cmsg __unused) in inet6_rthdr_segments()
85 inet6_rthdr_getaddr(struct cmsghdr *cmsg __unused, int idx __unused) in inet6_rthdr_getaddr()
91 inet6_rthdr_getflags(const struct cmsghdr *cmsg __unused, int idx __unused) in inet6_rthdr_getflags()
H A Dip6opt.c69 inet6_option_init(void *bp, struct cmsghdr **cmsgp, int type) in inet6_option_init()
71 struct cmsghdr *ch = (struct cmsghdr *)bp; in inet6_option_init()
96 inet6_option_append(struct cmsghdr *cmsg, const u_int8_t *typep, int multx, in inet6_option_append()
165 inet6_option_alloc(struct cmsghdr *cmsg, int datalen, int multx, int plusy) in inet6_option_alloc()
227 inet6_option_next(const struct cmsghdr *cmsg, u_int8_t **tptrp) in inet6_option_next()
283 inet6_option_find(const struct cmsghdr *cmsg, u_int8_t **tptrp, int type) in inet6_option_find()
/dragonfly/sys/netinet6/
H A Din6.h687 struct cmsghdr;
689 uint8_t *inet6_option_alloc (struct cmsghdr *, int, int, int);
691 int inet6_option_find (const struct cmsghdr *, uint8_t **, int);
692 int inet6_option_init (void *, struct cmsghdr **, int);
693 int inet6_option_next (const struct cmsghdr *, uint8_t **);
713 struct in6_addr *inet6_rthdr_getaddr (struct cmsghdr *, int);
714 int inet6_rthdr_getflags (const struct cmsghdr *, int);
715 struct cmsghdr *inet6_rthdr_init (void *, int);
716 int inet6_rthdr_lasthop (struct cmsghdr *, unsigned int);
717 int inet6_rthdr_reverse (const struct cmsghdr *, struct cmsghdr *);
[all …]
/dragonfly/sys/sys/
H A Dsocket.h450 struct cmsghdr { struct
491 _CMSG_ALIGN(sizeof(struct cmsghdr)))
496 _CMSG_ALIGN(sizeof(struct cmsghdr)) > \
499 (struct cmsghdr *)((char *)(cmsg) + _CMSG_ALIGN((cmsg)->cmsg_len)))
506 ((mhdr)->msg_controllen >= sizeof(struct cmsghdr) ? \
507 (struct cmsghdr *)(mhdr)->msg_control : \
513 #define CMSG_SPACE(l) (_CMSG_ALIGN(sizeof(struct cmsghdr)) + _CMSG_ALIGN(l))
514 #define CMSG_LEN(l) (_CMSG_ALIGN(sizeof(struct cmsghdr)) + (l))
/dragonfly/lib/libc/sysvipc/
H A Dsockets.c137 struct cmsghdr hdr; in send_fd()
140 struct cmsghdr *cmsg; in send_fd()
190 struct cmsghdr hdr; in receive_fd()
193 struct cmsghdr *cmsg; in receive_fd()
255 struct cmsghdr hdr; in send_msg_with_cred()
290 struct cmsghdr *cmp; in receive_msg_with_cred()
292 struct cmsghdr hdr; in receive_msg_with_cred()
/dragonfly/crypto/openssh/
H A Dmonitor_fdpass.c58 struct cmsghdr hdr; in mm_send_fd()
61 struct cmsghdr *cmsg; in mm_send_fd()
118 struct cmsghdr hdr; in mm_receive_fd()
121 struct cmsghdr *cmsg; in mm_receive_fd()
H A Ddefines.h605 #define CMSG_LEN(len) (__CMSG_ALIGN(sizeof(struct cmsghdr)) + (len))
610 #define CMSG_SPACE(len) (__CMSG_ALIGN(sizeof(struct cmsghdr)) + __CMSG_ALIGN(len))
615 #define CMSG_DATA(cmsg) ((u_char *)(cmsg) + __CMSG_ALIGN(sizeof(struct cmsghdr)))
624 ((mhdr)->msg_controllen >= sizeof(struct cmsghdr) ? \
625 (struct cmsghdr *)(mhdr)->msg_control : \
626 (struct cmsghdr *)NULL)
/dragonfly/test/unix/passdesc/
H A Dpassdesc.c25 struct cmsghdr cm; in test_send_desc()
28 struct cmsghdr *cm; in test_send_desc()
61 struct cmsghdr cm; in test_recv_desc()
64 struct cmsghdr *cm; in test_recv_desc()
/dragonfly/usr.sbin/rtsold/
H A Drtsol.c187 struct cmsghdr *cm; in sendpacket()
241 struct cmsghdr *cm; in rtsol_input()
253 for (cm = (struct cmsghdr *)CMSG_FIRSTHDR(&rcvmhdr); in rtsol_input()
255 cm = (struct cmsghdr *)CMSG_NXTHDR(&rcvmhdr, cm)) { in rtsol_input()
H A Dprobe.c151 struct cmsghdr *cm; in sendprobe()
/dragonfly/test/unix/loopdesc/
H A Dloopdesc.c17 struct cmsghdr cm; in test_sendto_self()
20 struct cmsghdr *cm; in test_sendto_self()
/dragonfly/sbin/ping6/
H A Dping6.c284 struct cmsghdr *scmsgp = NULL; in main()
285 struct cmsghdr *cm; in main()
740 scmsgp = (struct cmsghdr *)scmsg; in main()
902 cm = (struct cmsghdr *)malloc(CONTROLLEN); in main()
1573 struct cmsghdr *cm; in pr_exthdrs()
1577 for (cm = (struct cmsghdr *)CMSG_FIRSTHDR(mhdr); cm; in pr_exthdrs()
1578 cm = (struct cmsghdr *)CMSG_NXTHDR(mhdr, cm)) { in pr_exthdrs()
1884 struct cmsghdr *cm; in get_hoplim()
1886 for (cm = (struct cmsghdr *)CMSG_FIRSTHDR(mhdr); cm; in get_hoplim()
1903 struct cmsghdr *cm; in get_rcvpktinfo()
[all …]
/dragonfly/usr.sbin/pflogd/
H A Dprivsep_fdpass.c54 struct cmsghdr *cmsg; in send_fd()
90 struct cmsghdr *cmsg; in receive_fd()
/dragonfly/test/testcases/io/sendfd_1/
H A Dsendfd_1.c37 struct cmsghdr *cmsg; in sendfd()
70 struct cmsghdr *cmsg; in recvfd()
/dragonfly/test/socket/recvmsg/cloexec/
H A Drecvmsg_cloexec.c73 struct cmsghdr *cmsg; in sendfd()
106 struct cmsghdr *cmsg; in recvfd()
/dragonfly/test/debug/
H A Dfdpassing.c79 struct cmsghdr cmsg; in sendfd()
111 struct cmsghdr cmsg; in recvfd()
/dragonfly/test/udp/tos/
H A Dudp_tos.c29 struct cmsghdr *cm; in main()
31 struct cmsghdr cm; in main()
/dragonfly/contrib/wpa_supplicant/src/crypto/
H A Dcrypto_linux.c454 struct cmsghdr *hdr; in linux_af_alg_skcipher_oper()
545 struct cmsghdr *hdr; in rc4_skip()
615 struct cmsghdr *hdr; in des_encrypt()
682 struct cmsghdr *hdr; in aes_128_cbc_oper()
791 struct cmsghdr *hdr; in aes_unwrap()
868 struct cmsghdr *hdr; in crypto_cipher_init()
935 struct cmsghdr *hdr; in crypto_cipher_oper()
/dragonfly/test/udp/sendsrcaddr/
H A Dudp_sendsrcaddr.c21 struct cmsghdr cm; in test_sendsrcaddr()
24 struct cmsghdr *cm; in test_sendsrcaddr()
/dragonfly/contrib/mdocml/
H A Dmandocd.c63 struct cmsghdr *cmsg; in read_fds()
70 struct cmsghdr align; in read_fds()
/dragonfly/usr.sbin/mld6query/
H A Dmld6query.c163 struct cmsghdr *cmsgp; in make_msg()
192 cmsgp = (struct cmsghdr *)cmsgbuf; in make_msg()
/dragonfly/sys/kern/
H A Duipc_usrreq.c682 struct cmsghdr *cm; in uipc_send()
688 cm = mtod(ncon, struct cmsghdr *); in uipc_send()
1548 struct cmsghdr *cm = mtod(rights, struct cmsghdr *); in unp_externalize()
1702 struct cmsghdr *cm = mtod(control, struct cmsghdr *); in unp_internalize()
1775 cm = mtod(control, struct cmsghdr *); in unp_internalize()
2336 struct cmsghdr *cm; in unp_scan()
2344 cm = mtod(m, struct cmsghdr *); in unp_scan()
H A Duipc_sockbuf.c587 struct cmsghdr *cp; in sbcreatecontrol()
596 cp = mtod(m, struct cmsghdr *); in sbcreatecontrol()
/dragonfly/lib/libc/rpc/
H A Dclnt_vc.c81 struct cmsghdr cmsg;
761 struct cmsghdr cmsg; in __msgread()
786 struct cmsghdr cmsg; in __msgwrite()
/dragonfly/contrib/dhcpcd/src/
H A Ddhcpcd.h111 #define CMSG_SPACE(len) (ALIGN(sizeof(struct cmsghdr)) + ALIGN(len))

12