Searched refs:cmsgp (Results 1 – 3 of 3) sorted by relevance
109 struct cmsghdr *cmsgp; in main() local300 cmsgp = CMSG_FIRSTHDR(&msg); in main()301 cmsgp->cmsg_len = CMSG_LEN(sizeof(struct in_addr)); in main()302 cmsgp->cmsg_level = IPPROTO_IP; in main()303 cmsgp->cmsg_type = IP_SENDSRCADDR; in main()304 memcpy(CMSG_DATA(cmsgp), in main()312 cmsgp = CMSG_FIRSTHDR(&msg); in main()313 cmsgp->cmsg_len = CMSG_LEN(sizeof(struct sockaddr_dl)); in main()314 cmsgp->cmsg_level = IPPROTO_IP; in main()315 cmsgp->cmsg_type = IP_SENDIF; in main()[all …]
206 struct cmsghdr *cmsgp; in make_msg() local260 cmsgp = (struct cmsghdr *)cmsgbuf; in make_msg()264 cmsgp->cmsg_len = CMSG_LEN(sizeof(struct in6_pktinfo)); in make_msg()265 cmsgp->cmsg_level = IPPROTO_IPV6; in make_msg()266 cmsgp->cmsg_type = IPV6_PKTINFO; in make_msg()267 pi = (struct in6_pktinfo *)CMSG_DATA(cmsgp); in make_msg()271 cmsgp = CMSG_NXTHDR(&m, cmsgp); in make_msg()272 cmsgp->cmsg_len = CMSG_LEN(hbhlen); in make_msg()273 cmsgp->cmsg_level = IPPROTO_IPV6; in make_msg()274 cmsgp->cmsg_type = IPV6_HOPOPTS; in make_msg()[all …]
80 inet6_option_init(void *bp, struct cmsghdr **cmsgp, int type) in inet6_option_init() argument92 *cmsgp = ch; in inet6_option_init()