Searched refs:spidx (Results 1 - 6 of 6) sorted by relevance
/freebsd-11-stable/sys/netipsec/ |
H A D | ipsec.c | 480 ipsec4_get_ulp(const struct mbuf *m, struct secpolicyindex *spidx, argument 513 spidx->ul_proto = nxt; 519 spidx->src.sin.sin_port = th.th_sport; 520 spidx->dst.sin.sin_port = th.th_dport; 523 spidx->ul_proto = nxt; 529 spidx->src.sin.sin_port = uh.uh_sport; 530 spidx->dst.sin.sin_port = uh.uh_dport; 543 spidx->ul_proto = nxt; 548 spidx->ul_proto = IPSEC_ULPROTO_ANY; 550 spidx 557 ipsec4_setspidx_ipaddr(const struct mbuf *m, struct secpolicyindex *spidx) argument 569 struct secpolicyindex spidx; local 666 ipsec6_get_ulp(const struct mbuf *m, struct secpolicyindex *spidx, int needport) argument 726 ipsec6_setspidx_ipaddr(const struct mbuf *m, struct secpolicyindex *spidx) argument 738 struct secpolicyindex spidx; local 1149 struct secpolicyindex spidx; local [all...] |
H A D | ipsec_pcb.c | 129 ipsec_setspidx_inpcb(struct inpcb *inp, struct secpolicyindex *spidx, argument 133 ipsec_setsockaddrs_inpcb(inp, &spidx->src, &spidx->dst, dir); 136 spidx->prefs = sizeof(struct in6_addr) << 3; 137 spidx->prefd = sizeof(struct in6_addr) << 3; 142 spidx->prefs = sizeof(struct in_addr) << 3; 143 spidx->prefd = sizeof(struct in_addr) << 3; 146 spidx->ul_proto = IPPROTO_TCP; /* XXX: currently only TCP uses this */ 147 spidx->dir = dir; 149 printf("%s: ", __func__); kdebug_secpolicyindex(spidx, NUL [all...] |
H A D | key.c | 807 key_allocsp(struct secpolicyindex *spidx, u_int dir) argument 812 IPSEC_ASSERT(spidx != NULL, ("null spidx")); 818 if (key_cmpspidx_withmask(&sp->spidx, spidx)) { 833 kdebug_secpolicyindex(spidx, NULL)); 1093 IPSEC_ASSERT(sp->spidx.dir == IPSEC_DIR_INBOUND || 1094 sp->spidx.dir == IPSEC_DIR_OUTBOUND, 1095 ("invalid direction %u", sp->spidx.dir)); 1107 TAILQ_REMOVE(&V_sptree[sp->spidx 1282 key_getsp(struct secpolicyindex *spidx) argument 1822 struct secpolicyindex spidx; local 2041 struct secpolicyindex spidx; local 6795 key_newspacq(struct secpolicyindex *spidx) argument 6820 key_getspacq(struct secpolicyindex *spidx) argument [all...] |
H A D | key_debug.c | 729 kdebug_secpolicyindex(&sp->spidx, " "); 740 kdebug_secpolicyindex(struct secpolicyindex *spidx, const char *indent) argument 744 IPSEC_ASSERT(spidx != NULL, ("null spidx")); 747 printf("spidx { dir=%s ul_proto=", 748 kdebug_secpolicyindex_dir(spidx->dir)); 749 if (spidx->ul_proto == IPSEC_ULPROTO_ANY) 752 printf("%u ", spidx->ul_proto); 753 printf("%s/%u -> ", ipsec_address(&spidx->src, buf, sizeof(buf)), 754 spidx [all...] |
H A D | ipsec.h | 79 struct secpolicyindex spidx; /* selector */ member in struct:secpolicy 131 struct secpolicyindex spidx; member in struct:secspacq
|
/freebsd-11-stable/sys/net/ |
H A D | if_ipsec.c | 745 sp[i]->spidx.dir = IPSEC_DIR_INBOUND; 749 sp[i]->spidx.dir = IPSEC_DIR_OUTBOUND; 753 sp[i]->spidx.ul_proto = IPSEC_ULPROTO_ANY; 756 sp[i]->spidx.src.sa.sa_family = 757 sp[i]->spidx.dst.sa.sa_family = AF_INET; 758 sp[i]->spidx.src.sa.sa_len = 759 sp[i]->spidx.dst.sa.sa_len = 765 sp[i]->spidx.src.sa.sa_family = 766 sp[i]->spidx.dst.sa.sa_family = AF_INET6; 767 sp[i]->spidx [all...] |
Completed in 85 milliseconds