Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 26175
b: refs/heads/master
c: 454ac77
h: refs/heads/master
i:
  26173: 53dfe98
  26171: 2619aa4
  26167: 2160b2d
  26159: 8c573ec
  26143: 866a888
  26111: ef1a864
v: v3
  • Loading branch information
Linus Torvalds committed Apr 25, 2006
1 parent 6cdb9e6 commit 9db4168
Show file tree
Hide file tree
Showing 10 changed files with 18 additions and 30 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: 301dc3e6f6ea83703fa52919c00e60661da5a8fe
refs/heads/master: 454ac778459bc70f0a9818a6a8fd974ced11de66
2 changes: 1 addition & 1 deletion trunk/include/asm-sparc/unistd.h
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@
#define __NR_getsid 252
#define __NR_fdatasync 253
#define __NR_nfsservctl 254
#define __NR_sys_sync_file_range 255
#define __NR_sync_file_range 255
#define __NR_clock_settime 256
#define __NR_clock_gettime 257
#define __NR_clock_getres 258
Expand Down
2 changes: 1 addition & 1 deletion trunk/include/asm-sparc64/unistd.h
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@
#define __NR_getsid 252
#define __NR_fdatasync 253
#define __NR_nfsservctl 254
#define __NR_sys_sync_file_range 255
#define __NR_sync_file_range 255
#define __NR_clock_settime 256
#define __NR_clock_gettime 257
#define __NR_clock_getres 258
Expand Down
4 changes: 4 additions & 0 deletions trunk/include/linux/netfilter/x_tables.h
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,11 @@ struct compat_xt_entry_target

struct compat_xt_counters
{
#if defined(CONFIG_X86_64) || defined(CONFIG_IA64)
u_int32_t cnt[4];
#else
u_int64_t cnt[2];
#endif
};

struct compat_xt_counters_info
Expand Down
2 changes: 1 addition & 1 deletion trunk/net/ipv4/netfilter/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ config IP_NF_TARGET_LOG
To compile it as a module, choose M here. If unsure, say N.

config IP_NF_TARGET_ULOG
tristate "ULOG target support (OBSOLETE)"
tristate "ULOG target support"
depends on IP_NF_IPTABLES
---help---

Expand Down
13 changes: 0 additions & 13 deletions trunk/net/ipv6/netfilter/ip6_tables.c
Original file line number Diff line number Diff line change
Expand Up @@ -288,19 +288,6 @@ ip6t_do_table(struct sk_buff **pskb,
table_base = (void *)private->entries[smp_processor_id()];
e = get_entry(table_base, private->hook_entry[hook]);

#ifdef CONFIG_NETFILTER_DEBUG
/* Check noone else using our table */
if (((struct ip6t_entry *)table_base)->comefrom != 0xdead57ac
&& ((struct ip6t_entry *)table_base)->comefrom != 0xeeeeeeec) {
printk("ASSERT: CPU #%u, %s comefrom(%p) = %X\n",
smp_processor_id(),
table->name,
&((struct ip6t_entry *)table_base)->comefrom,
((struct ip6t_entry *)table_base)->comefrom);
}
((struct ip6t_entry *)table_base)->comefrom = 0x57acc001;
#endif

/* For return from builtin chain */
back = get_entry(table_base, private->underflow[hook]);

Expand Down
15 changes: 4 additions & 11 deletions trunk/net/netfilter/nf_conntrack_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -178,9 +178,6 @@ static struct {
/* allocated slab cache + modules which uses this slab cache */
int use;

/* Initialization */
int (*init_conntrack)(struct nf_conn *, u_int32_t);

} nf_ct_cache[NF_CT_F_NUM];

/* protect members of nf_ct_cache except of "use" */
Expand Down Expand Up @@ -208,10 +205,8 @@ nf_ct_proto_find_get(u_int16_t l3proto, u_int8_t protocol)

preempt_disable();
p = __nf_ct_proto_find(l3proto, protocol);
if (p) {
if (!try_module_get(p->me))
p = &nf_conntrack_generic_protocol;
}
if (!try_module_get(p->me))
p = &nf_conntrack_generic_protocol;
preempt_enable();

return p;
Expand All @@ -229,10 +224,8 @@ nf_ct_l3proto_find_get(u_int16_t l3proto)

preempt_disable();
p = __nf_ct_l3proto_find(l3proto);
if (p) {
if (!try_module_get(p->me))
p = &nf_conntrack_generic_l3proto;
}
if (!try_module_get(p->me))
p = &nf_conntrack_generic_l3proto;
preempt_enable();

return p;
Expand Down
1 change: 0 additions & 1 deletion trunk/net/netfilter/nf_conntrack_l3proto_generic.c
Original file line number Diff line number Diff line change
Expand Up @@ -94,5 +94,4 @@ struct nf_conntrack_l3proto nf_conntrack_generic_l3proto = {
.print_conntrack = generic_print_conntrack,
.prepare = generic_prepare,
.get_features = generic_get_features,
.me = THIS_MODULE,
};
2 changes: 1 addition & 1 deletion trunk/net/netfilter/x_tables.c
Original file line number Diff line number Diff line change
Expand Up @@ -529,6 +529,7 @@ int xt_register_table(struct xt_table *table,

/* Simplifies replace_table code. */
table->private = bootstrap;
rwlock_init(&table->lock);
if (!xt_replace_table(table, 0, newinfo, &ret))
goto unlock;

Expand All @@ -538,7 +539,6 @@ int xt_register_table(struct xt_table *table,
/* save number of initial entries */
private->initial_entries = private->number;

rwlock_init(&table->lock);
list_prepend(&xt[table->af].tables, table);

ret = 0;
Expand Down
5 changes: 5 additions & 0 deletions trunk/net/sched/act_ipt.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,11 @@ ipt_init_target(struct ipt_entry_target *t, char *table, unsigned int hook)
DPRINTK("ipt_init_target: found %s\n", target->name);
t->u.kernel.target = target;

ret = xt_check_target(target, AF_INET, t->u.target_size - sizeof(*t),
table, hook, 0, 0);
if (ret)
return ret;

if (t->u.kernel.target->checkentry
&& !t->u.kernel.target->checkentry(table, NULL,
t->u.kernel.target, t->data,
Expand Down

0 comments on commit 9db4168

Please sign in to comment.