Lines Matching refs:currsp
289 struct secpolicy *currsp = NULL; /* policy on socket */
345 currsp = pcbsp->sp_in;
348 currsp = pcbsp->sp_out;
355 if (currsp == NULL)
356 panic("ipsec4_getpolicybysock: currsp is NULL.\n");
360 switch (currsp->policy) {
363 currsp->refcnt++;
367 return currsp;
371 kernsp = key_allocsp(&currsp->spidx, dir);
400 currsp->refcnt++;
404 return currsp;
408 "Invalid policy for PCB %d\n", currsp->policy));
418 kernsp = key_allocsp(&currsp->spidx, dir);
431 switch (currsp->policy) {
435 currsp->policy));
457 currsp->refcnt++;
461 return currsp;
465 "Invalid policy for PCB %d\n", currsp->policy));
564 struct secpolicy *currsp = NULL; /* policy on socket */
593 currsp = pcbsp->sp_in;
596 currsp = pcbsp->sp_out;
603 if (currsp == NULL)
604 panic("ipsec6_getpolicybysock: currsp is NULL.\n");
608 switch (currsp->policy) {
611 currsp->refcnt++;
614 return currsp;
618 kernsp = key_allocsp(&currsp->spidx, dir);
645 currsp->refcnt++;
648 return currsp;
652 "Invalid policy for PCB %d\n", currsp->policy));
661 kernsp = key_allocsp(&currsp->spidx, dir);
673 switch (currsp->policy) {
677 currsp->policy));
697 currsp->refcnt++;
700 return currsp;
705 currsp->policy));