ip6_fib.h (ad1601ae0260551f85691ca1ac814773fdcec239) ip6_fib.h (f1741730dd18828fe3ea5fa91c22f41cf001c625)
1/*
2 * Linux INET6 implementation
3 *
4 * Authors:
5 * Pedro Roque <roque@di.fc.ul.pt>
6 *
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License

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

14#define _IP6_FIB_H
15
16#include <linux/ipv6_route.h>
17#include <linux/rtnetlink.h>
18#include <linux/spinlock.h>
19#include <linux/notifier.h>
20#include <net/dst.h>
21#include <net/flow.h>
1/*
2 * Linux INET6 implementation
3 *
4 * Authors:
5 * Pedro Roque <roque@di.fc.ul.pt>
6 *
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License

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

14#define _IP6_FIB_H
15
16#include <linux/ipv6_route.h>
17#include <linux/rtnetlink.h>
18#include <linux/spinlock.h>
19#include <linux/notifier.h>
20#include <net/dst.h>
21#include <net/flow.h>
22#include <net/ip_fib.h>
22#include <net/netlink.h>
23#include <net/inetpeer.h>
24#include <net/fib_notifier.h>
25
26#ifdef CONFIG_IPV6_MULTIPLE_TABLES
27#define FIB6_TABLE_HASHSZ 256
28#else
29#define FIB6_TABLE_HASHSZ 1

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

120 struct rcu_head rcu;
121};
122
123#define FIB6_EXCEPTION_BUCKET_SIZE_SHIFT 10
124#define FIB6_EXCEPTION_BUCKET_SIZE (1 << FIB6_EXCEPTION_BUCKET_SIZE_SHIFT)
125#define FIB6_MAX_DEPTH 5
126
127struct fib6_nh {
23#include <net/netlink.h>
24#include <net/inetpeer.h>
25#include <net/fib_notifier.h>
26
27#ifdef CONFIG_IPV6_MULTIPLE_TABLES
28#define FIB6_TABLE_HASHSZ 256
29#else
30#define FIB6_TABLE_HASHSZ 1

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

121 struct rcu_head rcu;
122};
123
124#define FIB6_EXCEPTION_BUCKET_SIZE_SHIFT 10
125#define FIB6_EXCEPTION_BUCKET_SIZE (1 << FIB6_EXCEPTION_BUCKET_SIZE_SHIFT)
126#define FIB6_MAX_DEPTH 5
127
128struct fib6_nh {
128 struct in6_addr fib_nh_gw6;
129 bool fib_nh_has_gw;
130 struct net_device *fib_nh_dev;
131 struct lwtunnel_state *fib_nh_lws;
132
133 unsigned int fib_nh_flags;
134 atomic_t fib_nh_upper_bound;
135 int fib_nh_weight;
129 struct fib_nh_common nh_common;
136};
137
138struct fib6_info {
139 struct fib6_table *fib6_table;
140 struct fib6_info __rcu *fib6_next;
141 struct fib6_node __rcu *fib6_node;
142
143 /* Multipath routes:

--- 409 unchanged lines hidden ---
130};
131
132struct fib6_info {
133 struct fib6_table *fib6_table;
134 struct fib6_info __rcu *fib6_next;
135 struct fib6_node __rcu *fib6_node;
136
137 /* Multipath routes:

--- 409 unchanged lines hidden ---