• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.5.8/xnu-1228.15.4/bsd/netkey/

Lines Matching defs:pcb

1357 		struct inpcb *pcb = sotoinpcb(so);
1360 if (pcb == NULL || pcb->inp_sp == NULL)
1362 key_freesp_so(&pcb->inp_sp->sp_in);
1363 key_freesp_so(&pcb->inp_sp->sp_out);
1371 struct inpcb *pcb = sotoinpcb(so);
1374 if (pcb == NULL || pcb->inp_sp == NULL)
1376 key_freesp_so(&pcb->inp_sp->sp_in);
1377 key_freesp_so(&pcb->inp_sp->sp_out);
1379 struct in6pcb *pcb = sotoin6pcb(so);
1382 if (pcb == NULL || pcb->in6p_sp == NULL)
1384 key_freesp_so(&pcb->in6p_sp->sp_in);
1385 key_freesp_so(&pcb->in6p_sp->sp_out);
8398 struct ipsecif_pcb *pcb;
8402 pcb = ipsecif_alloc(sizeof(*pcb));
8403 if (pcb == NULL)
8407 bzero(pcb, sizeof(*pcb));
8408 *unitinfo = pcb;
8409 pcb->ctlref = kctlref;
8410 pcb->unit = sac->sc_unit;
8411 printf("ipsecif_ctl_connect: creating unit ip%d\n", pcb->unit);
8416 ipsecif_init.unit = pcb->unit;
8423 ipsecif_init.softc = pcb;
8428 result = ifnet_allocate(&ipsecif_init, &pcb->ifp);
8431 ipsecif_free(pcb);
8437 ifnet_set_mtu(pcb->ifp, 1280);
8438 ifnet_set_flags(pcb->ifp, IFF_UP | IFF_MULTICAST | IFF_BROADCAST, 0xffff);
8439 // ifnet_set_flags(pcb->ifp, IFF_UP | IFF_MULTICAST | IFF_POINTOPOINT, 0xffff);
8442 result = ifnet_attach(pcb->ifp, NULL);
8445 ifnet_release(pcb->ifp);
8446 ipsecif_free(pcb);
8451 bpfattach(pcb->ifp, DLT_NULL, 4);
8624 struct ipsecif_pcb *pcb = unitinfo;
8625 ifnet_t ifp = pcb->ifp;
8628 pcb->ctlref = NULL;
8629 pcb->unit = 0;
8697 struct ipsecif_pcb *pcb = unitinfo;
8703 mbuf_pkthdr_setrcvif(m, pcb->ifp);
8705 if (pcb->mode & BPF_MODE_INPUT) {
8706 call_bpf_tap(pcb->ifp, pcb->tap, m);
8711 result = ifnet_input(pcb->ifp, m, &incs);
8713 ifnet_stat_increment_in(pcb->ifp, 0, 0, 1);
8727 struct ipsecif_pcb *pcb = ifnet_softc(interface);
8730 if (pcb->mode & BPF_MODE_OUTPUT) {
8731 call_bpf_tap(interface, pcb->tap, data);
8738 if (pcb->ctlref) {
8740 result = ctl_enqueuembuf(pcb->ctlref, pcb->unit, data, CTL_DATA_EOR);
8840 struct ipsecif_pcb *pcb = ifnet_softc(interface);
8842 pcb->mode = mode;
8843 pcb->tap = callback;
8852 struct ipsecif_pcb *pcb = ifnet_softc(interface);
8854 ipsecif_free(pcb);