Repository navigation
Commit 72331bc
ipv6: Fix RTM_GETROUTE's interpretation of RTA_IIF to be consistent with ipv4
In IPv4, if an RTA_IIF attribute is specified within an RTM_GETROUTE
message, then a route is searched as if a packet was received on the
specified 'iif' interface.
However in IPv6, RTA_IIF is not interpreted in the same way:
'inet6_rtm_getroute()' always calls 'ip6_route_output()', regardless the
RTA_IIF attribute.
As a result, in IPv6 there's no way to use RTM_GETROUTE in order to look
for a route as if a packet was received on a specific interface.
Fix 'inet6_rtm_getroute()' so that RTA_IIF is interpreted as "lookup a
route as if a packet was received on the specified interface", similar
to IPv4's 'inet_rtm_getroute()' interpretation.
Reported-by: Ami Koren <amikoren@yahoo.com>
Signed-off-by: Shmulik Ladkani <shmulik.ladkani@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>1 parent cdaf0b8 commit 72331bc
1 file changed
Lines changed: 27 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
881 | 881 | | |
882 | 882 | | |
883 | 883 | | |
| 884 | + | |
| 885 | + | |
| 886 | + | |
| 887 | + | |
| 888 | + | |
| 889 | + | |
| 890 | + | |
| 891 | + | |
| 892 | + | |
| 893 | + | |
884 | 894 | | |
885 | 895 | | |
886 | 896 | | |
| |||
895 | 905 | | |
896 | 906 | | |
897 | 907 | | |
898 | | - | |
899 | | - | |
900 | | - | |
901 | | - | |
| 908 | + | |
902 | 909 | | |
903 | 910 | | |
904 | 911 | | |
| |||
2537 | 2544 | | |
2538 | 2545 | | |
2539 | 2546 | | |
2540 | | - | |
| 2547 | + | |
2541 | 2548 | | |
2542 | 2549 | | |
2543 | 2550 | | |
| |||
2564 | 2571 | | |
2565 | 2572 | | |
2566 | 2573 | | |
2567 | | - | |
| 2574 | + | |
2568 | 2575 | | |
2569 | 2576 | | |
2570 | 2577 | | |
| 2578 | + | |
| 2579 | + | |
2571 | 2580 | | |
2572 | 2581 | | |
2573 | 2582 | | |
2574 | 2583 | | |
2575 | 2584 | | |
| 2585 | + | |
| 2586 | + | |
| 2587 | + | |
| 2588 | + | |
| 2589 | + | |
| 2590 | + | |
| 2591 | + | |
| 2592 | + | |
| 2593 | + | |
| 2594 | + | |
| 2595 | + | |
| 2596 | + | |
2576 | 2597 | | |
2577 | 2598 | | |
2578 | 2599 | | |
| |||
2587 | 2608 | | |
2588 | 2609 | | |
2589 | 2610 | | |
2590 | | - | |
2591 | 2611 | | |
2592 | 2612 | | |
2593 | 2613 | | |
| |||
0 commit comments