Commit e8478e8
net/ipv6: Save route type in rt6_info
The RTN_ type for IPv6 FIB entries is currently embedded in rt6i_flags
and dst.error. Since dst is going to be removed, it can no longer be
relied on for FIB dumps so save the route type as fib6_type.
fc_type is set in current users based on the algorithm in rt6_fill_node:
- rt6i_flags contains RTF_LOCAL: fc_type = RTN_LOCAL
- rt6i_flags contains RTF_ANYCAST: fc_type = RTN_ANYCAST
- else fc_type = RTN_UNICAST
Similarly, fib6_type is set in the rt6_info templates based on the
RTF_REJECT section of rt6_fill_node converting dst.error to RTN type.
Signed-off-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>1 parent ae90d86 commit e8478e8
3 files changed
+23
-26
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
174 | 174 | | |
175 | 175 | | |
176 | 176 | | |
| 177 | + | |
177 | 178 | | |
178 | 179 | | |
179 | 180 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2331 | 2331 | | |
2332 | 2332 | | |
2333 | 2333 | | |
| 2334 | + | |
2334 | 2335 | | |
2335 | 2336 | | |
2336 | 2337 | | |
| |||
2394 | 2395 | | |
2395 | 2396 | | |
2396 | 2397 | | |
| 2398 | + | |
2397 | 2399 | | |
2398 | 2400 | | |
2399 | 2401 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
307 | 307 | | |
308 | 308 | | |
309 | 309 | | |
| 310 | + | |
310 | 311 | | |
311 | 312 | | |
312 | 313 | | |
| |||
324 | 325 | | |
325 | 326 | | |
326 | 327 | | |
| 328 | + | |
327 | 329 | | |
328 | 330 | | |
329 | 331 | | |
| |||
339 | 341 | | |
340 | 342 | | |
341 | 343 | | |
| 344 | + | |
342 | 345 | | |
343 | 346 | | |
344 | 347 | | |
| |||
2802 | 2805 | | |
2803 | 2806 | | |
2804 | 2807 | | |
| 2808 | + | |
| 2809 | + | |
| 2810 | + | |
| 2811 | + | |
| 2812 | + | |
2805 | 2813 | | |
2806 | 2814 | | |
2807 | 2815 | | |
| |||
2914 | 2922 | | |
2915 | 2923 | | |
2916 | 2924 | | |
| 2925 | + | |
| 2926 | + | |
2917 | 2927 | | |
2918 | 2928 | | |
2919 | 2929 | | |
| |||
3354 | 3364 | | |
3355 | 3365 | | |
3356 | 3366 | | |
| 3367 | + | |
3357 | 3368 | | |
3358 | 3369 | | |
3359 | 3370 | | |
| |||
3410 | 3421 | | |
3411 | 3422 | | |
3412 | 3423 | | |
| 3424 | + | |
3413 | 3425 | | |
3414 | 3426 | | |
3415 | 3427 | | |
| |||
3485 | 3497 | | |
3486 | 3498 | | |
3487 | 3499 | | |
| 3500 | + | |
3488 | 3501 | | |
3489 | 3502 | | |
3490 | 3503 | | |
| |||
3606 | 3619 | | |
3607 | 3620 | | |
3608 | 3621 | | |
3609 | | - | |
| 3622 | + | |
| 3623 | + | |
3610 | 3624 | | |
3611 | | - | |
| 3625 | + | |
| 3626 | + | |
3612 | 3627 | | |
| 3628 | + | |
3613 | 3629 | | |
3614 | 3630 | | |
3615 | 3631 | | |
| |||
4509 | 4525 | | |
4510 | 4526 | | |
4511 | 4527 | | |
4512 | | - | |
4513 | | - | |
4514 | | - | |
4515 | | - | |
4516 | | - | |
4517 | | - | |
4518 | | - | |
4519 | | - | |
4520 | | - | |
4521 | | - | |
4522 | | - | |
4523 | | - | |
4524 | | - | |
4525 | | - | |
4526 | | - | |
4527 | | - | |
4528 | | - | |
4529 | | - | |
4530 | | - | |
4531 | | - | |
4532 | | - | |
4533 | | - | |
4534 | | - | |
4535 | | - | |
| 4528 | + | |
| 4529 | + | |
4536 | 4530 | | |
4537 | 4531 | | |
4538 | 4532 | | |
| |||
0 commit comments