Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 40261
b: refs/heads/master
c: 51d8b1a
h: refs/heads/master
i:
  40259: 9232015
v: v3
  • Loading branch information
Patrick McHardy authored and David S. Miller committed Oct 24, 2006
1 parent 7476278 commit e3c2e7e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 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: 2fab22f2d3290ff7c602fe62f22e825c48e97a06
refs/heads/master: 51d8b1a65291a6956b79374b6adbbadc2263bcf6
10 changes: 6 additions & 4 deletions trunk/net/ipv6/netfilter/ip6_tables.c
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ ip6_packet_match(const struct sk_buff *skb,
const char *outdev,
const struct ip6t_ip6 *ip6info,
unsigned int *protoff,
int *fragoff)
int *fragoff, int *hotdrop)
{
size_t i;
unsigned long ret;
Expand Down Expand Up @@ -169,9 +169,11 @@ ip6_packet_match(const struct sk_buff *skb,
unsigned short _frag_off;

protohdr = ipv6_find_hdr(skb, protoff, -1, &_frag_off);
if (protohdr < 0)
if (protohdr < 0) {
if (_frag_off == 0)
*hotdrop = 1;
return 0;

}
*fragoff = _frag_off;

dprintf("Packet protocol %hi ?= %s%hi.\n",
Expand Down Expand Up @@ -290,7 +292,7 @@ ip6t_do_table(struct sk_buff **pskb,
IP_NF_ASSERT(e);
IP_NF_ASSERT(back);
if (ip6_packet_match(*pskb, indev, outdev, &e->ipv6,
&protoff, &offset)) {
&protoff, &offset, &hotdrop)) {
struct ip6t_entry_target *t;

if (IP6T_MATCH_ITERATE(e, do_match,
Expand Down

0 comments on commit e3c2e7e

Please sign in to comment.