msghdr
struct msghdr msg = {
struct msghdr msg;
struct msghdr msg;
struct msghdr m;
struct msghdr m;
struct msghdr m;
struct msghdr msg;
struct msghdr msg;
struct msghdr msg;
struct msghdr msg;
struct msghdr msg;
struct msghdr msg;
struct msghdr msg;
struct msghdr msg;
struct msghdr msg;
recvmsg(int s, struct msghdr *msg, int flags)
sendmsg(int s, const struct msghdr *msg, int flags)
ssize_t (*host_sendmsg)(int, const struct msghdr *, int);
_msg_convert_fds(struct msghdr *msg, int (*func)(int), bool dryrun)
msg_convert_fds(struct msghdr *msg, int (*func)(int))
msg_check_fds(struct msghdr *msg, int (*func)(int))
recvmsg(int fd, struct msghdr *msg, int flags)
ssize_t (*op_recvmsg)(int, struct msghdr *, int);
sendmsg(int fd, const struct msghdr *msg, int flags)
ssize_t (*op_sendmsg)(int, const struct msghdr *, int);
struct msghdr msg;
struct msghdr msg;
struct msghdr msg;
struct msghdr msg;
struct msghdr msg;
struct msghdr msg;
struct msghdr msg;
pr_pack(u_char *buf, int cc, struct msghdr *mhdr)
pr_exthdrs(struct msghdr *mhdr)
get_hoplim(struct msghdr *mhdr)
get_rcvpktinfo(struct msghdr *mhdr)
get_pathmtu(struct msghdr *mhdr)
static struct msghdr smsghdr;
static int get_hoplim(struct msghdr *);
static int get_pathmtu(struct msghdr *);
static struct in6_pktinfo *get_rcvpktinfo(struct msghdr *);
static void pr_pack(u_char *, int, struct msghdr *);
static void pr_exthdrs(struct msghdr *);
struct msghdr m;
ssize_t (*op_recvmsg)(int, struct msghdr *, int);
ssize_t (*op_sendmsg)(int, const struct msghdr *, int);
struct msghdr msg;
compat43_set_accrights(struct msghdr *msg, void *accrights, int accrightslen)
struct msghdr msg;
static void linux_to_bsd_msghdr(const struct linux_msghdr *, struct msghdr *);
static void bsd_to_linux_msghdr(const struct msghdr *, struct linux_msghdr *);
struct msghdr *msg = &bmsg.msg_hdr;
struct msghdr *msg = &bmsg.msg_hdr;
struct msghdr msg;
linux_to_bsd_msghdr(const struct linux_msghdr *lmsg, struct msghdr *bmsg)
bsd_to_linux_msghdr(const struct msghdr *bmsg, struct linux_msghdr *lmsg)
struct msghdr msg;
linux_copyout_msg_control(struct lwp *l, struct msghdr *mp, struct mbuf *control)
struct msghdr msg;
NETBSD32TOP_UAP(msg, struct msghdr);
NETBSD32TOP_UAP(msg, struct msghdr);
struct msghdr msg;
struct msghdr msg;
netbsd32_to_msghdr(const struct netbsd32_msghdr *mhp32, struct msghdr *mhp)
netbsd32_from_msghdr(struct netbsd32_msghdr *mhp32, const struct msghdr *mhp)
copyout32_msg_control(struct lwp *l, struct msghdr *mp, struct mbuf *control)
struct msghdr *msg, struct iovec *aiov)
struct msghdr *msg, struct netbsd32_msghdr *arg,
struct msghdr msg;
struct msghdr *msg = &mmsg.msg_hdr;
copyin32_msg_control(struct lwp *l, struct msghdr *mp)
struct msghdr *msg, struct iovec *aiov)
struct msghdr msg;
struct msghdr *msg = &mmsg.msg_hdr;
struct msghdr msg;
struct msghdr msg;
copyout32_msg_control_mbuf(struct lwp *l, struct msghdr *mp, u_int *len,
int compat43_set_accrights(struct msghdr *, void *, int);
struct __msg *msghdr;
msghdr = NULL;
while (msghdr == NULL) {
msghdr = msqptr->_msg_first;
if (msghdr != NULL) {
if (msgsz < msghdr->msg_ts &&
(long long)msgsz, msghdr->msg_ts));
msqptr->_msg_first = msghdr->msg_next;
(msghdr = *prev) != NULL;
previous = msghdr, prev = &msghdr->msg_next) {
if (msgtyp != msghdr->msg_type &&
msghdr->msg_type > -msgtyp)
msghdr->msg_type, msgtyp));
if (msgsz < msghdr->msg_ts &&
(long long)msgsz, msghdr->msg_ts));
*prev = msghdr->msg_next;
if (msghdr != msqptr->_msg_last)
if (msghdr != NULL)
msqptr->_msg_cbytes -= msghdr->msg_ts;
(long long)msgsz, msghdr->msg_ts));
if (msgsz > msghdr->msg_ts)
msgsz = msghdr->msg_ts;
error = (*put_type)(&msghdr->msg_type, user_msgp, typesz);
msg_freehdr(msghdr);
next = msghdr->msg_spot;
msg_freehdr(msghdr);
msg_freehdr(msghdr);
struct __msg *nmsghdr, *msghdr, *pmsghdr;
msghdr = mptr->_msg_first;
while (msghdr) {
nmsghdr->msg_ts = msghdr->msg_ts;
msgsz = msghdr->msg_ts;
next = msghdr->msg_spot;
msghdr = msghdr->msg_next;
msg_freehdr(struct __msg *msghdr)
while (msghdr->msg_ts > 0) {
KASSERT(msghdr->msg_spot >= 0);
KASSERT(msghdr->msg_spot < msginfo.msgseg);
next = msgmaps[msghdr->msg_spot].next;
msgmaps[msghdr->msg_spot].next = free_msgmaps;
free_msgmaps = msghdr->msg_spot;
msghdr->msg_spot = next;
if (msghdr->msg_ts >= msginfo.msgssz)
msghdr->msg_ts -= msginfo.msgssz;
msghdr->msg_ts = 0;
KASSERT(msghdr->msg_spot == -1);
msghdr->msg_next = free_msghdrs;
free_msghdrs = msghdr;
struct __msg *msghdr;
msghdr = msqptr->_msg_first;
while (msghdr != NULL) {
msqptr->_msg_cbytes -= msghdr->msg_ts;
msghdr_tmp = msghdr;
msghdr = msghdr->msg_next;
struct __msg *msghdr;
msghdr = free_msghdrs;
free_msghdrs = msghdr->msg_next;
msghdr->msg_spot = -1;
msghdr->msg_ts = msgsz;
msgmaps[next].next = msghdr->msg_spot;
msghdr->msg_spot = next;
error = (*fetch_type)(user_msgp, &msghdr->msg_type, typesz);
msg_freehdr(msghdr);
if (msghdr->msg_type < 1) {
msg_freehdr(msghdr);
MSG_PRINTF(("mtype (%ld) < 1\n", msghdr->msg_type));
next = msghdr->msg_spot;
msg_freehdr(msghdr);
msg_freehdr(msghdr);
msqptr->_msg_first = msghdr;
msqptr->_msg_last = msghdr;
msqptr->_msg_last->msg_next = msghdr;
msqptr->_msg_last = msghdr;
msqptr->_msg_cbytes += msghdr->msg_ts;
struct msghdr *msg = &mmsg.msg_hdr;
struct msghdr mhdr;
struct msghdr msg = {0};
struct msghdr msg;
struct msghdr *mp, int flags, register_t *retsize)
do_sys_sendmsg(struct lwp *l, int s, struct msghdr *mp, int flags,
struct msghdr msg = {0};
struct msghdr msg;
struct msghdr *msg = &mmsg.msg_hdr;
copyout_msg_control(struct lwp *l, struct msghdr *mp, struct mbuf *control)
do_sys_recvmsg_so(struct lwp *l, int s, struct socket *so, struct msghdr *mp,
do_sys_recvmsg(struct lwp *l, int s, struct msghdr *mp,
struct msghdr;
ssize_t rump_sys_recvmsg(int, struct msghdr *, int) __RENAME(RUMP_SYS_RENAME_RECVMSG);
ssize_t rump_sys_sendmsg(int, const struct msghdr *, int) __RENAME(RUMP_SYS_RENAME_SENDMSG);
ssize_t rump___sysimpl_recvmsg(int, struct msghdr *, int);
rump___sysimpl_recvmsg(int s, struct msghdr * msg, int flags)
ssize_t rump___sysimpl_sendmsg(int, const struct msghdr *, int);
rump___sysimpl_sendmsg(int s, const struct msghdr * msg, int flags)
struct msghdr rmsg;
struct msghdr mhdr;
static struct msghdr *translate_msghdr(const struct rump_msghdr *, int *);
static void translate_msghdr_back(const struct msghdr *, struct rump_msghdr *);
static struct msghdr *
return (struct msghdr *)__UNCONST(bmsg);
translate_msghdr_back(const struct msghdr *lmsg, struct rump_msghdr *bmsg)
static struct msghdr *
struct msghdr *rv;
translate_msghdr_back(const struct msghdr *lmsg, struct rump_msghdr *bmsg)
rumpcomp_sockin_sendmsg(int s, const struct msghdr *msg, int flags, size_t *snd)
rumpcomp_sockin_recvmsg(int s, struct msghdr *msg, int flags, size_t *rcv)
int rumpcomp_sockin_sendmsg(int, const struct msghdr *, int, size_t *);
int rumpcomp_sockin_recvmsg(int, struct msghdr *, int, size_t *);
struct msghdr msg_hdr;
ssize_t recvmsg(int, struct msghdr *, int);
ssize_t sendmsg(int, const struct msghdr *, int);
struct msghdr;
int copyout_msg_control(struct lwp *, struct msghdr *, struct mbuf *);
int do_sys_sendmsg(struct lwp *, int, struct msghdr *, int, register_t *);
struct msghdr *, int, register_t *);
int do_sys_recvmsg(struct lwp *, int, struct msghdr *,
struct msghdr *mp, struct mbuf **, struct mbuf **, register_t *);
syscallarg(struct msghdr *) msg;
syscallarg(const struct msghdr *) msg;
struct msghdr msg;
struct msghdr msg;
struct msghdr m;
struct msghdr msg = {
struct msghdr msg = {
struct msghdr msg;
struct msghdr msg;
struct msghdr msg;
struct msghdr msg;
struct msghdr msg = {
struct msghdr header = {
struct msghdr m;
struct msghdr mh;
struct msghdr msg;
struct msghdr msg;
struct msghdr msg;
struct msghdr header = {
struct msghdr header = {
struct ifa_msghdr *msghdr = (struct ifa_msghdr *)&rg->m_rtm;
(msghdr->ifam_addrs & RTA_NETMASK) == 0 ||
(msghdr->ifam_addrs & RTA_IFA) == 0)
ifa = netmask = (union sockunion *)(msghdr + 1);
if (msghdr->ifam_addrs & RTA_IFP)
struct msghdr msg;
static struct msghdr m;
struct msghdr msg;
struct msghdr m;
struct msghdr m;
ssize_t (*op_recvmsg)(int, struct msghdr *, int);
ssize_t (*op_sendmsg)(int, const struct msghdr *, int);
struct msghdr rcvmhdr;
struct msghdr sndmhdr;
struct msghdr msg;
print(struct msghdr *mhdr, int cc)
static ssize_t wait_for_reply(int, struct msghdr *);
static int packet_ok(struct msghdr *, ssize_t, int);
static void print(struct msghdr *, int);
static struct msghdr rcvmhdr;
wait_for_reply(int sock, struct msghdr *mhdr)
packet_ok(struct msghdr *mhdr, ssize_t cc, int seq)