Lines Matching defs:cmsgp
1003 struct cmsghdr *cmsgp;
1014 cmsgp = (struct cmsghdr *)dummybuf;
1015 cmsgp->cmsg_len = cmsg_len(len);
1017 cmsgp = CMSG_NXTHDR(&msg, cmsgp);
1018 if (cmsgp != NULL)
1019 return ((char *)cmsgp - (char *)msg.msg_control);
1032 struct cmsghdr *cmsgp;
1076 cmsgp = CMSG_FIRSTHDR(msg);
1077 while (cmsgp != NULL) {
1080 "processing cmsg %p", cmsgp);
1083 if (cmsgp->cmsg_level == IPPROTO_IPV6
1084 && cmsgp->cmsg_type == IPV6_PKTINFO) {
1086 pktinfop = (struct in6_pktinfo *)CMSG_DATA(cmsgp);
1102 if (cmsgp->cmsg_level == SOL_SOCKET
1103 && cmsgp->cmsg_type == SCM_TIMESTAMP) {
1105 timevalp = CMSG_DATA(cmsgp);
1115 cmsgp = CMSG_NXTHDR(msg, cmsgp);
1215 struct cmsghdr *cmsgp;
1227 cmsgp = (struct cmsghdr *)sock->sendcmsgbuf;
1228 cmsgp->cmsg_level = IPPROTO_IPV6;
1229 cmsgp->cmsg_type = IPV6_PKTINFO;
1230 cmsgp->cmsg_len = cmsg_len(sizeof(struct in6_pktinfo));
1231 pktinfop = (struct in6_pktinfo *)CMSG_DATA(cmsgp);
1239 cmsgp = (struct cmsghdr *)(sock->sendcmsgbuf +
1244 cmsgp->cmsg_level = IPPROTO_IPV6;
1245 cmsgp->cmsg_type = IPV6_USE_MIN_MTU;
1246 cmsgp->cmsg_len = cmsg_len(sizeof(use_min_mtu));
1247 memmove(CMSG_DATA(cmsgp), &use_min_mtu, sizeof(use_min_mtu));