Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 6392
b: refs/heads/master
c: 3e192be
h: refs/heads/master
v: v3
  • Loading branch information
Thomas Graf authored and David S. Miller committed Aug 29, 2005
1 parent 9cfd0bc commit 49f7020
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d245407e758b14c464c609b632873f85709360c7
refs/heads/master: 3e192beaf5ef260a31e84a12c0a04eff2eec02ab
10 changes: 5 additions & 5 deletions trunk/net/ipv4/ip_input.c
Original file line number Diff line number Diff line change
Expand Up @@ -333,24 +333,24 @@ static inline int ip_rcv_options(struct sk_buff *skb)

static inline int ip_rcv_finish(struct sk_buff *skb)
{
struct net_device *dev = skb->dev;
struct iphdr *iph = skb->nh.iph;
int err;

/*
* Initialise the virtual path cache for the packet. It describes
* how the packet travels inside Linux networking.
*/
if (skb->dst == NULL) {
if ((err = ip_route_input(skb, iph->daddr, iph->saddr, iph->tos, dev))) {
if (likely(skb->dst == NULL)) {
int err = ip_route_input(skb, iph->daddr, iph->saddr, iph->tos,
skb->dev);
if (unlikely(err)) {
if (err == -EHOSTUNREACH)
IP_INC_STATS_BH(IPSTATS_MIB_INADDRERRORS);
goto drop;
}
}

#ifdef CONFIG_NET_CLS_ROUTE
if (skb->dst->tclassid) {
if (unlikely(skb->dst->tclassid)) {
struct ip_rt_acct *st = ip_rt_acct + 256*smp_processor_id();
u32 idx = skb->dst->tclassid;
st[idx&0xFF].o_packets++;
Expand Down

0 comments on commit 49f7020

Please sign in to comment.