Need to update iph->daddr before ip_rt_get_source(), otherwise
we may get a wrong src.
Signed-off-by: Li Wei <redacted>
---
net/ipv4/ip_options.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
From: Eric Dumazet <hidden> Date: 2012-02-10 07:04:13
Le vendredi 10 février 2012 à 14:48 +0800, Li Wei a écrit :
Need to update iph->daddr before ip_rt_get_source(), otherwise
we may get a wrong src.
It would be nice that patch submitters try to pinpoint bug origin in
changelog, to ease patch review and stable submissions.
Is it coming from ac8a48106be49c422575ddc7531b776f8eb49610 (ipv4: Save
nexthop address of LSRR/SSRR option to IPCB.) added in 3.2, or is it
something needing a backport in some other way in old kernels ?
Thanks !
Le vendredi 10 février 2012 à 14:48 +0800, Li Wei a écrit :
quoted
Need to update iph->daddr before ip_rt_get_source(), otherwise
we may get a wrong src.
It would be nice that patch submitters try to pinpoint bug origin in
changelog, to ease patch review and stable submissions.
Is it coming from ac8a48106be49c422575ddc7531b776f8eb49610 (ipv4: Save
nexthop address of LSRR/SSRR option to IPCB.) added in 3.2, or is it
something needing a backport in some other way in old kernels ?
As you said, it is coming from ac8a48106be49c422575ddc7531b776f8eb49610
(ipv4: Save nexthop address of LSRR/SSRR option to IPCB.).
I'll modify the changelog and post a v2.
Thanks!
This patch fix a bug which introduced by commit ac8a4810 (ipv4: Save
nexthop address of LSRR/SSRR option to IPCB.).In that patch, we saved
the nexthop of SRR in ip_option->nexthop and update iph->daddr until
we get to ip_forward_options(), but we need to update it before
ip_rt_get_source(), otherwise we may get a wrong src.
Signed-off-by: Li Wei <redacted>
---
net/ipv4/ip_options.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
Le vendredi 10 février 2012 à 14:48 +0800, Li Wei a écrit :
quoted
Need to update iph->daddr before ip_rt_get_source(), otherwise
we may get a wrong src.
It would be nice that patch submitters try to pinpoint bug origin in
changelog, to ease patch review and stable submissions.
Is it coming from ac8a48106be49c422575ddc7531b776f8eb49610 (ipv4: Save
nexthop address of LSRR/SSRR option to IPCB.) added in 3.2, or is it
something needing a backport in some other way in old kernels ?
As you said, it is coming from ac8a48106be49c422575ddc7531b776f8eb49610
(ipv4: Save nexthop address of LSRR/SSRR option to IPCB.).
I'll modify the changelog and post a v2.
Thanks!
From: David Miller <davem@davemloft.net> Date: 2012-02-10 20:12:45
From: Li Wei <redacted>
Date: Fri, 10 Feb 2012 15:15:25 +0800
This patch fix a bug which introduced by commit ac8a4810 (ipv4: Save
nexthop address of LSRR/SSRR option to IPCB.).In that patch, we saved
the nexthop of SRR in ip_option->nexthop and update iph->daddr until
we get to ip_forward_options(), but we need to update it before
ip_rt_get_source(), otherwise we may get a wrong src.
Signed-off-by: Li Wei <redacted>