Searched refs:cm (Results 1 - 6 of 6) sorted by relevance
/darwin-on-arm/xnu/bsd/kern/ |
H A D | uipc_usrreq.c | 1821 struct cmsghdr *cm = mtod(rights, struct cmsghdr *); local 1822 struct fileglob **rp = (struct fileglob **)(cm + 1); 1823 int *fds = (int *)(cm + 1); 1826 int newfds = (cm->cmsg_len - sizeof (*cm)) / sizeof (int); 1930 struct cmsghdr *cm = mtod(control, struct cmsghdr *); local 1938 if (cm->cmsg_type != SCM_RIGHTS || cm->cmsg_level != SOL_SOCKET || 1939 (socklen_t)cm->cmsg_len != (socklen_t)control->m_len) { 1942 oldfds = (cm 2243 struct cmsghdr *cm; local [all...] |
H A D | uipc_socket.c | 2237 struct mbuf *cm = NULL, *cmn; local 2238 struct mbuf **cme = &cm; 2298 while (cm != NULL) { 2301 cmn = cm->m_next; 2302 cm->m_next = NULL; 2303 cmsg_type = mtod(cm, struct cmsghdr *)->cmsg_type; 2322 error = (*pr->pr_domain->dom_externalize)(cm); 2329 *controlp = cm; 2333 (void) m_free(cm); 2335 cm [all...] |
/darwin-on-arm/xnu/bsd/netinet/ |
H A D | in_tclass.c | 714 struct cmsghdr *cm; local 717 for (cm = M_FIRST_CMSGHDR(control); cm != NULL; 718 cm = M_NXT_CMSGHDR(control, cm)) { 721 if (cm->cmsg_len < sizeof (struct cmsghdr)) 724 if (cm->cmsg_level != SOL_SOCKET || 725 cm->cmsg_type != SO_TRAFFIC_CLASS) 727 if (cm->cmsg_len != CMSG_LEN(sizeof (int))) 730 tc = *(int *)(void *)CMSG_DATA(cm); [all...] |
H A D | udp_usrreq.c | 1232 struct cmsghdr *cm = 0; local 1246 for (cm = M_FIRST_CMSGHDR(control); cm; cm = M_NXT_CMSGHDR(control, cm)) { 1247 if (cm->cmsg_len < sizeof(struct cmsghdr) || cm->cmsg_len > control->m_len) 1250 if (cm->cmsg_level != IPPROTO_IP || cm->cmsg_type != IP_PKTINFO) 1253 if (cm [all...] |
/darwin-on-arm/xnu/bsd/netinet6/ |
H A D | ip6_output.c | 3053 struct cmsghdr *cm = 0; local 3085 for (cm = M_FIRST_CMSGHDR(control); cm; cm = M_NXT_CMSGHDR(control, cm)) { 3088 if (cm->cmsg_len < sizeof(struct cmsghdr) || cm->cmsg_len > control->m_len) 3090 if (cm->cmsg_level != IPPROTO_IPV6) 3093 error = ip6_setpktopt(cm->cmsg_type, CMSG_DATA(cm), [all...] |
/darwin-on-arm/xnu/bsd/net/ |
H A D | pf.c | 5451 struct pf_pptp_ctrl_msg cm; local 5474 plen = min(sizeof (cm), m->m_pkthdr.len - off); 5478 m_copydata(m, off, plen, &cm); 5480 if (ntohl(cm.hdr.magic) != PF_PPTP_MAGIC_NUMBER) 5482 if (ntohs(cm.hdr.type) != 1) 5564 ct = ntohs(cm.ctrl.type); 5568 *pns_call_id = cm.msg.call_out_req.call_id; 5571 spoof_call_id = &cm.msg.call_out_req.call_id; 5575 *pac_call_id = cm.msg.call_out_rpy.call_id; 5579 &cm [all...] |
Completed in 54 milliseconds