• E
    ipv4: fix redirect handling · 9cc20b26
    Eric Dumazet 提交于
    commit f39925db (ipv4: Cache learned redirect information in
    inetpeer.) introduced a regression in ICMP redirect handling.
    
    It assumed ipv4_dst_check() would be called because all possible routes
    were attached to the inetpeer we modify in ip_rt_redirect(), but thats
    not true.
    
    commit 7cc9150e (route: fix ICMP redirect validation) tried to fix
    this but solution was not complete. (It fixed only one route)
    
    So we must lookup existing routes (including different TOS values) and
    call check_peer_redir() on them.
    Reported-by: NIvan Zahariev <famzah@icdsoft.com>
    Signed-off-by: NEric Dumazet <eric.dumazet@gmail.com>
    CC: Flavio Leitner <fbl@redhat.com>
    Signed-off-by: NDavid S. Miller <davem@davemloft.net>
    9cc20b26
route.c 82.9 KB