Lines Matching defs:pcb
40 utun_cleanup_crypto (struct utun_pcb *pcb)
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;
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;
154 utun_ctl_disable_crypto_ipsec(pcb);
160 pcb->utun_flags &= ~(UTUN_FLAGS_CRYPTO | UTUN_FLAGS_CRYPTO_STOP_DATA_TRAFFIC);
172 struct utun_pcb *pcb = unitinfo;
210 crypto_ctx = &pcb->utun_crypto_ctx[idx];
230 if ((err = utun_ctl_config_crypto_keys_ipsec(pcb, crypto_keys_args, crypto_keys))) {
255 struct utun_pcb *pcb = unitinfo;
293 crypto_ctx = &pcb->utun_crypto_ctx[idx];
341 struct utun_pcb *pcb = unitinfo;
377 crypto_ctx = &pcb->utun_crypto_ctx[idx];
413 struct utun_pcb *pcb = unitinfo;
447 if ((pcb->utun_flags & UTUN_FLAGS_CRYPTO) == 0) {
457 pcb->utun_flags |= UTUN_FLAGS_CRYPTO_STOP_DATA_TRAFFIC;
469 struct utun_pcb *pcb = unitinfo;
503 if ((pcb->utun_flags & UTUN_FLAGS_CRYPTO) == 0) {
513 pcb->utun_flags &= ~UTUN_FLAGS_CRYPTO_STOP_DATA_TRAFFIC;
518 utun_pkt_crypto_output (struct utun_pcb *pcb, mbuf_t *m)
521 if (!pcb->utun_crypto_ctx[idx].valid) {
522 printf("%s: context is invalid %d\n", __FUNCTION__, pcb->utun_crypto_ctx[idx].valid);
525 if (pcb->utun_crypto_ctx[idx].type == UTUN_CRYPTO_TYPE_IPSEC) {
526 return(utun_pkt_ipsec_output(pcb, m));
529 printf("%s: type is invalid %d\n", __FUNCTION__, pcb->utun_crypto_ctx[idx].type);