/freebsd/sys/netpfil/ipfilter/netinet/ |
H A D | ip_ipsec_pxy.c | 134 ipsec_pxy_t *ipsec; in ipf_p_ipsec_new() local 162 KMALLOC(ipsec, ipsec_pxy_t *); in ipf_p_ipsec_new() 163 if (ipsec == NULL) in ipf_p_ipsec_new() 168 KFREE(ipsec); in ipf_p_ipsec_new() 172 aps->aps_data = ipsec; in ipf_p_ipsec_new() 173 aps->aps_psiz = sizeof(*ipsec); in ipf_p_ipsec_new() 174 bzero((char *)ipsec, sizeof(*ipsec)); in ipf_p_ipsec_new() 176 ipsec->ipsc_rule = ipn; in ipf_p_ipsec_new() 223 bcopy(ptr, (char *)ipsec->ipsc_icookie, sizeof(ipsec_cookie_t)); in ipf_p_ipsec_new() 225 bcopy(ptr, (char *)ipsec->ipsc_rcookie, sizeof(ipsec_cookie_t)); in ipf_p_ipsec_new() [all …]
|
/freebsd/sys/dev/mlx5/mlx5_fpga/ |
H A D | mlx5fpga_ipsec.c | 143 spin_lock_irqsave(&fdev->ipsec->pending_cmds_lock, flags); in mlx5_fpga_ipsec_recv() 144 context = list_first_entry_or_null(&fdev->ipsec->pending_cmds, in mlx5_fpga_ipsec_recv() 149 spin_unlock_irqrestore(&fdev->ipsec->pending_cmds_lock, flags); in mlx5_fpga_ipsec_recv() 183 if (!fdev || !fdev->ipsec) in mlx5_fpga_ipsec_sa_cmd_exec() 196 spin_lock_irqsave(&fdev->ipsec->pending_cmds_lock, flags); in mlx5_fpga_ipsec_sa_cmd_exec() 197 list_add_tail(&context->list, &fdev->ipsec->pending_cmds); in mlx5_fpga_ipsec_sa_cmd_exec() 198 spin_unlock_irqrestore(&fdev->ipsec->pending_cmds_lock, flags); in mlx5_fpga_ipsec_sa_cmd_exec() 202 res = mlx5_fpga_sbu_conn_sendmsg(fdev->ipsec->conn, &context->buf); in mlx5_fpga_ipsec_sa_cmd_exec() 206 spin_lock_irqsave(&fdev->ipsec->pending_cmds_lock, flags); in mlx5_fpga_ipsec_sa_cmd_exec() 208 spin_unlock_irqrestore(&fdev->ipsec->pending_cmds_lock, flags); in mlx5_fpga_ipsec_sa_cmd_exec() [all …]
|
/freebsd/sys/dev/mlx5/mlx5_accel/ |
H A D | mlx5_ipsec_fs.c | 523 struct mlx5e_ipsec *ipsec = sa_entry->ipsec; in rx_add_rule() local 532 rx = (attrs->family == AF_INET) ? ipsec->rx_ipv4 : ipsec->rx_ipv6; in rx_add_rule() 949 static int tx_get(struct mlx5_core_dev *mdev, struct mlx5e_ipsec *ipsec, in tx_get() argument 966 static void tx_put(struct mlx5e_ipsec *ipsec, struct mlx5e_ipsec_tx *tx) in tx_put() argument 975 struct mlx5e_ipsec *ipsec) in tx_ft_get() argument 977 struct mlx5e_ipsec_tx *tx = ipsec->tx; in tx_ft_get() 981 err = tx_get(mdev, ipsec, tx); in tx_ft_get() 990 struct mlx5e_ipsec *ipsec, in tx_ft_get_policy() argument 993 struct mlx5e_ipsec_tx *tx = ipsec->tx; in tx_ft_get_policy() 998 err = tx_get(mdev, ipsec, tx); in tx_ft_get_policy() [all …]
|
H A D | ipsec.h | 158 struct mlx5e_ipsec *ipsec; member 199 struct mlx5e_ipsec *ipsec; member 210 int mlx5e_ipsec_aso_init(struct mlx5e_ipsec *ipsec); 211 void mlx5e_ipsec_aso_cleanup(struct mlx5e_ipsec *ipsec); 221 return sa_entry->ipsec->mdev; in mlx5e_ipsec_sa2dev() 227 return pol_entry->ipsec->mdev; in mlx5e_ipsec_pol2dev() 234 int mlx5e_accel_ipsec_fs_init(struct mlx5e_ipsec *ipsec); 235 void mlx5e_accel_ipsec_fs_cleanup(struct mlx5e_ipsec *ipsec);
|
H A D | mlx5_ipsec.c | 105 queue_delayed_work(sa_entry->ipsec->wq, &dwork->dwork, in mlx5e_ipsec_handle_counters() 337 struct mlx5e_ipsec *ipsec = priv->ipsec; in mlx5e_if_sa_newkey_onedir() local 341 if (priv->gone != 0 || ipsec == NULL) in mlx5e_if_sa_newkey_onedir() 365 sa_entry->ipsec = ipsec; in mlx5e_if_sa_newkey_onedir() 398 queue_delayed_work(ipsec->wq, &sa_entry->dwork->dwork, MLX5_IPSEC_RESCHED); in mlx5e_if_sa_newkey_onedir() 664 if (priv->gone || !priv->ipsec) in mlx5e_if_spd_install() 676 pol_entry->ipsec = priv->ipsec; in mlx5e_if_spd_install() 706 struct mlx5e_ipsec *pipsec = priv->ipsec; in mlx5e_ipsec_cleanup() 714 priv->ipsec = NULL; in mlx5e_ipsec_cleanup() 809 priv->ipsec = pipsec; in mlx5e_ipsec_init()
|
/freebsd/sbin/ipf/libipf/ |
H A D | printaps.c | 19 ipsec_pxy_t ipsec; in printaps() local 96 (ap.aps_psiz == sizeof(ipsec))) { in printaps() 97 if (kmemcpy((char *)&ipsec, (long)ap.aps_data, sizeof(ipsec))) in printaps() 101 (u_int)ntohl(ipsec.ipsc_icookie[0]), in printaps() 102 (u_int)ntohl(ipsec.ipsc_icookie[1]), in printaps() 103 (u_int)ntohl(ipsec.ipsc_rcookie[0]), in printaps() 104 (u_int)ntohl(ipsec.ipsc_rcookie[1]), in printaps() 105 ipsec.ipsc_rckset ? "(Set)" : "(Not set)"); in printaps()
|
/freebsd/tests/sys/netipsec/tunnel/ |
H A D | utils.subr | 10 if ! sysctl -q kern.features.ipsec >/dev/null ; then 11 atf_skip "This test requires ipsec" 102 printf " ipsec esp/tunnel/${SRC_GW}-${DST_GW}/require;\n" 105 printf " ipsec esp/tunnel/${DST_GW}-${SRC_GW}/require;\n" 110 ) > ${TMPDIR}/ipsec.${jname}.conf 119 atf_check -s exit:0 -o ignore jexec ipsecA setkey -f ${TMPDIR}/ipsec.ipsecA.conf 121 atf_check -s exit:0 -o ignore jexec ipsecB setkey -f ${TMPDIR}/ipsec.ipsecB.conf 122 # Check ipsec tunnel
|
/freebsd/sys/netipsec/ |
H A D | ipsec_mod.c | 145 DECLARE_MODULE(ipsec, ipsec_mod, SI_SUB_PROTO_DOMAIN, SI_ORDER_ANY); 146 MODULE_VERSION(ipsec, 1); 148 MODULE_DEPEND(ipsec, ipsec_support, 1, 1, 1);
|
/freebsd/sys/netinet/ |
H A D | in_kdtrace.h | 337 SDT_PROBE_DECLARE(mib, ipsec, count, ips_in_polvio); 338 SDT_PROBE_DECLARE(mib, ipsec, count, ips_in_nomem); 339 SDT_PROBE_DECLARE(mib, ipsec, count, ips_in_inval); 340 SDT_PROBE_DECLARE(mib, ipsec, count, ips_out_polvio); 341 SDT_PROBE_DECLARE(mib, ipsec, count, ips_out_nosa); 342 SDT_PROBE_DECLARE(mib, ipsec, count, ips_out_nomem); 343 SDT_PROBE_DECLARE(mib, ipsec, count, ips_out_noroute); 344 SDT_PROBE_DECLARE(mib, ipsec, count, ips_out_inval); 345 SDT_PROBE_DECLARE(mib, ipsec, count, ips_out_bundlesa); 347 SDT_PROBE_DECLARE(mib, ipsec, count, ips_spdcache_hits); [all …]
|
/freebsd/sbin/setkey/ |
H A D | sample.cf | 46 spdadd fec0::10[any] fec0::11[110] tcp -P out ipsec 48 spdadd fec0::11[110] fec0::10[any] tcp -P in ipsec 72 spdadd 10.0.1.0/24 10.0.2.0/24 any -P out ipsec 74 spdadd 10.0.2.0/24 10.0.1.0/24 any -P in ipsec 89 spdadd 10.0.2.0/24 10.0.1.0/24 any -P out ipsec 91 spdadd 10.0.1.0/24 10.0.2.0/24 any -P in ipsec 112 spdadd fec0:0:0:1::/64 fec0:0:0:2::/64 any -P out ipsec 115 spdadd fec0:0:0:2::/64 fec0:0:0:1::/64 any -P in ipsec 147 spdadd fec0:0:0:1::1[any] fec0:0:0:2::2[80] tcp -P out ipsec 150 spdadd fec0:0:0:2::1[80] fec0:0:0:1::1[any] tcp -P in ipsec
|
/freebsd/tools/build/options/ |
H A D | WITHOUT_IPSEC_SUPPORT | 2 .Xr ipsec 4 5 .Xr ipsec 4
|
/freebsd/sys/modules/ipsec/ |
H A D | Makefile | 3 KMOD= ipsec 4 SRCS= if_ipsec.c ipsec.c ipsec_input.c ipsec_mbuf.c \
|
/freebsd/usr.bin/telnet/ |
H A D | Makefile | 25 LIBADD+= ipsec 30 LIBADD+= mp crypto ipsec pam
|
/freebsd/sys/contrib/device-tree/Bindings/crypto/ |
H A D | picochip-spacc.txt | 7 - compatible : "picochip,spacc-ipsec" for the IPSEC offload engine 16 compatible = "picochip,spacc-ipsec";
|
/freebsd/tools/regression/netinet/tcpconnect/ |
H A D | README.tcp-md5 | 6 * add this to /etc/ipsec.conf (the md5 'secret' is just a sample) 11 and apply it with sh /etc/rc.d/ipsec start
|
/freebsd/tests/sys/netpfil/pf/ |
H A D | if_enc.sh | 61 if ! sysctl -q kern.features.ipsec >/dev/null ; then 147 jexec bgw sysctl net.inet.ipsec.filtertunnel=0
|
/freebsd/usr.bin/nc/ |
H A D | Makefile | 9 LIBADD= ipsec
|
/freebsd/usr.sbin/rrenumd/ |
H A D | Makefile | 25 LIBADD= ipsec
|
/freebsd/usr.sbin/inetd/ |
H A D | Makefile | 25 LIBADD+= ipsec
|
/freebsd/usr.sbin/traceroute/ |
H A D | Makefile | 19 LIBADD+= ipsec
|
/freebsd/usr.sbin/traceroute6/ |
H A D | Makefile | 36 LIBADD+= ipsec
|
/freebsd/lib/libipsec/ |
H A D | Makefile | 33 LIB= ipsec
|
/freebsd/sys/contrib/device-tree/src/mips/brcm/ |
H A D | bcm6368.dtsi | 231 clock-names = "ipsec"; 234 reset-names = "ipsec";
|
/freebsd/libexec/rc/ |
H A D | netstart | 43 /etc/rc.d/ipsec ${_start}
|
/freebsd/sbin/ping/ |
H A D | Makefile | 33 LIBADD+= ipsec
|