File tree Expand file tree Collapse file tree 5 files changed +200
-218
lines changed Expand file tree Collapse file tree 5 files changed +200
-218
lines changed Original file line number Diff line number Diff line change @@ -85,17 +85,12 @@ struct nexthop {
85
85
struct net * net ;
86
86
87
87
u32 id ;
88
-
88
+ u32 back_id ;
89
89
u8 protocol ; /* app managing this nh */
90
90
u8 nh_flags ;
91
91
bool is_group ;
92
- bool has_back ;
93
92
bool is_back ;
94
93
bool is_prin ;
95
- u32 prin_id ;
96
- u32 back_id ;
97
- struct nexthop * nh_prin ;
98
- struct nexthop * nh_back ;
99
94
refcount_t refcnt ;
100
95
struct rcu_head rcu ;
101
96
@@ -105,7 +100,6 @@ struct nexthop {
105
100
};
106
101
107
102
struct nh_info __rcu * nh_info_back ;
108
- struct nh_info __rcu * nh_info_prin ;
109
103
};
110
104
111
105
/* caller is holding rcu or rtnl; no reference taken to nexthop */
Original file line number Diff line number Diff line change @@ -69,6 +69,7 @@ struct nlmsghdr {
69
69
#define NLM_F_EXCL 0x200 /* Do not touch, if it exists */
70
70
#define NLM_F_CREATE 0x400 /* Create, if it does not exist */
71
71
#define NLM_F_APPEND 0x800 /* Add to end of list */
72
+ #define NLM_F_ALTROUTE 0x1000 /* Add alternate route */
72
73
73
74
/* Modifiers to DELETE request */
74
75
#define NLM_F_NONREC 0x100 /* Do not delete recursively */
Original file line number Diff line number Diff line change @@ -180,11 +180,6 @@ enum {
180
180
RTM_GETVLAN ,
181
181
#define RTM_GETVLAN RTM_GETVLAN
182
182
183
- // RTM_ALTROUTE = 116,
184
- //#define RTM_ALTROUTE RTM_ALTROUTE
185
-
186
-
187
-
188
183
__RTM_MAX ,
189
184
#define RTM_MAX (((__RTM_MAX + 3) & ~3) - 1)
190
185
};
@@ -406,7 +401,7 @@ struct rtnexthop {
406
401
#define RTNH_F_LINKDOWN 16 /* carrier-down on nexthop */
407
402
#define RTNH_F_UNRESOLVED 32 /* The entry is unresolved (ipmr) */
408
403
#define RTNH_F_BACK_LINK 64 /*Nexthop group has a backup link*/
409
- #define RTNH_F_DUMMY 128 /*Dummy nexthop*/
404
+
410
405
411
406
#define RTNH_COMPARE_MASK (RTNH_F_DEAD | RTNH_F_LINKDOWN | RTNH_F_OFFLOAD)
412
407
You can’t perform that action at this time.
0 commit comments