Searched refs:cmsgp (Results 1 – 5 of 5) sorted by relevance
| /netbsd-src/usr.sbin/mld6query/ |
| H A D | mld6.c | 169 struct cmsghdr *cmsgp; in make_msg() local 209 cmsgp = (struct cmsghdr *)cmsgbuf; in make_msg() 213 cmsgp->cmsg_len = CMSG_LEN(sizeof(struct in6_pktinfo)); in make_msg() 214 cmsgp->cmsg_level = IPPROTO_IPV6; in make_msg() 215 cmsgp->cmsg_type = IPV6_PKTINFO; in make_msg() 216 pi = (struct in6_pktinfo *)CMSG_DATA(cmsgp); in make_msg() 220 cmsgp = CMSG_NXTHDR(&m, cmsgp); in make_msg() 222 cmsgp->cmsg_len = CMSG_LEN(hbhlen); in make_msg() 223 cmsgp->cmsg_level = IPPROTO_IPV6; in make_msg() 224 cmsgp->cmsg_type = IPV6_HOPOPTS; in make_msg() [all …]
|
| /netbsd-src/external/mpl/dhcp/bind/dist/lib/isc/unix/ |
| H A D | net.c | 388 struct cmsghdr *cmsgp; in cmsg_space() 399 cmsgp = (struct cmsghdr *)dummybuf; in cmsg_space() 400 cmsgp->cmsg_len = cmsg_len(len); in cmsg_space() 402 cmsgp = CMSG_NXTHDR(&msg, cmsgp); in cmsg_space() 403 if (cmsgp != NULL) { in cmsg_space() 404 return ((char *)cmsgp - (char *)msg.msg_control); in cmsg_space() 455 struct cmsghdr *cmsgp; in cmsgsend() local 489 cmsgp = msg.msg_control; in cmsgsend() 494 memset(cmsgp, 0, cmsg_space(sizeof(char))); in cmsgsend() 495 cmsgp->cmsg_level = level; in cmsgsend() [all …]
|
| H A D | socket.c | 1067 struct cmsghdr *cmsgp; in cmsg_space() 1078 cmsgp = (struct cmsghdr *)dummybuf; in cmsg_space() 1079 cmsgp->cmsg_len = cmsg_len(len); in cmsg_space() 1081 cmsgp = CMSG_NXTHDR(&msg, cmsgp); in cmsg_space() 1082 if (cmsgp != NULL) { in cmsg_space() 1083 return ((char *)cmsgp - (char *)msg.msg_control); in cmsg_space() 1097 struct cmsghdr *cmsgp; in process_cmsg() local 1138 cmsgp = CMSG_FIRSTHDR(msg); in process_cmsg() 1139 while (cmsgp != NULL) { in process_cmsg() 1140 socket_log(sock, NULL, TRACE, "processing cmsg %p", cmsgp); in process_cmsg() [all …]
|
| /netbsd-src/external/mpl/dhcp/dist/common/ |
| H A D | socket.c | 788 struct cmsghdr *cmsgp; in CMSG_SPACE() local 803 cmsgp = (struct cmsghdr *)&dummybuf; in CMSG_SPACE() 804 cmsgp->cmsg_len = CMSG_LEN(len); in CMSG_SPACE() 806 cmsgp = CMSG_NXTHDR(&msg, cmsgp); in CMSG_SPACE() 807 if (cmsgp != NULL) { in CMSG_SPACE() 808 return (char *)cmsgp - (char *)msg.msg_control; in CMSG_SPACE()
|
| /netbsd-src/lib/libc/net/ |
| H A D | ip6opt.c | 94 inet6_option_init(void *bp, struct cmsghdr **cmsgp, int type) in inet6_option_init() argument 99 _DIAGASSERT(cmsgp != NULL); in inet6_option_init() 111 *cmsgp = ch; in inet6_option_init()
|