diff options
author | 2015-05-23 12:52:59 +0000 | |
---|---|---|
committer | 2015-05-23 12:52:59 +0000 | |
commit | 902e415d3bcc38e6d3af45e9cbcf4504834f5dae (patch) | |
tree | 14a564ac5f3bcf53c4361f1dfa5b3572e12329ec /sys/netinet/ip_output.c | |
parent | introduce ipsec-id bundles and use them for ipsecflowinfo, (diff) | |
download | wireguard-openbsd-902e415d3bcc38e6d3af45e9cbcf4504834f5dae.tar.xz wireguard-openbsd-902e415d3bcc38e6d3af45e9cbcf4504834f5dae.zip |
remove PACKET_TAG_IPSEC_PENDING_TDB, it is never set; ok mikeb@
Diffstat (limited to 'sys/netinet/ip_output.c')
-rw-r--r-- | sys/netinet/ip_output.c | 21 |
1 files changed, 3 insertions, 18 deletions
diff --git a/sys/netinet/ip_output.c b/sys/netinet/ip_output.c index 4ec5b23e667..625c69578a1 100644 --- a/sys/netinet/ip_output.c +++ b/sys/netinet/ip_output.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ip_output.c,v 1.280 2015/05/13 10:42:46 jsg Exp $ */ +/* $OpenBSD: ip_output.c,v 1.281 2015/05/23 12:52:59 markus Exp $ */ /* $NetBSD: ip_output.c,v 1.28 1996/02/13 23:43:07 christos Exp $ */ /* @@ -229,23 +229,8 @@ reroute: goto done_spd; /* Do we have any pending SAs to apply ? */ - mtag = m_tag_find(m, PACKET_TAG_IPSEC_PENDING_TDB, NULL); - if (mtag != NULL) { -#ifdef DIAGNOSTIC - if (mtag->m_tag_len != sizeof (struct tdb_ident)) - panic("ip_output: tag of length %hu (should be %zu", - mtag->m_tag_len, sizeof (struct tdb_ident)); -#endif - tdbi = (struct tdb_ident *)(mtag + 1); - tdb = gettdb(tdbi->rdomain, - tdbi->spi, &tdbi->dst, tdbi->proto); - if (tdb == NULL) - error = -EINVAL; - m_tag_delete(m, mtag); - } - else - tdb = ipsp_spd_lookup(m, AF_INET, hlen, &error, - IPSP_DIRECTION_OUT, NULL, inp, ipsecflowinfo); + tdb = ipsp_spd_lookup(m, AF_INET, hlen, &error, + IPSP_DIRECTION_OUT, NULL, inp, ipsecflowinfo); if (tdb == NULL) { if (error == 0) { |