nd6_rtr.c (286594) | nd6_rtr.c (287798) |
---|---|
1/*- 2 * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. 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 --- 16 unchanged lines hidden (view full) --- 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 * $KAME: nd6_rtr.c,v 1.111 2001/04/27 01:37:15 jinmei Exp $ 30 */ 31 32#include <sys/cdefs.h> | 1/*- 2 * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. 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 --- 16 unchanged lines hidden (view full) --- 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 * $KAME: nd6_rtr.c,v 1.111 2001/04/27 01:37:15 jinmei Exp $ 30 */ 31 32#include <sys/cdefs.h> |
33__FBSDID("$FreeBSD: head/sys/netinet6/nd6_rtr.c 286594 2015-08-10 20:50:31Z melifaro $"); | 33__FBSDID("$FreeBSD: head/sys/netinet6/nd6_rtr.c 287798 2015-09-14 19:17:25Z vangyzen $"); |
34 35#include "opt_inet.h" 36#include "opt_inet6.h" 37 38#include <sys/param.h> 39#include <sys/systm.h> 40#include <sys/malloc.h> 41#include <sys/mbuf.h> --- 2058 unchanged lines hidden (view full) --- 2100 /* 2101 * We delete only host route. This means, in particular, we don't 2102 * delete default route. 2103 */ 2104 if ((rt->rt_flags & RTF_HOST) == 0) 2105 return (0); 2106 2107 return (in6_rtrequest(RTM_DELETE, rt_key(rt), rt->rt_gateway, | 34 35#include "opt_inet.h" 36#include "opt_inet6.h" 37 38#include <sys/param.h> 39#include <sys/systm.h> 40#include <sys/malloc.h> 41#include <sys/mbuf.h> --- 2058 unchanged lines hidden (view full) --- 2100 /* 2101 * We delete only host route. This means, in particular, we don't 2102 * delete default route. 2103 */ 2104 if ((rt->rt_flags & RTF_HOST) == 0) 2105 return (0); 2106 2107 return (in6_rtrequest(RTM_DELETE, rt_key(rt), rt->rt_gateway, |
2108 rt_mask(rt), rt->rt_flags, NULL, rt->rt_fibnum)); | 2108 rt_mask(rt), rt->rt_flags | RTF_RNH_LOCKED, NULL, rt->rt_fibnum)); |
2109#undef SIN6 2110} 2111 2112int 2113nd6_setdefaultiface(int ifindex) 2114{ 2115 int error = 0; 2116 --- 22 unchanged lines hidden --- | 2109#undef SIN6 2110} 2111 2112int 2113nd6_setdefaultiface(int ifindex) 2114{ 2115 int error = 0; 2116 --- 22 unchanged lines hidden --- |