Home
last modified time | relevance | path

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

/f-stack/tools/compat/include/netinet6/
H A Din6.h668 struct cmsghdr;
712 struct cmsghdr;
715 extern int inet6_option_init(void *, struct cmsghdr **, int);
716 extern int inet6_option_append(struct cmsghdr *, const uint8_t *,
719 extern int inet6_option_next(const struct cmsghdr *, uint8_t **);
723 extern struct cmsghdr *inet6_rthdr_init(void *, int);
726 extern int inet6_rthdr_lasthop(struct cmsghdr *, unsigned int);
728 extern int inet6_rthdr_reverse(const struct cmsghdr *, struct cmsghdr *);
730 extern int inet6_rthdr_segments(const struct cmsghdr *);
731 extern struct in6_addr *inet6_rthdr_getaddr(struct cmsghdr *, int);
[all …]
/f-stack/freebsd/netinet6/
H A Din6.h668 struct cmsghdr;
712 struct cmsghdr;
715 extern int inet6_option_init(void *, struct cmsghdr **, int);
716 extern int inet6_option_append(struct cmsghdr *, const uint8_t *,
719 extern int inet6_option_next(const struct cmsghdr *, uint8_t **);
723 extern struct cmsghdr *inet6_rthdr_init(void *, int);
726 extern int inet6_rthdr_lasthop(struct cmsghdr *, unsigned int);
728 extern int inet6_rthdr_reverse(const struct cmsghdr *, struct cmsghdr *);
730 extern int inet6_rthdr_segments(const struct cmsghdr *);
731 extern struct in6_addr *inet6_rthdr_getaddr(struct cmsghdr *, int);
[all …]
H A Dip6_output.c2823 struct cmsghdr *cm = NULL; in ip6_setpktopts()
2859 cm = mtod(control, struct cmsghdr *); in ip6_setpktopts()
/f-stack/tools/compat/include/sys/
H A Dsocket.h475 struct cmsghdr { struct
544 _ALIGN(sizeof(struct cmsghdr)))
550 _ALIGN(sizeof(struct cmsghdr)) > \
552 (struct cmsghdr *)0 : \
553 (struct cmsghdr *)(void *)((char *)(cmsg) + \
554 _ALIGN(((struct cmsghdr *)(cmsg))->cmsg_len)))
561 ((mhdr)->msg_controllen >= sizeof(struct cmsghdr) ? \
562 (struct cmsghdr *)(mhdr)->msg_control : \
563 (struct cmsghdr *)0)
567 #define CMSG_SPACE(l) (_ALIGN(sizeof(struct cmsghdr)) + _ALIGN(l))
[all …]
/f-stack/freebsd/sys/
H A Dsocket.h481 struct cmsghdr { struct
550 _ALIGN(sizeof(struct cmsghdr)))
556 _ALIGN(sizeof(struct cmsghdr)) > \
558 (struct cmsghdr *)0 : \
559 (struct cmsghdr *)(void *)((char *)(cmsg) + \
560 _ALIGN(((struct cmsghdr *)(cmsg))->cmsg_len)))
567 ((mhdr)->msg_controllen >= sizeof(struct cmsghdr) ? \
568 (struct cmsghdr *)(mhdr)->msg_control : \
569 (struct cmsghdr *)0)
573 #define CMSG_SPACE(l) (_ALIGN(sizeof(struct cmsghdr)) + _ALIGN(l))
[all …]
/f-stack/app/nginx-1.16.1/src/os/unix/
H A Dngx_freebsd_config.h62 #define CMSG_SPACE(l) (ALIGN(sizeof(struct cmsghdr)) + ALIGN(l))
65 #define CMSG_LEN(l) (ALIGN(sizeof(struct cmsghdr)) + (l))
68 #define CMSG_DATA(cmsg) ((u_char *)(cmsg) + ALIGN(sizeof(struct cmsghdr)))
H A Dngx_udp_sendmsg_chain.c237 struct cmsghdr *cmsg; in ngx_sendmsg()
258 struct cmsghdr *cmsg; in ngx_sendmsg()
282 struct cmsghdr *cmsg; in ngx_sendmsg()
H A Dngx_channel.c25 struct cmsghdr cm; in ngx_write_channel()
105 struct cmsghdr cm; in ngx_read_channel()
/f-stack/freebsd/kern/
H A Duipc_usrreq.c2006 struct cmsghdr *cm = mtod(control, struct cmsghdr *); in unp_externalize()
2102 cm = (struct cmsghdr *) in unp_externalize()
2176 struct cmsghdr *cp; in unp_internalize_cleanup_rights()
2182 cp = mtod(m, struct cmsghdr *); in unp_internalize_cleanup_rights()
2199 struct cmsghdr *cm; in unp_internalize()
2374 cm = (struct cmsghdr *) in unp_internalize()
2393 const struct cmsghdr *cm; in unp_addsockcred()
2443 cm = mtod(n, struct cmsghdr *); in unp_addsockcred()
2807 struct cmsghdr *cm; in unp_scan()
2816 cm = mtod(m, struct cmsghdr *); in unp_scan()
[all …]
H A Duipc_syscalls.c700 if (mp->msg_controllen < sizeof(struct cmsghdr) in sendit()
716 struct cmsghdr *cm; in sendit()
719 cm = mtod(control, struct cmsghdr *); in sendit()
1020 if (mtod(control, struct cmsghdr *)->cmsg_level != in kern_recvit()
1022 mtod(control, struct cmsghdr *)->cmsg_type != in kern_recvit()
1027 control->m_len -= sizeof (struct cmsghdr); in kern_recvit()
1028 control->m_data += sizeof (struct cmsghdr); in kern_recvit()
1598 struct cmsghdr *cm; in m_dispose_extcontrolm()
1608 cm = mtod(m, struct cmsghdr *); in m_dispose_extcontrolm()
1634 cm = (struct cmsghdr *)((uint8_t *)cm + datalen); in m_dispose_extcontrolm()
H A Duipc_sockbuf.c1735 struct cmsghdr *cp; in sbcreatecontrol_how()
1747 cp = mtod(m, struct cmsghdr *); in sbcreatecontrol_how()
H A Duipc_socket.c1600 struct cmsghdr *cm = mtod(control, struct cmsghdr *);
2061 struct cmsghdr *cmsg;
2073 cmsg = mtod(m, struct cmsghdr *);
/f-stack/dpdk/drivers/net/mlx5/linux/
H A Dmlx5_socket.c36 struct cmsghdr *cmsg = NULL; in mlx5_pmd_socket_handle()
/f-stack/dpdk/lib/librte_vhost/
H A Dsocket.c108 struct cmsghdr *cmsg; in read_fd_message()
161 struct cmsghdr *cmsg; in send_fd_message()
/f-stack/dpdk/drivers/net/virtio/virtio_user/
H A Dvhost_user.c61 struct cmsghdr *cmsg; in vhost_user_write()
/f-stack/freebsd/netinet/
H A Dudp_usrreq.c1091 udp_v4mapped_pktinfo(struct cmsghdr *cm, struct sockaddr_in * src, in udp_v4mapped_pktinfo()
1150 struct cmsghdr *cm; in udp_output()
1203 cm = mtod(control, struct cmsghdr *); in udp_output()
H A Dsctp_indata.c178 struct cmsghdr *cmh; in sctp_build_ctl_nchunk()
223 cmh = mtod(ret, struct cmsghdr *); in sctp_build_ctl_nchunk()
242 cmh = (struct cmsghdr *)((caddr_t)cmh + CMSG_SPACE(sizeof(struct sctp_rcvinfo))); in sctp_build_ctl_nchunk()
264 cmh = (struct cmsghdr *)((caddr_t)cmh + CMSG_SPACE(sizeof(struct sctp_nxtinfo))); in sctp_build_ctl_nchunk()
H A Dsctp_output.c3459 struct cmsghdr cmh; in sctp_find_cmsg()
3560 struct cmsghdr cmh; in sctp_process_cmsgs_for_init()
3730 struct cmsghdr cmh; in sctp_findassociation_cmsgs()
/f-stack/lib/
H A Dff_syscall_wrapper.c463 struct cmsghdr *cmsg; in freebsd2linux_cmsghdr()
477 linux_cmsg->cmsg_len = cmsg->cmsg_len + sizeof(struct linux_cmsghdr) - sizeof(struct cmsghdr); in freebsd2linux_cmsghdr()
/f-stack/dpdk/drivers/net/memif/
H A Dmemif_socket.c35 struct cmsghdr *cmsg; in memif_msg_send()
634 struct cmsghdr *cmsg; in memif_msg_receive()
/f-stack/dpdk/lib/librte_eal/common/
H A Deal_common_proc.c270 struct cmsghdr *cmsg; in read_msg()
666 struct cmsghdr *cmsg; in send_msg()
/f-stack/app/nginx-1.16.1/src/event/
H A Dngx_event_udp.c165 struct cmsghdr *cmsg; in ngx_event_recvmsg()