diff options
author | Steven Whitehouse <swhiteho@redhat.com> | 2006-10-18 23:45:22 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2006-10-18 23:45:22 -0400 |
commit | 3a31b9d2f2d98667832e87fa1853754ff062d6ef (patch) | |
tree | 01eb8f2b5d98d8e76aeb46a5bde12dc41d29abe5 /net/decnet | |
parent | ae8064ac32d07f609114d73928cdef803be87134 (diff) |
[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: Steven Whitehouse <swhiteho@redhat.com>
Signed-off-by: Patrick Caulfield <patrick@tykepenguin.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/decnet')
-rw-r--r-- | net/decnet/dn_route.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/decnet/dn_route.c b/net/decnet/dn_route.c index 491429ce9394..23489f7232d2 100644 --- a/net/decnet/dn_route.c +++ b/net/decnet/dn_route.c | |||
@@ -1275,7 +1275,6 @@ static int dn_route_input_slow(struct sk_buff *skb) | |||
1275 | goto e_inval; | 1275 | goto e_inval; |
1276 | 1276 | ||
1277 | res.type = RTN_LOCAL; | 1277 | res.type = RTN_LOCAL; |
1278 | flags |= RTCF_DIRECTSRC; | ||
1279 | } else { | 1278 | } else { |
1280 | __le16 src_map = fl.fld_src; | 1279 | __le16 src_map = fl.fld_src; |
1281 | free_res = 1; | 1280 | free_res = 1; |
@@ -1346,7 +1345,7 @@ static int dn_route_input_slow(struct sk_buff *skb) | |||
1346 | goto make_route; | 1345 | goto make_route; |
1347 | 1346 | ||
1348 | /* Packet was intra-ethernet, so we know its on-link */ | 1347 | /* Packet was intra-ethernet, so we know its on-link */ |
1349 | if (cb->rt_flags | DN_RT_F_IE) { | 1348 | if (cb->rt_flags & DN_RT_F_IE) { |
1350 | gateway = cb->src; | 1349 | gateway = cb->src; |
1351 | flags |= RTCF_DIRECTSRC; | 1350 | flags |= RTCF_DIRECTSRC; |
1352 | goto make_route; | 1351 | goto make_route; |