Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 74689
b: refs/heads/master
c: 7f53878
h: refs/heads/master
i:
  74687: 0a9dda6
v: v3
  • Loading branch information
Mitsuru Chinen authored and David S. Miller committed Dec 7, 2007
1 parent 0a57f6f commit d5d9503
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ca46f9c834913fc5d5c196d70673375cdaba6b56
refs/heads/master: 7f53878dc2618bf7c01e2135bd271ac01bd85dc9
3 changes: 3 additions & 0 deletions trunk/net/ipv4/route.c
Original file line number Diff line number Diff line change
Expand Up @@ -1252,6 +1252,7 @@ static int ip_error(struct sk_buff *skb)
break;
case ENETUNREACH:
code = ICMP_NET_UNREACH;
IP_INC_STATS_BH(IPSTATS_MIB_INNOROUTES);
break;
case EACCES:
code = ICMP_PKT_FILTERED;
Expand Down Expand Up @@ -1881,6 +1882,8 @@ out: return err;
RT_CACHE_STAT_INC(in_no_route);
spec_dst = inet_select_addr(dev, 0, RT_SCOPE_UNIVERSE);
res.type = RTN_UNREACHABLE;
if (err == -ESRCH)
err = -ENETUNREACH;
goto local_input;

/*
Expand Down

0 comments on commit d5d9503

Please sign in to comment.