Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 41968
b: refs/heads/master
c: 0e79553
h: refs/heads/master
v: v3
  • Loading branch information
Al Viro authored and David S. Miller committed Dec 3, 2006
1 parent 1f52af8 commit 4a7fc87
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 11 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: 1f072c96fdf1a0caa11c6e8078dd96925bd02db5
refs/heads/master: 0e795531c5e6d0a7d407b8d9edde47cab13be3ec
16 changes: 6 additions & 10 deletions trunk/net/bridge/netfilter/ebtables.c
Original file line number Diff line number Diff line change
Expand Up @@ -464,17 +464,14 @@ static int ebt_verify_pointers(struct ebt_replace *repl,
*/
static inline int
ebt_check_entry_size_and_hooks(struct ebt_entry *e,
struct ebt_table_info *newinfo, char *base,
struct ebt_entries **hook_entries, unsigned int *n, unsigned int *cnt,
unsigned int *totalcnt, unsigned int *udc_cnt, unsigned int valid_hooks)
struct ebt_table_info *newinfo,
unsigned int *n, unsigned int *cnt,
unsigned int *totalcnt, unsigned int *udc_cnt)
{
unsigned int offset = (char *)e - newinfo->entries;
int i;

for (i = 0; i < NF_BR_NUMHOOKS; i++) {
if ((valid_hooks & (1 << i)) == 0)
continue;
if ((char *)hook_entries[i] == base + offset)
if ((void *)e == (void *)newinfo->hook_entry[i])
break;
}
/* beginning of a new chain
Expand Down Expand Up @@ -821,9 +818,8 @@ static int translate_table(struct ebt_replace *repl,
newinfo->nentries afterwards */
udc_cnt = 0; /* will hold the nr. of user defined chains (udc) */
ret = EBT_ENTRY_ITERATE(newinfo->entries, newinfo->entries_size,
ebt_check_entry_size_and_hooks, newinfo, repl->entries,
repl->hook_entry, &i, &j, &k,
&udc_cnt, repl->valid_hooks);
ebt_check_entry_size_and_hooks, newinfo,
&i, &j, &k, &udc_cnt);

if (ret != 0)
return ret;
Expand Down

0 comments on commit 4a7fc87

Please sign in to comment.