diff options
author | ae <ae@FreeBSD.org> | 2015-06-02 03:14:42 +0000 |
---|---|---|
committer | ae <ae@FreeBSD.org> | 2015-06-02 03:14:42 +0000 |
commit | fcbaea954867d54540644ca91c5c45fa835060d6 (patch) | |
tree | 363e3402c6231f65ac872079c15244ba777cd8c8 /sys/netipsec/key.c | |
parent | f780971d9351b1bff9f79ea9876a4eb1d3def6ba (diff) | |
download | FreeBSD-src-fcbaea954867d54540644ca91c5c45fa835060d6.zip FreeBSD-src-fcbaea954867d54540644ca91c5c45fa835060d6.tar.gz |
MFC r275392:
Remove route chaching support from ipsec code. It isn't used for some time.
* remove sa_route_union declaration and route_cache member from struct secashead;
* remove key_sa_routechange() call from ICMP and ICMPv6 code;
* simplify ip_ipsec_mtu();
* remove #include <net/route.h>;
Sponsored by: Yandex LLC
Diffstat (limited to 'sys/netipsec/key.c')
-rw-r--r-- | sys/netipsec/key.c | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/sys/netipsec/key.c b/sys/netipsec/key.c index 1927373..d93c1a3 100644 --- a/sys/netipsec/key.c +++ b/sys/netipsec/key.c @@ -58,7 +58,6 @@ #include <sys/syslog.h> #include <net/if.h> -#include <net/route.h> #include <net/raw_cb.h> #include <net/vnet.h> @@ -2766,10 +2765,6 @@ key_delsah(sah) /* remove from tree of SA index */ if (__LIST_CHAINED(sah)) LIST_REMOVE(sah, chain); - if (sah->route_cache.sa_route.ro_rt) { - RTFREE(sah->route_cache.sa_route.ro_rt); - sah->route_cache.sa_route.ro_rt = (struct rtentry *)NULL; - } free(sah, M_IPSEC_SAH); } } @@ -7893,26 +7888,6 @@ key_sa_recordxfer(sav, m) return; } -/* dumb version */ -void -key_sa_routechange(dst) - struct sockaddr *dst; -{ - struct secashead *sah; - struct route *ro; - - SAHTREE_LOCK(); - LIST_FOREACH(sah, &V_sahtree, chain) { - ro = &sah->route_cache.sa_route; - if (ro->ro_rt && dst->sa_len == ro->ro_dst.sa_len - && bcmp(dst, &ro->ro_dst, dst->sa_len) == 0) { - RTFREE(ro->ro_rt); - ro->ro_rt = (struct rtentry *)NULL; - } - } - SAHTREE_UNLOCK(); -} - static void key_sa_chgstate(struct secasvar *sav, u_int8_t state) { |