Lines Matching refs:cmsg
109 } cmsg = { {sizeof(struct cmsghdr) + sizeof(struct in_pktinfo), SOL_IP, IP_PKTINFO}, variable
438 cmsg.ipi.ipi_ifindex = ifr.ifr_ifindex; in main()
439 cmsg_len = sizeof(cmsg); in main()
614 struct cmsghdr *cmsg; in receive_error_msg() local
637 for (cmsg = CMSG_FIRSTHDR(&msg); cmsg; cmsg = CMSG_NXTHDR(&msg, cmsg)) { in receive_error_msg()
638 if (cmsg->cmsg_level == SOL_IP) { in receive_error_msg()
639 if (cmsg->cmsg_type == IP_RECVERR) in receive_error_msg()
640 e = (struct sock_extended_err *)CMSG_DATA(cmsg); in receive_error_msg()
758 &iov, 1, &cmsg, 0, 0 }; in send_probe()
791 struct cmsghdr *cmsg; in parse_reply() local
814 for (cmsg = CMSG_FIRSTHDR(msg); cmsg; cmsg = CMSG_NXTHDR(msg, cmsg)) { in parse_reply()
815 if (cmsg->cmsg_level != SOL_IP) in parse_reply()
817 if (cmsg->cmsg_type == IP_TTL) { in parse_reply()
818 if (cmsg->cmsg_len < sizeof(int)) in parse_reply()
820 ttl = *(int *) CMSG_DATA(cmsg); in parse_reply()
821 } else if (cmsg->cmsg_type == IP_RETOPTS) { in parse_reply()
822 opts = (__u8 *) CMSG_DATA(cmsg); in parse_reply()
823 optlen = cmsg->cmsg_len; in parse_reply()