Commit 3a31b9d2 authored by Steven Whitehouse's avatar Steven Whitehouse Committed by David S. Miller

[DECNET]: Fix input routing bug

This patch fixes a silly bug that has been in the input routing code
for some time. It results in trying to send to a node directly when
the origin of the packet is via the default router.

Its been tested by Alan Kemmerer <alan.kemmerer@mittalsteel.com> who
reported the bug and its a fairly obvious fix for a typo.
Signed-off-by: default avatarSteven Whitehouse <swhiteho@redhat.com>
Signed-off-by: default avatarPatrick Caulfield <patrick@tykepenguin.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent ae8064ac
...@@ -1275,7 +1275,6 @@ static int dn_route_input_slow(struct sk_buff *skb) ...@@ -1275,7 +1275,6 @@ static int dn_route_input_slow(struct sk_buff *skb)
goto e_inval; goto e_inval;
res.type = RTN_LOCAL; res.type = RTN_LOCAL;
flags |= RTCF_DIRECTSRC;
} else { } else {
__le16 src_map = fl.fld_src; __le16 src_map = fl.fld_src;
free_res = 1; free_res = 1;
...@@ -1346,7 +1345,7 @@ static int dn_route_input_slow(struct sk_buff *skb) ...@@ -1346,7 +1345,7 @@ static int dn_route_input_slow(struct sk_buff *skb)
goto make_route; goto make_route;
/* Packet was intra-ethernet, so we know its on-link */ /* Packet was intra-ethernet, so we know its on-link */
if (cb->rt_flags | DN_RT_F_IE) { if (cb->rt_flags & DN_RT_F_IE) {
gateway = cb->src; gateway = cb->src;
flags |= RTCF_DIRECTSRC; flags |= RTCF_DIRECTSRC;
goto make_route; goto make_route;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment