diff options
| author | David S. Miller <davem@davemloft.net> | 2010-07-03 01:42:06 -0400 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2010-07-03 01:42:06 -0400 |
| commit | e490c1defec4236a6a131fe2d13bf7ba787c02f8 (patch) | |
| tree | 132325ca88cc86a74345a93b2774c5ca284b038a | |
| parent | 0a17d8c744e44617a3c22e7af68b4c5c9c1c5dba (diff) | |
| parent | 4df53d8bab65cf2c18daebd51a5a4847e03f1943 (diff) | |
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/kaber/nf-next-2.6
| -rw-r--r-- | Documentation/feature-removal-schedule.txt | 9 | ||||
| -rw-r--r-- | Documentation/kernel-parameters.txt | 3 | ||||
| -rw-r--r-- | include/linux/ip_vs.h | 2 | ||||
| -rw-r--r-- | include/linux/netfilter_ipv4/ipt_LOG.h | 3 | ||||
| -rw-r--r-- | include/linux/netfilter_ipv6/ip6t_LOG.h | 3 | ||||
| -rw-r--r-- | include/net/netfilter/nf_conntrack_acct.h | 12 | ||||
| -rw-r--r-- | include/net/netfilter/nf_nat_rule.h | 2 | ||||
| -rw-r--r-- | net/bridge/br_netfilter.c | 31 | ||||
| -rw-r--r-- | net/bridge/br_private.h | 3 | ||||
| -rw-r--r-- | net/bridge/br_sysfs_br.c | 72 | ||||
| -rw-r--r-- | net/ipv4/netfilter/ipt_LOG.c | 54 | ||||
| -rw-r--r-- | net/ipv4/netfilter/ipt_NETMAP.c | 6 | ||||
| -rw-r--r-- | net/ipv4/netfilter/nf_nat_rule.c | 10 | ||||
| -rw-r--r-- | net/ipv4/netfilter/nf_nat_standalone.c | 8 | ||||
| -rw-r--r-- | net/ipv6/netfilter/ip6t_LOG.c | 81 | ||||
| -rw-r--r-- | net/netfilter/Kconfig | 24 | ||||
| -rw-r--r-- | net/netfilter/ipvs/ip_vs_conn.c | 10 | ||||
| -rw-r--r-- | net/netfilter/ipvs/ip_vs_core.c | 20 | ||||
| -rw-r--r-- | net/netfilter/ipvs/ip_vs_ctl.c | 10 | ||||
| -rw-r--r-- | net/netfilter/nf_conntrack_acct.c | 14 | ||||
| -rw-r--r-- | net/netfilter/xt_IDLETIMER.c | 1 | ||||
| -rw-r--r-- | net/netfilter/xt_connbytes.c | 10 |
22 files changed, 262 insertions, 126 deletions
diff --git a/Documentation/feature-removal-schedule.txt b/Documentation/feature-removal-schedule.txt index 672be0109d02..92f021aac92c 100644 --- a/Documentation/feature-removal-schedule.txt +++ b/Documentation/feature-removal-schedule.txt | |||
| @@ -303,15 +303,6 @@ Who: Johannes Berg <johannes@sipsolutions.net> | |||
| 303 | 303 | ||
| 304 | --------------------------- | 304 | --------------------------- |
| 305 | 305 | ||
| 306 | What: CONFIG_NF_CT_ACCT | ||
| 307 | When: 2.6.29 | ||
| 308 | Why: Accounting can now be enabled/disabled without kernel recompilation. | ||
| 309 | Currently used only to set a default value for a feature that is also | ||
| 310 | controlled by a kernel/module/sysfs/sysctl parameter. | ||
| 311 | Who: Krzysztof Piotr Oledzki <ole@ans.pl> | ||
| 312 | |||
| 313 | --------------------------- | ||
| 314 | |||
| 315 | What: sysfs ui for changing p4-clockmod parameters | 306 | What: sysfs ui for changing p4-clockmod parameters |
| 316 | When: September 2009 | 307 | When: September 2009 |
| 317 | Why: See commits 129f8ae9b1b5be94517da76009ea956e89104ce8 and | 308 | Why: See commits 129f8ae9b1b5be94517da76009ea956e89104ce8 and |
diff --git a/Documentation/kernel-parameters.txt b/Documentation/kernel-parameters.txt index 1808f1157f30..cee62515ffa1 100644 --- a/Documentation/kernel-parameters.txt +++ b/Documentation/kernel-parameters.txt | |||
| @@ -1597,8 +1597,7 @@ and is between 256 and 4096 characters. It is defined in the file | |||
| 1597 | [NETFILTER] Enable connection tracking flow accounting | 1597 | [NETFILTER] Enable connection tracking flow accounting |
| 1598 | 0 to disable accounting | 1598 | 0 to disable accounting |
| 1599 | 1 to enable accounting | 1599 | 1 to enable accounting |
| 1600 | Default value depends on CONFIG_NF_CT_ACCT that is | 1600 | Default value is 0. |
| 1601 | going to be removed in 2.6.29. | ||
| 1602 | 1601 | ||
| 1603 | nfsaddrs= [NFS] | 1602 | nfsaddrs= [NFS] |
| 1604 | See Documentation/filesystems/nfs/nfsroot.txt. | 1603 | See Documentation/filesystems/nfs/nfsroot.txt. |
diff --git a/include/linux/ip_vs.h b/include/linux/ip_vs.h index dfc170362842..9708de265bb1 100644 --- a/include/linux/ip_vs.h +++ b/include/linux/ip_vs.h | |||
| @@ -19,6 +19,7 @@ | |||
| 19 | */ | 19 | */ |
| 20 | #define IP_VS_SVC_F_PERSISTENT 0x0001 /* persistent port */ | 20 | #define IP_VS_SVC_F_PERSISTENT 0x0001 /* persistent port */ |
| 21 | #define IP_VS_SVC_F_HASHED 0x0002 /* hashed entry */ | 21 | #define IP_VS_SVC_F_HASHED 0x0002 /* hashed entry */ |
| 22 | #define IP_VS_SVC_F_ONEPACKET 0x0004 /* one-packet scheduling */ | ||
| 22 | 23 | ||
| 23 | /* | 24 | /* |
| 24 | * Destination Server Flags | 25 | * Destination Server Flags |
| @@ -85,6 +86,7 @@ | |||
| 85 | #define IP_VS_CONN_F_SEQ_MASK 0x0600 /* in/out sequence mask */ | 86 | #define IP_VS_CONN_F_SEQ_MASK 0x0600 /* in/out sequence mask */ |
| 86 | #define IP_VS_CONN_F_NO_CPORT 0x0800 /* no client port set yet */ | 87 | #define IP_VS_CONN_F_NO_CPORT 0x0800 /* no client port set yet */ |
| 87 | #define IP_VS_CONN_F_TEMPLATE 0x1000 /* template, not connection */ | 88 | #define IP_VS_CONN_F_TEMPLATE 0x1000 /* template, not connection */ |
| 89 | #define IP_VS_CONN_F_ONE_PACKET 0x2000 /* forward only one packet */ | ||
| 88 | 90 | ||
| 89 | #define IP_VS_SCHEDNAME_MAXLEN 16 | 91 | #define IP_VS_SCHEDNAME_MAXLEN 16 |
| 90 | #define IP_VS_IFNAME_MAXLEN 16 | 92 | #define IP_VS_IFNAME_MAXLEN 16 |
diff --git a/include/linux/netfilter_ipv4/ipt_LOG.h b/include/linux/netfilter_ipv4/ipt_LOG.h index 90fa6525ef9c..dcdbadf9fd4a 100644 --- a/include/linux/netfilter_ipv4/ipt_LOG.h +++ b/include/linux/netfilter_ipv4/ipt_LOG.h | |||
| @@ -7,7 +7,8 @@ | |||
| 7 | #define IPT_LOG_IPOPT 0x04 /* Log IP options */ | 7 | #define IPT_LOG_IPOPT 0x04 /* Log IP options */ |
| 8 | #define IPT_LOG_UID 0x08 /* Log UID owning local socket */ | 8 | #define IPT_LOG_UID 0x08 /* Log UID owning local socket */ |
| 9 | #define IPT_LOG_NFLOG 0x10 /* Unsupported, don't reuse */ | 9 | #define IPT_LOG_NFLOG 0x10 /* Unsupported, don't reuse */ |
| 10 | #define IPT_LOG_MASK 0x1f | 10 | #define IPT_LOG_MACDECODE 0x20 /* Decode MAC header */ |
| 11 | #define IPT_LOG_MASK 0x2f | ||
| 11 | 12 | ||
| 12 | struct ipt_log_info { | 13 | struct ipt_log_info { |
| 13 | unsigned char level; | 14 | unsigned char level; |
diff --git a/include/linux/netfilter_ipv6/ip6t_LOG.h b/include/linux/netfilter_ipv6/ip6t_LOG.h index 0d0119b0458c..9dd5579e02ec 100644 --- a/include/linux/netfilter_ipv6/ip6t_LOG.h +++ b/include/linux/netfilter_ipv6/ip6t_LOG.h | |||
| @@ -7,7 +7,8 @@ | |||
| 7 | #define IP6T_LOG_IPOPT 0x04 /* Log IP options */ | 7 | #define IP6T_LOG_IPOPT 0x04 /* Log IP options */ |
| 8 | #define IP6T_LOG_UID 0x08 /* Log UID owning local socket */ | 8 | #define IP6T_LOG_UID 0x08 /* Log UID owning local socket */ |
| 9 | #define IP6T_LOG_NFLOG 0x10 /* Unsupported, don't use */ | 9 | #define IP6T_LOG_NFLOG 0x10 /* Unsupported, don't use */ |
| 10 | #define IP6T_LOG_MASK 0x1f | 10 | #define IP6T_LOG_MACDECODE 0x20 /* Decode MAC header */ |
| 11 | #define IP6T_LOG_MASK 0x2f | ||
| 11 | 12 | ||
| 12 | struct ip6t_log_info { | 13 | struct ip6t_log_info { |
| 13 | unsigned char level; | 14 | unsigned char level; |
diff --git a/include/net/netfilter/nf_conntrack_acct.h b/include/net/netfilter/nf_conntrack_acct.h index 03e218f0be43..4e9c63a20db2 100644 --- a/include/net/netfilter/nf_conntrack_acct.h +++ b/include/net/netfilter/nf_conntrack_acct.h | |||
| @@ -45,6 +45,18 @@ struct nf_conn_counter *nf_ct_acct_ext_add(struct nf_conn *ct, gfp_t gfp) | |||
| 45 | extern unsigned int | 45 | extern unsigned int |
| 46 | seq_print_acct(struct seq_file *s, const struct nf_conn *ct, int dir); | 46 | seq_print_acct(struct seq_file *s, const struct nf_conn *ct, int dir); |
| 47 | 47 | ||
| 48 | /* Check if connection tracking accounting is enabled */ | ||
| 49 | static inline bool nf_ct_acct_enabled(struct net *net) | ||
| 50 | { | ||
| 51 | return net->ct.sysctl_acct != 0; | ||
| 52 | } | ||
| 53 | |||
| 54 | /* Enable/disable connection tracking accounting */ | ||
| 55 | static inline void nf_ct_set_acct(struct net *net, bool enable) | ||
| 56 | { | ||
| 57 | net->ct.sysctl_acct = enable; | ||
| 58 | } | ||
| 59 | |||
| 48 | extern int nf_conntrack_acct_init(struct net *net); | 60 | extern int nf_conntrack_acct_init(struct net *net); |
| 49 | extern void nf_conntrack_acct_fini(struct net *net); | 61 | extern void nf_conntrack_acct_fini(struct net *net); |
| 50 | 62 | ||
diff --git a/include/net/netfilter/nf_nat_rule.h b/include/net/netfilter/nf_nat_rule.h index e4a18ae361c6..2890bdc4cd92 100644 --- a/include/net/netfilter/nf_nat_rule.h +++ b/include/net/netfilter/nf_nat_rule.h | |||
| @@ -12,6 +12,4 @@ extern int nf_nat_rule_find(struct sk_buff *skb, | |||
| 12 | const struct net_device *out, | 12 | const struct net_device *out, |
| 13 | struct nf_conn *ct); | 13 | struct nf_conn *ct); |
| 14 | 14 | ||
| 15 | extern unsigned int | ||
| 16 | alloc_null_binding(struct nf_conn *ct, unsigned int hooknum); | ||
| 17 | #endif /* _NF_NAT_RULE_H */ | 15 | #endif /* _NF_NAT_RULE_H */ |
diff --git a/net/bridge/br_netfilter.c b/net/bridge/br_netfilter.c index 84060bc48f11..9fdf1b116bd7 100644 --- a/net/bridge/br_netfilter.c +++ b/net/bridge/br_netfilter.c | |||
| @@ -55,6 +55,9 @@ static int brnf_call_arptables __read_mostly = 1; | |||
| 55 | static int brnf_filter_vlan_tagged __read_mostly = 0; | 55 | static int brnf_filter_vlan_tagged __read_mostly = 0; |
| 56 | static int brnf_filter_pppoe_tagged __read_mostly = 0; | 56 | static int brnf_filter_pppoe_tagged __read_mostly = 0; |
| 57 | #else | 57 | #else |
| 58 | #define brnf_call_iptables 1 | ||
| 59 | #define brnf_call_ip6tables 1 | ||
| 60 | #define brnf_call_arptables 1 | ||
| 58 | #define brnf_filter_vlan_tagged 0 | 61 | #define brnf_filter_vlan_tagged 0 |
| 59 | #define brnf_filter_pppoe_tagged 0 | 62 | #define brnf_filter_pppoe_tagged 0 |
| 60 | #endif | 63 | #endif |
| @@ -544,25 +547,30 @@ static unsigned int br_nf_pre_routing(unsigned int hook, struct sk_buff *skb, | |||
| 544 | const struct net_device *out, | 547 | const struct net_device *out, |
| 545 | int (*okfn)(struct sk_buff *)) | 548 | int (*okfn)(struct sk_buff *)) |
| 546 | { | 549 | { |
| 550 | struct net_bridge_port *p; | ||
| 551 | struct net_bridge *br; | ||
| 547 | struct iphdr *iph; | 552 | struct iphdr *iph; |
| 548 | __u32 len = nf_bridge_encap_header_len(skb); | 553 | __u32 len = nf_bridge_encap_header_len(skb); |
| 549 | 554 | ||
| 550 | if (unlikely(!pskb_may_pull(skb, len))) | 555 | if (unlikely(!pskb_may_pull(skb, len))) |
| 551 | goto out; | 556 | goto out; |
| 552 | 557 | ||
| 558 | p = br_port_get_rcu(in); | ||
