Searched refs:spidx (Results 1 - 6 of 6) sorted by last modified time

/freebsd-head/sys/netipsec/
H A Dkey.c178 struct secpolicyindex spidx; /* secpolicyindex */ member in struct:spdcache_entry
619 static struct secpolicy *key_do_allocsp(struct secpolicyindex *spidx, u_int dir);
741 const struct secpolicyindex *spidx,
854 key_do_allocsp(struct secpolicyindex *spidx, u_int dir) argument
859 IPSEC_ASSERT(spidx != NULL, ("null spidx"));
865 if (key_cmpspidx_withmask(&sp->spidx, spidx)) {
882 key_allocsp(struct secpolicyindex *spidx, u_int dir) argument
890 sp = key_do_allocsp(spidx, di
1402 key_getsp(struct secpolicyindex *spidx) argument
1942 struct secpolicyindex spidx; local
2163 struct secpolicyindex spidx; local
6883 key_newspacq(struct secpolicyindex *spidx) argument
6908 key_getspacq(struct secpolicyindex *spidx) argument
8201 spdcache_entry_alloc(const struct secpolicyindex *spidx, struct secpolicy *sp) argument
[all...]
H A Dipsec.h81 struct secpolicyindex spidx; /* selector */ member in struct:secpolicy
133 struct secpolicyindex spidx; member in struct:secspacq
H A Dipsec.c491 ipsec4_get_ulp(const struct mbuf *m, struct secpolicyindex *spidx, argument
524 spidx->ul_proto = nxt;
530 spidx->src.sin.sin_port = th.th_sport;
531 spidx->dst.sin.sin_port = th.th_dport;
534 spidx->ul_proto = nxt;
540 spidx->src.sin.sin_port = uh.uh_sport;
541 spidx->dst.sin.sin_port = uh.uh_dport;
554 spidx->ul_proto = nxt;
559 spidx->ul_proto = IPSEC_ULPROTO_ANY;
561 spidx
568 ipsec4_setspidx_ipaddr(const struct mbuf *m, struct secpolicyindex *spidx) argument
580 struct secpolicyindex spidx; local
677 ipsec6_get_ulp(const struct mbuf *m, struct secpolicyindex *spidx, int needport) argument
737 ipsec6_setspidx_ipaddr(const struct mbuf *m, struct secpolicyindex *spidx) argument
749 struct secpolicyindex spidx; local
1160 struct secpolicyindex spidx; local
[all...]
H A Dipsec_pcb.c129 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 Dkey_debug.c731 kdebug_secpolicyindex(&sp->spidx, " ");
742 kdebug_secpolicyindex(struct secpolicyindex *spidx, const char *indent) argument
746 IPSEC_ASSERT(spidx != NULL, ("null spidx"));
749 printf("spidx { dir=%s ul_proto=",
750 kdebug_secpolicyindex_dir(spidx->dir));
751 if (spidx->ul_proto == IPSEC_ULPROTO_ANY)
754 printf("%u ", spidx->ul_proto);
755 printf("%s/%u -> ", ipsec_address(&spidx->src, buf, sizeof(buf)),
756 spidx
[all...]
/freebsd-head/sys/net/
H A Dif_ipsec.c867 sp[i]->spidx.dir = IPSEC_DIR_INBOUND;
871 sp[i]->spidx.dir = IPSEC_DIR_OUTBOUND;
875 sp[i]->spidx.ul_proto = IPSEC_ULPROTO_ANY;
878 sp[i]->spidx.src.sa.sa_family =
879 sp[i]->spidx.dst.sa.sa_family = AF_INET;
880 sp[i]->spidx.src.sa.sa_len =
881 sp[i]->spidx.dst.sa.sa_len =
887 sp[i]->spidx.src.sa.sa_family =
888 sp[i]->spidx.dst.sa.sa_family = AF_INET6;
889 sp[i]->spidx
[all...]

Completed in 111 milliseconds