ip_ipsec.c (257176) | ip_ipsec.c (262763) |
---|---|
1/*- 2 * Copyright (c) 1982, 1986, 1988, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 14 unchanged lines hidden (view full) --- 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 */ 29 30#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 1982, 1986, 1988, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 14 unchanged lines hidden (view full) --- 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 */ 29 30#include <sys/cdefs.h> |
31__FBSDID("$FreeBSD: head/sys/netinet/ip_ipsec.c 257176 2013-10-26 17:58:36Z glebius $"); | 31__FBSDID("$FreeBSD: head/sys/netinet/ip_ipsec.c 262763 2014-03-05 01:17:47Z glebius $"); |
32 33#include "opt_ipsec.h" 34#include "opt_sctp.h" 35 36#include <sys/param.h> 37#include <sys/systm.h> 38#include <sys/errno.h> 39#include <sys/kernel.h> --- 192 unchanged lines hidden (view full) --- 232 * find the correct route for outer IPv4 233 * header, compute tunnel MTU. 234 */ 235 if (sp->req != NULL && 236 sp->req->sav != NULL && 237 sp->req->sav->sah != NULL) { 238 ro = &sp->req->sav->sah->route_cache.sa_route; 239 if (ro->ro_rt && ro->ro_rt->rt_ifp) { | 32 33#include "opt_ipsec.h" 34#include "opt_sctp.h" 35 36#include <sys/param.h> 37#include <sys/systm.h> 38#include <sys/errno.h> 39#include <sys/kernel.h> --- 192 unchanged lines hidden (view full) --- 232 * find the correct route for outer IPv4 233 * header, compute tunnel MTU. 234 */ 235 if (sp->req != NULL && 236 sp->req->sav != NULL && 237 sp->req->sav->sah != NULL) { 238 ro = &sp->req->sav->sah->route_cache.sa_route; 239 if (ro->ro_rt && ro->ro_rt->rt_ifp) { |
240 mtu = 241 ro->ro_rt->rt_rmx.rmx_mtu ? 242 ro->ro_rt->rt_rmx.rmx_mtu : | 240 mtu = ro->ro_rt->rt_mtu ? ro->ro_rt->rt_mtu : |
243 ro->ro_rt->rt_ifp->if_mtu; 244 mtu -= ipsechdr; 245 } 246 } 247 KEY_FREESP(&sp); 248 } 249 return mtu; 250} --- 145 unchanged lines hidden --- | 241 ro->ro_rt->rt_ifp->if_mtu; 242 mtu -= ipsechdr; 243 } 244 } 245 KEY_FREESP(&sp); 246 } 247 return mtu; 248} --- 145 unchanged lines hidden --- |