ipsec_output.c (223637) | ipsec_output.c (231852) |
---|---|
1/*- 2 * Copyright (c) 2002, 2003 Sam Leffler, Errno Consulting 3 * 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 --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * | 1/*- 2 * Copyright (c) 2002, 2003 Sam Leffler, Errno Consulting 3 * 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 --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * |
26 * $FreeBSD: head/sys/netipsec/ipsec_output.c 223637 2011-06-28 11:57:25Z bz $ | 26 * $FreeBSD: head/sys/netipsec/ipsec_output.c 231852 2012-02-17 02:39:58Z bz $ |
27 */ 28 29/* 30 * IPsec output processing. 31 */ 32#include "opt_inet.h" 33#include "opt_inet6.h" 34#include "opt_ipsec.h" --- 827 unchanged lines hidden (view full) --- 862 RTFREE(state->ro->ro_rt); 863 state->ro->ro_rt = NULL; 864 } 865 if (state->ro->ro_rt == NULL) { 866 bzero(dst6, sizeof(*dst6)); 867 dst6->sin6_family = AF_INET6; 868 dst6->sin6_len = sizeof(*dst6); 869 dst6->sin6_addr = ip6->ip6_dst; | 27 */ 28 29/* 30 * IPsec output processing. 31 */ 32#include "opt_inet.h" 33#include "opt_inet6.h" 34#include "opt_ipsec.h" --- 827 unchanged lines hidden (view full) --- 862 RTFREE(state->ro->ro_rt); 863 state->ro->ro_rt = NULL; 864 } 865 if (state->ro->ro_rt == NULL) { 866 bzero(dst6, sizeof(*dst6)); 867 dst6->sin6_family = AF_INET6; 868 dst6->sin6_len = sizeof(*dst6); 869 dst6->sin6_addr = ip6->ip6_dst; |
870 rtalloc(state->ro); | 870 rtalloc_ign_fib(state->ro, 0UL, M_GETFIB(m)); |
871 } 872 if (state->ro->ro_rt == NULL) { 873 V_ip6stat.ip6s_noroute++; 874 V_ipsec6stat.ips_out_noroute++; 875 error = EHOSTUNREACH; 876 goto bad; 877 } 878 --- 35 unchanged lines hidden --- | 871 } 872 if (state->ro->ro_rt == NULL) { 873 V_ip6stat.ip6s_noroute++; 874 V_ipsec6stat.ips_out_noroute++; 875 error = EHOSTUNREACH; 876 goto bad; 877 } 878 --- 35 unchanged lines hidden --- |