diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2016-10-27 19:49:42 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2016-11-01 20:50:30 +0100 |
commit | 1fddf4bad0ac9f4d32c74af286fc1eec2a03c82c (patch) | |
tree | cbd3dd9abce08ccc0895235e52d3c0e9beb32797 /include | |
parent | f6d0cbcf09c506b9b022df8f9d7693a7cec3c732 (diff) | |
download | linux-stable-1fddf4bad0ac9f4d32c74af286fc1eec2a03c82c.tar.gz linux-stable-1fddf4bad0ac9f4d32c74af286fc1eec2a03c82c.tar.bz2 linux-stable-1fddf4bad0ac9f4d32c74af286fc1eec2a03c82c.zip |
netfilter: nf_log: add packet logging for netdev family
Move layer 2 packet logging into nf_log_l2packet() that resides in
nf_log_common.c, so this can be shared by both bridge and netdev
families.
This patch adds the boiler plate code to register the netdev logging
family.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/net/netfilter/nf_log.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/net/netfilter/nf_log.h b/include/net/netfilter/nf_log.h index 309cd267be4f..a559aa41253c 100644 --- a/include/net/netfilter/nf_log.h +++ b/include/net/netfilter/nf_log.h @@ -109,5 +109,10 @@ void nf_log_dump_packet_common(struct nf_log_buf *m, u_int8_t pf, const struct net_device *out, const struct nf_loginfo *loginfo, const char *prefix); +void nf_log_l2packet(struct net *net, u_int8_t pf, unsigned int hooknum, + const struct sk_buff *skb, + const struct net_device *in, + const struct net_device *out, + const struct nf_loginfo *loginfo, const char *prefix); #endif /* _NF_LOG_H */ |