diff options
author | Markus Friedl <markus@cvs.openbsd.org> | 2015-04-16 19:24:14 +0000 |
---|---|---|
committer | Markus Friedl <markus@cvs.openbsd.org> | 2015-04-16 19:24:14 +0000 |
commit | 77cca401b31b5187e51bc7cb2c60aab7192b9c44 (patch) | |
tree | 7f4e83d1d6c6d582ce869c47ebd6a9ce01fd3c46 /sys/netinet/udp_usrreq.c | |
parent | 80b5cfb7f436b85c2113145ae4211b759e518677 (diff) |
remove unfinished/unused support for socket-attached ipsec-policies
ok mikeb
Diffstat (limited to 'sys/netinet/udp_usrreq.c')
-rw-r--r-- | sys/netinet/udp_usrreq.c | 27 |
1 files changed, 1 insertions, 26 deletions
diff --git a/sys/netinet/udp_usrreq.c b/sys/netinet/udp_usrreq.c index 2ea8666d5fc..ece64632ec8 100644 --- a/sys/netinet/udp_usrreq.c +++ b/sys/netinet/udp_usrreq.c @@ -1,4 +1,4 @@ -/* $OpenBSD: udp_usrreq.c,v 1.197 2015/04/14 12:22:15 mikeb Exp $ */ +/* $OpenBSD: udp_usrreq.c,v 1.198 2015/04/16 19:24:13 markus Exp $ */ /* $NetBSD: udp_usrreq.c,v 1.28 1996/03/16 23:54:03 christos Exp $ */ /* @@ -614,34 +614,9 @@ udp_input(struct mbuf *m, ...) udpstat.udps_nosec++; goto bad; } - - /* Latch SA only if the socket is connected */ - if (inp->inp_tdb_in != tdb && - (inp->inp_socket->so_state & SS_ISCONNECTED)) { - if (tdb) { - tdb_add_inp(tdb, inp, 1); - if (inp->inp_ipo == NULL) { - inp->inp_ipo = ipsec_add_policy(inp, - srcsa.sa.sa_family, IPSP_DIRECTION_OUT); - if (inp->inp_ipo == NULL) { - goto bad; - } - } - if (inp->inp_ipo->ipo_dstid == NULL && - tdb->tdb_srcid != NULL) { - inp->inp_ipo->ipo_dstid = tdb->tdb_srcid; - tdb->tdb_srcid->ref_count++; - } - } else { /* Just reset */ - TAILQ_REMOVE(&inp->inp_tdb_in->tdb_inp_in, inp, - inp_tdb_in_next); - inp->inp_tdb_in = NULL; - } - } /* create ipsec options while we know that tdb cannot be modified */ if (tdb) ipsecflowinfo = tdb->tdb_spi; - #endif /*IPSEC */ opts = NULL; |