Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 46960
b: refs/heads/master
c: 2822b0d
h: refs/heads/master
v: v3
  • Loading branch information
Jan Engelhardt authored and David S. Miller committed Feb 8, 2007
1 parent 84a6714 commit e4b4e7b
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 22 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: a09113c2c8ec59a5cc228efa5869aade2b8f13f7
refs/heads/master: 2822b0d92675cd8d4fc73112334f4b113ba7c979
3 changes: 1 addition & 2 deletions trunk/net/ipv6/netfilter/ip6t_HL.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,7 @@ static unsigned int ip6t_hl_target(struct sk_buff **pskb,
break;
}

if (new_hl != ip6h->hop_limit)
ip6h->hop_limit = new_hl;
ip6h->hop_limit = new_hl;

return IP6T_CONTINUE;
}
Expand Down
4 changes: 1 addition & 3 deletions trunk/net/netfilter/xt_CLASSIFY.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,7 @@ target(struct sk_buff **pskb,
{
const struct xt_classify_target_info *clinfo = targinfo;

if ((*pskb)->priority != clinfo->priority)
(*pskb)->priority = clinfo->priority;

(*pskb)->priority = clinfo->priority;
return XT_CONTINUE;
}

Expand Down
5 changes: 2 additions & 3 deletions trunk/net/netfilter/xt_CONNMARK.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ target(struct sk_buff **pskb,
#else
nf_conntrack_event_cache(IPCT_MARK, *pskb);
#endif
}
}
break;
case XT_CONNMARK_SAVE:
newmark = (*ctmark & ~markinfo->mask) |
Expand All @@ -78,8 +78,7 @@ target(struct sk_buff **pskb,
case XT_CONNMARK_RESTORE:
mark = (*pskb)->mark;
diff = (*ctmark ^ mark) & markinfo->mask;
if (diff != 0)
(*pskb)->mark = mark ^ diff;
(*pskb)->mark = mark ^ diff;
break;
}
}
Expand Down
6 changes: 2 additions & 4 deletions trunk/net/netfilter/xt_CONNSECMARK.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@ static void secmark_save(struct sk_buff *skb)

connsecmark = nf_ct_get_secmark(skb, &ctinfo);
if (connsecmark && !*connsecmark)
if (*connsecmark != skb->secmark)
*connsecmark = skb->secmark;
*connsecmark = skb->secmark;
}
}

Expand All @@ -58,8 +57,7 @@ static void secmark_restore(struct sk_buff *skb)

connsecmark = nf_ct_get_secmark(skb, &ctinfo);
if (connsecmark && *connsecmark)
if (skb->secmark != *connsecmark)
skb->secmark = *connsecmark;
skb->secmark = *connsecmark;
}
}

Expand Down
8 changes: 2 additions & 6 deletions trunk/net/netfilter/xt_MARK.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,7 @@ target_v0(struct sk_buff **pskb,
{
const struct xt_mark_target_info *markinfo = targinfo;

if((*pskb)->mark != markinfo->mark)
(*pskb)->mark = markinfo->mark;

(*pskb)->mark = markinfo->mark;
return XT_CONTINUE;
}

Expand Down Expand Up @@ -62,9 +60,7 @@ target_v1(struct sk_buff **pskb,
break;
}

if((*pskb)->mark != mark)
(*pskb)->mark = mark;

(*pskb)->mark = mark;
return XT_CONTINUE;
}

Expand Down
4 changes: 1 addition & 3 deletions trunk/net/netfilter/xt_SECMARK.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,7 @@ static unsigned int target(struct sk_buff **pskb, const struct net_device *in,
BUG();
}

if ((*pskb)->secmark != secmark)
(*pskb)->secmark = secmark;

(*pskb)->secmark = secmark;
return XT_CONTINUE;
}

Expand Down

0 comments on commit e4b4e7b

Please sign in to comment.