Deleted Added
full compact
nd6_rtr.c (286458) nd6_rtr.c (286594)
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 286458 2015-08-08 18:14:59Z melifaro $");
33__FBSDID("$FreeBSD: head/sys/netinet6/nd6_rtr.c 286594 2015-08-10 20:50:31Z melifaro $");
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>

--- 2026 unchanged lines hidden (view full) ---

2068rt6_flush(struct in6_addr *gateway, struct ifnet *ifp)
2069{
2070
2071 /* We'll care only link-local addresses */
2072 if (!IN6_IS_ADDR_LINKLOCAL(gateway))
2073 return;
2074
2075 /* XXX Do we really need to walk any but the default FIB? */
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>

--- 2026 unchanged lines hidden (view full) ---

2068rt6_flush(struct in6_addr *gateway, struct ifnet *ifp)
2069{
2070
2071 /* We'll care only link-local addresses */
2072 if (!IN6_IS_ADDR_LINKLOCAL(gateway))
2073 return;
2074
2075 /* XXX Do we really need to walk any but the default FIB? */
2076 rt_foreach_fib(AF_INET6, NULL, rt6_deleteroute, (void *)gateway);
2076 rt_foreach_fib_walk(AF_INET6, NULL, rt6_deleteroute, (void *)gateway);
2077}
2078
2079static int
2080rt6_deleteroute(struct rtentry *rt, void *arg)
2081{
2082#define SIN6(s) ((struct sockaddr_in6 *)s)
2083 struct in6_addr *gate = (struct in6_addr *)arg;
2084

--- 54 unchanged lines hidden ---
2077}
2078
2079static int
2080rt6_deleteroute(struct rtentry *rt, void *arg)
2081{
2082#define SIN6(s) ((struct sockaddr_in6 *)s)
2083 struct in6_addr *gate = (struct in6_addr *)arg;
2084

--- 54 unchanged lines hidden ---