netfilter: quota2: add support to log quota limit reached.
authorJP Abgrall <jpa@google.com>
Wed, 13 Jul 2011 23:02:31 +0000 (16:02 -0700)
committerJP Abgrall <jpa@google.com>
Fri, 22 Jul 2011 01:04:45 +0000 (18:04 -0700)
commitf0e215b07c40e8fbf4ae842d8b33f4a285c0b3e1
tree6855559e3afdba12842856679c330b5a5d05118c
parent5d89db9f307306cae7a356c8af44e12fefdc87e9
netfilter: quota2: add support to log quota limit reached.

This uses the NETLINK NETLINK_NFLOG family to log a single message
when the quota limit is reached.
It uses the same packet type as ipt_ULOG, but
 - never copies skb data,
 - uses 112 as the event number (ULOG's +1)

It doesn't log if the module param "event_num" is 0.

Change-Id: I6f31736b568bb31a4ff0b9ac2ee58380e6b675ca
Signed-off-by: JP Abgrall <jpa@google.com>
net/netfilter/Kconfig
net/netfilter/xt_quota2.c