Home
last modified time | relevance | path

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

/freebsd-13.1/tools/regression/netinet/ipbroadcast/
H A Dipbroadcast.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()
326 cmsgp->cmsg_level = IPPROTO_IP; in main()
327 cmsgp->cmsg_type = IP_SENDIF; in main()
331 cmsgp->cmsg_len); in main()
[all …]
/freebsd-13.1/usr.sbin/mld6query/
H A Dmld6.c209 struct cmsghdr *cmsgp; in make_msg() local
263 cmsgp = (struct cmsghdr *)cmsgbuf; in make_msg()
267 cmsgp->cmsg_len = CMSG_LEN(sizeof(struct in6_pktinfo)); in make_msg()
268 cmsgp->cmsg_level = IPPROTO_IPV6; in make_msg()
269 cmsgp->cmsg_type = IPV6_PKTINFO; in make_msg()
270 pi = (struct in6_pktinfo *)CMSG_DATA(cmsgp); in make_msg()
274 cmsgp = CMSG_NXTHDR(&m, cmsgp); in make_msg()
275 cmsgp->cmsg_len = CMSG_LEN(hbhlen); in make_msg()
276 cmsgp->cmsg_level = IPPROTO_IPV6; in make_msg()
277 cmsgp->cmsg_type = IPV6_HOPOPTS; in make_msg()
[all …]
/freebsd-13.1/contrib/ntp/lib/isc/unix/
H A Dsocket.c1172 struct cmsghdr *cmsgp; 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()
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()
1282 cmsgp = CMSG_NXTHDR(msg, cmsgp); in process_cmsg()
1382 struct cmsghdr *cmsgp; in build_msghdr_send() local
[all …]
/freebsd-13.1/lib/libc/net/
H A Dip6opt.c83 inet6_option_init(void *bp, struct cmsghdr **cmsgp, int type) in inet6_option_init() argument
95 *cmsgp = ch; in inet6_option_init()