Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 34709
b: refs/heads/master
c: 7cf7393
h: refs/heads/master
i:
  34707: ac70b23
v: v3
  • Loading branch information
Patrick McHardy authored and David S. Miller committed Sep 22, 2006
1 parent 531d1a5 commit 18d099a
Show file tree
Hide file tree
Showing 2 changed files with 2 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: ca39df6cdfbe2ea210e31117f5d469576cfe9008
refs/heads/master: 7cf73936fe6bb9b027b75fd8fa3c634fe74843d3
6 changes: 1 addition & 5 deletions trunk/net/ipv6/netfilter/ip6t_HL.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ static unsigned int ip6t_hl_target(struct sk_buff **pskb,
{
struct ipv6hdr *ip6h;
const struct ip6t_HL_info *info = targinfo;
u_int16_t diffs[2];
int new_hl;

if (!skb_make_writable(pskb, (*pskb)->len))
Expand All @@ -53,11 +52,8 @@ static unsigned int ip6t_hl_target(struct sk_buff **pskb,
break;
}

if (new_hl != ip6h->hop_limit) {
diffs[0] = htons(((unsigned)ip6h->hop_limit) << 8) ^ 0xFFFF;
if (new_hl != ip6h->hop_limit)
ip6h->hop_limit = new_hl;
diffs[1] = htons(((unsigned)ip6h->hop_limit) << 8);
}

return IP6T_CONTINUE;
}
Expand Down

0 comments on commit 18d099a

Please sign in to comment.