Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 122384
b: refs/heads/master
c: 5f145e4
h: refs/heads/master
v: v3
  • Loading branch information
Eric Leblond authored and Patrick McHardy committed Nov 25, 2008
1 parent 2d399a1 commit ea47112
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: 4813eadf6b17caa7fcce67ac2f929a3dd5178fa2
refs/heads/master: 5f145e44ae09f629d25536b2947a91e9c01bddcb
3 changes: 3 additions & 0 deletions trunk/net/ipv4/netfilter.c
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ struct ip_rt_info {
__be32 daddr;
__be32 saddr;
u_int8_t tos;
u_int32_t mark;
};

static void nf_ip_saveroute(const struct sk_buff *skb,
Expand All @@ -138,6 +139,7 @@ static void nf_ip_saveroute(const struct sk_buff *skb,
rt_info->tos = iph->tos;
rt_info->daddr = iph->daddr;
rt_info->saddr = iph->saddr;
rt_info->mark = skb->mark;
}
}

Expand All @@ -150,6 +152,7 @@ static int nf_ip_reroute(struct sk_buff *skb,
const struct iphdr *iph = ip_hdr(skb);

if (!(iph->tos == rt_info->tos
&& skb->mark == rt_info->mark
&& iph->daddr == rt_info->daddr
&& iph->saddr == rt_info->saddr))
return ip_route_me_harder(skb, RTN_UNSPEC);
Expand Down

0 comments on commit ea47112

Please sign in to comment.