Home
last modified time | relevance | path

Searched refs:cmsgp (Results 1 – 4 of 4) sorted by relevance

/freebsd-11-stable/usr.sbin/mld6query/
HDmld6.c190 struct cmsghdr *cmsgp; in make_msg() local
255 cmsgp = (struct cmsghdr *)cmsgbuf; in make_msg()
259 cmsgp->cmsg_len = CMSG_LEN(sizeof(struct in6_pktinfo)); in make_msg()
260 cmsgp->cmsg_level = IPPROTO_IPV6; in make_msg()
261 cmsgp->cmsg_type = IPV6_PKTINFO; in make_msg()
262 pi = (struct in6_pktinfo *)CMSG_DATA(cmsgp); in make_msg()
266 cmsgp = CMSG_NXTHDR(&m, cmsgp); in make_msg()
268 cmsgp->cmsg_len = CMSG_LEN(hbhlen); in make_msg()
269 cmsgp->cmsg_level = IPPROTO_IPV6; in make_msg()
270 cmsgp->cmsg_type = IPV6_HOPOPTS; in make_msg()
[all …]
/freebsd-11-stable/tools/regression/netinet/ipbroadcast/
HDipbroadcast.c116 struct cmsghdr *cmsgp; in main() local
313 cmsgp = CMSG_FIRSTHDR(&msg); in main()
314 cmsgp->cmsg_len = CMSG_LEN(sizeof(struct in_addr)); in main()
315 cmsgp->cmsg_level = IPPROTO_IP; in main()
316 cmsgp->cmsg_type = IP_SENDSRCADDR; in main()
317 srcaddrp = (struct in_addr *)CMSG_DATA(cmsgp); in main()
324 cmsgp = CMSG_FIRSTHDR(&msg); in main()
325 cmsgp->cmsg_len = CMSG_LEN(sizeof(struct sockaddr_dl)); in main()
326 cmsgp->cmsg_level = IPPROTO_IP; in main()
327 cmsgp->cmsg_type = IP_SENDIF; in main()
[all …]
/freebsd-11-stable/contrib/ntp/lib/isc/unix/
HDsocket.c1172 struct cmsghdr *cmsgp; in cmsg_space()
1183 cmsgp = (struct cmsghdr *)dummybuf; in cmsg_space()
1184 cmsgp->cmsg_len = cmsg_len(len); in cmsg_space()
1186 cmsgp = CMSG_NXTHDR(&msg, cmsgp); in cmsg_space()
1187 if (cmsgp != NULL) in cmsg_space()
1188 return ((char *)cmsgp - (char *)msg.msg_control); in cmsg_space()
1201 struct cmsghdr *cmsgp; in process_cmsg() local
1245 cmsgp = CMSG_FIRSTHDR(msg); in process_cmsg()
1246 while (cmsgp != NULL) { in process_cmsg()
1249 "processing cmsg %p", cmsgp); in process_cmsg()
[all …]
/freebsd-11-stable/lib/libc/net/
HDip6opt.c81 inet6_option_init(void *bp, struct cmsghdr **cmsgp, int type) in inet6_option_init() argument
93 *cmsgp = ch; in inet6_option_init()