Skip to content

Commit e465ccc

Browse files
Florian Westphalummakynes
authored andcommitted
netfilter: nf_log_common: merge with nf_log_syslog
Remove nf_log_common. Now that all per-af modules have been merged there is no longer a need to provide a helper module. Signed-off-by: Florian Westphal <fw@strlen.de> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
1 parent 77ccee9 commit e465ccc

File tree

5 files changed

+181
-258
lines changed

5 files changed

+181
-258
lines changed

include/net/netfilter/nf_log.h

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -98,28 +98,4 @@ struct nf_log_buf;
9898
struct nf_log_buf *nf_log_buf_open(void);
9999
__printf(2, 3) int nf_log_buf_add(struct nf_log_buf *m, const char *f, ...);
100100
void nf_log_buf_close(struct nf_log_buf *m);
101-
102-
/* common logging functions */
103-
int nf_log_dump_udp_header(struct nf_log_buf *m, const struct sk_buff *skb,
104-
u8 proto, int fragment, unsigned int offset);
105-
int nf_log_dump_tcp_header(struct nf_log_buf *m, const struct sk_buff *skb,
106-
u8 proto, int fragment, unsigned int offset,
107-
unsigned int logflags);
108-
void nf_log_dump_sk_uid_gid(struct net *net, struct nf_log_buf *m,
109-
struct sock *sk);
110-
void nf_log_dump_vlan(struct nf_log_buf *m, const struct sk_buff *skb);
111-
void nf_log_dump_packet_common(struct nf_log_buf *m, u_int8_t pf,
112-
unsigned int hooknum, const struct sk_buff *skb,
113-
const struct net_device *in,
114-
const struct net_device *out,
115-
const struct nf_loginfo *loginfo,
116-
const char *prefix);
117-
void nf_log_l2packet(struct net *net, u_int8_t pf,
118-
__be16 protocol,
119-
unsigned int hooknum,
120-
const struct sk_buff *skb,
121-
const struct net_device *in,
122-
const struct net_device *out,
123-
const struct nf_loginfo *loginfo, const char *prefix);
124-
125101
#endif /* _NF_LOG_H */

net/netfilter/Kconfig

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -71,16 +71,13 @@ config NF_CONNTRACK
7171

7272
To compile it as a module, choose M here. If unsure, say N.
7373

74-
config NF_LOG_COMMON
75-
tristate
76-
7774
config NF_LOG_SYSLOG
7875
tristate "Syslog packet logging"
7976
default m if NETFILTER_ADVANCED=n
80-
select NF_LOG_COMMON
8177
help
8278
This option enable support for packet logging via syslog.
83-
It supports IPv4 and common transport protocols such as TCP and UDP.
79+
It supports IPv4, IPV6, ARP and common transport protocols such
80+
as TCP and UDP.
8481
This is a simpler but less flexible logging method compared to
8582
CONFIG_NETFILTER_NETLINK_LOG.
8683
If both are enabled the backend to use can be configured at run-time
@@ -930,7 +927,6 @@ config NETFILTER_XT_TARGET_LED
930927

931928
config NETFILTER_XT_TARGET_LOG
932929
tristate "LOG target support"
933-
select NF_LOG_COMMON
934930
select NF_LOG_SYSLOG
935931
select NF_LOG_IPV6 if IP6_NF_IPTABLES
936932
default m if NETFILTER_ADVANCED=n

net/netfilter/Makefile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,6 @@ obj-$(CONFIG_NF_CONNTRACK_TFTP) += nf_conntrack_tftp.o
4848

4949
nf_nat-y := nf_nat_core.o nf_nat_proto.o nf_nat_helper.o
5050

51-
# generic transport layer logging
52-
obj-$(CONFIG_NF_LOG_COMMON) += nf_log_common.o
5351
obj-$(CONFIG_NF_LOG_SYSLOG) += nf_log_syslog.o
5452

5553
obj-$(CONFIG_NF_NAT) += nf_nat.o

net/netfilter/nf_log_common.c

Lines changed: 0 additions & 224 deletions
This file was deleted.

0 commit comments

Comments
 (0)