Lines Matching defs:pcb

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,
476 pcb,
581 utun_cleanup_all_crypto_ipsec (struct utun_pcb *pcb)
588 crypto_ctx = &pcb->utun_crypto_ctx[idx];
631 utun_ctl_enable_crypto_ipsec(__unused struct utun_pcb *pcb,
649 utun_ctl_disable_crypto_ipsec(__unused struct utun_pcb *pcb)
651 utun_cleanup_all_crypto_ipsec(pcb);
661 utun_ctl_config_crypto_keys_ipsec (struct utun_pcb *pcb,
666 return(utun_ctl_config_crypto_keys_ipsec_v1(pcb, args, crypto_keys));
697 utun_pkt_ipsec_output (struct utun_pcb *pcb, mbuf_t *pkt)
699 utun_crypto_keys_t *crypto_keys = IF_UTUN_GET_TX_CRYPTO_KEYS(pcb);
937 if (pcb->utun_ifp) {
938 ifnet_stat_increment_out(pcb->utun_ifp, 1, mbuf_pkthdr_len(new), 0);
957 utun_pkt_is_ipsec_keepalive (struct utun_pcb *pcb, mbuf_t *pkt, u_int16_t nxt, u_int32_t flags, size_t offs)
963 if (!pcb->utun_ctlref) {
968 if (!(pcb->utun_flags & UTUN_FLAGS_CRYPTO)) {
996 if (pcb->utun_ifp) {
997 ifnet_stat_increment_in(pcb->utun_ifp, 1, mbuf_pkthdr_len(*pkt), 0);
1049 result = ctl_enqueuembuf(pcb->utun_ctlref, pcb->utun_unit, *pkt, CTL_DATA_EOR);
1063 utun_pkt_ipsec_input (struct utun_pcb *pcb, mbuf_t *pkt, protocol_family_t family)
1069 if (!(pcb->utun_flags & UTUN_FLAGS_CRYPTO)) {
1074 if (!pcb->utun_ifp) {
1086 (void)utun_pkt_input(pcb, *pkt);