/darwin-on-arm/xnu/bsd/netat/ |
H A D | at_pcb.c | 120 register struct atpcb *pcb; local 122 pcb = (struct atpcb *)zalloc(atpcb_zone); 123 if (pcb == NULL) 125 bzero((caddr_t)pcb, sizeof(*pcb)); 129 pcb->ddp_flags |= DDPFLG_CHKSUM; 131 pcb->ddp_flags &= ~DDPFLG_CHKSUM; 133 pcb->ddp_flags |= DDPFLG_SLFSND; 135 pcb->ddp_flags &= ~DDPFLG_SLFSND; 137 pcb 171 struct atpcb *pcb; local [all...] |
H A D | ddp_usrreq.c | 83 struct atpcb *pcb = (struct atpcb *)((so)->so_pcb); local 92 pcb = (struct atpcb *)((so)->so_pcb); 93 pcb->pid = proc_selfpid(); 94 pcb->ddptype = (u_char) proto; /* set in socreate() */ 95 pcb->proto = ATPROTO_DDP; 105 struct atpcb *pcb = (struct atpcb *)((so)->so_pcb); local 107 if (pcb == NULL) 114 at_pcbdetach(pcb); 122 struct atpcb *pcb = (struct atpcb *)((so)->so_pcb); local 124 if (pcb 135 struct atpcb *pcb = (struct atpcb *)((so)->so_pcb); local 146 struct atpcb *pcb = (struct atpcb *)((so)->so_pcb); local 159 struct atpcb *pcb = (struct atpcb *)((so)->so_pcb); local 173 struct atpcb *pcb = (struct atpcb *)((so)->so_pcb); local 256 struct atpcb *pcb; local 282 struct atpcb *pcb; local 308 struct atpcb *pcb = (struct atpcb *)((so)->so_pcb); local [all...] |
/darwin-on-arm/xnu/bsd/net/ |
H A D | if_utun_crypto_ipsec.h | 37 #define IF_UTUN_GET_TX_CRYPTO_KEYS(pcb) LIST_FIRST(&pcb->utun_crypto_ctx[UTUN_CRYPTO_DIR_TO_IDX(UTUN_CRYPTO_DIR_OUT)].keys_listhead) 45 utun_cleanup_all_crypto_ipsec(struct utun_pcb *pcb); 51 utun_ctl_enable_crypto_ipsec(struct utun_pcb *pcb, utun_crypto_args_t *args); 57 utun_ctl_disable_crypto_ipsec(struct utun_pcb *pcb); 63 * pcb - the specified utun state info 69 utun_ctl_config_crypto_keys_ipsec(struct utun_pcb *pcb, 95 utun_pkt_ipsec_output(struct utun_pcb *pcb, mbuf_t *pkt); 98 utun_pkt_is_ipsec_keepalive(struct utun_pcb *pcb, mbuf_t *pkt, u_int16_t nxt, u_int32_t flags, size_t off); 101 utun_pkt_ipsec_input(struct utun_pcb *pcb, mbuf_ [all...] |
H A D | if_utun.c | 96 __private_extern__ errno_t utun_pkt_input (struct utun_pcb *pcb, mbuf_t m); 190 struct utun_pcb *pcb; local 195 pcb = utun_alloc(sizeof(*pcb)); 196 if (pcb == NULL) 200 bzero(pcb, sizeof(*pcb)); 201 *unitinfo = pcb; 202 pcb->utun_ctlref = kctlref; 203 pcb 420 struct utun_pcb *pcb = unitinfo; local 469 struct utun_pcb *pcb = unitinfo; local 560 struct utun_pcb *pcb = unitinfo; local 600 struct utun_pcb *pcb = ifnet_softc(interface); local 749 struct utun_pcb *pcb = ifnet_softc(interface); local 812 utun_pkt_input(struct utun_pcb *pcb, mbuf_t m) argument [all...] |
H A D | if_utun_crypto.c | 40 utun_cleanup_crypto (struct utun_pcb *pcb) argument 42 utun_cleanup_all_crypto_ipsec(pcb); 43 // utun_cleanup_all_crypto_dtls(pcb); 44 pcb->utun_flags &= ~UTUN_FLAGS_CRYPTO; 55 struct utun_pcb *pcb = unitinfo; local 90 utun_ctl_enable_crypto_ipsec(pcb, crypto_args); 96 crypto_ctx = &pcb->utun_crypto_ctx[idx]; 106 pcb->utun_flags |= (UTUN_FLAGS_CRYPTO | UTUN_FLAGS_CRYPTO_STOP_DATA_TRAFFIC); 119 struct utun_pcb *pcb = unitinfo; local 154 utun_ctl_disable_crypto_ipsec(pcb); 172 struct utun_pcb *pcb = unitinfo; local 255 struct utun_pcb *pcb = unitinfo; local 341 struct utun_pcb *pcb = unitinfo; local 413 struct utun_pcb *pcb = unitinfo; local 469 struct utun_pcb *pcb = unitinfo; local 518 utun_pkt_crypto_output(struct utun_pcb *pcb, mbuf_t *m) argument [all...] |
H A D | if_utun_crypto_ipsec.c | 58 extern errno_t utun_pkt_input (struct utun_pcb *pcb, mbuf_t m); 232 sav->refcnt--; // unlinked from pcb 297 struct utun_pcb *pcb, 356 (*sav)->utun_pcb = (__typeof__((*sav)->utun_pcb))pcb; 359 (*sav)->refcnt++; // for the pcb 375 (*sav)->refcnt--; // unlinked from pcb 416 utun_ctl_config_crypto_keys_ipsec_v1 (struct utun_pcb *pcb, argument 476 pcb, 581 utun_cleanup_all_crypto_ipsec (struct utun_pcb *pcb) argument 588 crypto_ctx = &pcb 295 utun_ipsec_alloc_sav(struct secashead *sah, struct secasvar **sav, struct utun_pcb *pcb, u_int8_t satype, u_int8_t alg_auth, u_int8_t alg_enc, u_int32_t flags, u_int8_t replay, u_int8_t *key_auth, u_int16_t key_auth_len, u_int8_t *key_enc, u_int16_t key_enc_len, u_int16_t natt_port, u_int32_t seq, u_int32_t spi, u_int32_t pid, u_int64_t lifetime_hard, u_int64_t lifetime_soft) argument 631 utun_ctl_enable_crypto_ipsec(__unused struct utun_pcb *pcb, utun_crypto_args_t *args) argument 649 utun_ctl_disable_crypto_ipsec(__unused struct utun_pcb *pcb) argument 661 utun_ctl_config_crypto_keys_ipsec(struct utun_pcb *pcb, utun_crypto_keys_args_t *args, utun_crypto_keys_t *crypto_keys) argument 697 utun_pkt_ipsec_output(struct utun_pcb *pcb, mbuf_t *pkt) argument 957 utun_pkt_is_ipsec_keepalive(struct utun_pcb *pcb, mbuf_t *pkt, u_int16_t nxt, u_int32_t flags, size_t offs) argument 1063 utun_pkt_ipsec_input(struct utun_pcb *pcb, mbuf_t *pkt, protocol_family_t family) argument [all...] |
H A D | if_utun_crypto.h | 290 utun_cleanup_crypto(struct utun_pcb *pcb); 349 utun_pkt_crypto_output(struct utun_pcb *pcb, mbuf_t *m);
|
/darwin-on-arm/xnu/osfmk/i386/ |
H A D | pcb_native.c | 122 pcb_t pcb = THREAD_TO_PCB(new); local 153 if (is_saved_state64(pcb->iss)) { 164 assert(is_saved_state64(pcb->iss)); 166 iss64 = (x86_saved_state64_tagged_t *) pcb->iss; 178 /* Interrupt stack is pcb */ 182 * Top of temporary sysenter stack points to pcb stack. 206 if ((pcb->cthread_self != 0) || (new->task != kernel_task)) { 207 if ((cdp->cpu_uber.cu_user_gs_base != pcb->cthread_self) || (pcb->cthread_self != rdmsr64(MSR_IA32_KERNEL_GS_BASE))) { 208 cdp->cpu_uber.cu_user_gs_base = pcb 521 pcb_t pcb = THREAD_TO_PCB(thread); local 640 register pcb_t pcb = THREAD_TO_PCB(thread); local [all...] |
H A D | fpu.c | 485 pcb_t pcb; local 498 pcb = THREAD_TO_PCB(thr_act); 505 simple_lock(&pcb->lock); 507 ifps = pcb->ifps; 508 pcb->ifps = 0; 510 simple_unlock(&pcb->lock); 520 simple_lock(&pcb->lock); 522 ifps = pcb->ifps; 525 simple_unlock(&pcb->lock); 531 pcb 608 pcb_t pcb; local 784 pcb_t pcb; local 839 pcb_t pcb; local 934 pcb_t pcb = THREAD_TO_PCB(thr_act); local 956 pcb_t pcb = THREAD_TO_PCB(thr_act); local [all...] |
H A D | bsd_i386_native.c | 164 pcb_t pcb = THREAD_TO_PCB(thread); local 179 pcb->cthread_desc = desc; 181 saved_state32(pcb->iss)->gs = USER_CTHREAD; 199 pcb_t pcb = THREAD_TO_PCB(current_thread()); local 206 pcb->cthread_self = self; 210 if ((cdp->cpu_uber.cu_user_gs_base != pcb->cthread_self) || 211 (pcb->cthread_self != rdmsr64(MSR_IA32_KERNEL_GS_BASE))) 226 * Swapping occurs inside the pcb.c file along with initialization 228 * pcb->uldt_selector variable will contain either 0 meaning the 230 * the FS register. pcb 250 pcb_t pcb; local [all...] |
H A D | pcb.c | 344 pcb_t pcb; local 346 pcb = THREAD_TO_PCB(thread); 347 ids = pcb->ids; 357 simple_lock(&pcb->lock); 359 if (pcb->ids == NULL) { 360 pcb->ids = ids; 361 simple_unlock(&pcb->lock); 363 simple_unlock(&pcb->lock); 378 pcb_t pcb; local 380 pcb [all...] |
H A D | trap.c | 1016 pcb_t pcb; local 1021 pcb = THREAD_TO_PCB(thread); 1022 if (pcb->ids) { 1030 x86_debug_state64_t *ids = pcb->ids; 1033 x86_debug_state32_t *ids = pcb->ids;
|
/darwin-on-arm/xnu/bsd/netinet/ |
H A D | in_pcb.c | 901 struct inpcb *pcb; local 911 pcb = in_pcblookup_hash(inp->inp_pcbinfo, sin->sin_addr, sin->sin_port, 924 if (pcb != NULL) { 925 in_pcb_checkstate(pcb, WNT_RELEASE, pcb == inp ? 1 : 0); 1225 /* if the address is gone keep the old route in the pcb */ 1378 * We may have found the pcb in the last lookup - check this first. 1510 * We may have found the pcb in the last lookup - check this first. 1747 * The pcb list will contain the pcb unti 1753 in_pcb_checkstate(struct inpcb *pcb, int mode, int locked) argument [all...] |
H A D | in_pcb.h | 93 * Common structure pcb for internet protocol implementation. 146 int inp_wantcnt; /* pcb wanted count. protected by pcb list lock */ 147 int inp_state; /* state of this pcb, in use, recycled, ready for recycling... */ 151 void *inp_ppcb; /* pointer to per-protocol pcb */ 208 int hash_element; /* Array index of pcb's hash list */ 280 _INPCB_PTR(caddr_t) inp_ppcb; /* pointer to per-protocol pcb */ 338 int hash_element; /* Array index of pcb's hash list */ 369 u_int64_t inp_ppcb; /* pointer to per-protocol pcb */ 416 u_int64_t inp_ppcb; /* pointer to per-protocol pcb */ [all...] |
H A D | ip_fw2.c | 2211 struct inpcb *pcb; local 2222 pcb = (oif) ? 2232 if (pcb == NULL || pcb->inp_socket == NULL) 2240 (kauth_cred_getuid(pcb->inp_socket->so_cred) == (uid_t)((ipfw_insn_u32 *)cmd)->d[0]); 2242 !socheckuid(pcb->inp_socket, 2249 kauth_cred_ismember_gid(pcb->inp_socket->so_cred, 2253 /* release reference on pcb */ 2254 in_pcb_checkstate(pcb, WNT_RELEASE, 0);
|
/darwin-on-arm/xnu/bsd/security/audit/ |
H A D | audit_arg.c | 593 struct inpcb *pcb; local 615 pcb = (struct inpcb *)so->so_pcb; 618 sin->sin_addr.s_addr = pcb->inp_faddr.s_addr; 619 sin->sin_port = pcb->inp_fport; 622 sin->sin_addr.s_addr = pcb->inp_laddr.s_addr; 623 sin->sin_port = pcb->inp_lport; 635 pcb = (struct inpcb *)so->so_pcb; 638 sin6->sin6_addr = pcb->in6p_faddr; 639 sin6->sin6_port = pcb->in6p_fport; 642 sin6->sin6_addr = pcb [all...] |
/darwin-on-arm/xnu/bsd/netinet6/ |
H A D | ipsec.c | 242 static int ipsec4_setspidx_inpcb(struct mbuf *, struct inpcb *pcb); 244 static int ipsec6_setspidx_in6pcb(struct mbuf *, struct in6pcb *pcb); 343 /* set spidx in pcb */ 348 /* set spidx in pcb */ 605 /* set spidx in pcb */ 843 ipsec4_setspidx_inpcb(m, pcb) 845 struct inpcb *pcb; 854 if (pcb == NULL) 856 if (pcb->inp_sp == NULL) 858 if (pcb [all...] |
H A D | in6_pcb.c | 495 struct inpcb *pcb; local 516 pcb = in6_pcblookup_hash(inp->inp_pcbinfo, &sin6->sin6_addr, 522 if (pcb != NULL) { 523 in_pcb_checkstate(pcb, WNT_RELEASE, pcb == inp ? 1 : 0); 1082 * Found. Check if pcb is still valid 1182 * Found. Check if pcb is still valid
|
/darwin-on-arm/xnu/bsd/netkey/ |
H A D | key.c | 1436 struct inpcb *pcb = sotoinpcb(so); 1439 if (pcb == NULL || pcb->inp_sp == NULL) 1441 key_freesp_so(&pcb->inp_sp->sp_in); 1442 key_freesp_so(&pcb->inp_sp->sp_out); 1450 struct inpcb *pcb = sotoinpcb(so); 1453 if (pcb == NULL || pcb->inp_sp == NULL) 1455 key_freesp_so(&pcb->inp_sp->sp_in); 1456 key_freesp_so(&pcb [all...] |