Home | History | Annotate | Download | only in racoon

Lines Matching refs:cm

388 	struct cmsghdr *cm;
413 cm = (struct cmsghdr *)cmsgbuf;
414 m.msg_control = (caddr_t)cm;
425 for (cm = (struct cmsghdr *)CMSG_FIRSTHDR(&m);
426 m.msg_controllen != 0 && cm;
427 cm = (struct cmsghdr *)CMSG_NXTHDR(&m, cm)) {
430 "cmsg %d %d\n", cm->cmsg_level, cm->cmsg_type);)
434 && cm->cmsg_level == IPPROTO_IPV6
435 && cm->cmsg_type == IPV6_PKTINFO
437 pi = (struct in6_pktinfo *)(CMSG_DATA(cm));
460 && cm->cmsg_level == IPPROTO_IP
461 && cm->cmsg_type == IP_PKTINFO
463 struct in_pktinfo *pi = (struct in_pktinfo *)(CMSG_DATA(cm));
478 && cm->cmsg_level == IPPROTO_IPV6
479 && cm->cmsg_type == IPV6_RECVDSTADDR
486 memcpy(&sin6->sin6_addr, CMSG_DATA(cm),
496 && cm->cmsg_level == IPPROTO_IP
497 && cm->cmsg_type == IP_RECVDSTADDR
504 memcpy(&sin->sin_addr, CMSG_DATA(cm),
561 struct cmsghdr *cm;
592 cm = (struct cmsghdr *)cmsgbuf;
593 m.msg_control = (caddr_t)cm;
596 cm->cmsg_len = CMSG_LEN(sizeof(struct in6_pktinfo));
597 cm->cmsg_level = IPPROTO_IPV6;
598 cm->cmsg_type = IPV6_PKTINFO;
599 pi = (struct in6_pktinfo *)CMSG_DATA(cm);
633 struct cmsghdr *cm;
652 cm = (struct cmsghdr *)cmsgbuf;
653 m.msg_control = (caddr_t)cm;
656 cm->cmsg_len = CMSG_LEN(sizeof(struct in_pktinfo));
657 cm->cmsg_level = IPPROTO_IP;
658 cm->cmsg_type = IP_PKTINFO;
659 pi = (struct in_pktinfo *)CMSG_DATA(cm);