• Harald Welte's avatar
    [NETFILTER]: Extend netfilter logging API · 608c8e4f
    Harald Welte authored
    This patch is in preparation to nfnetlink_log:
    - loggers now have to register struct nf_logger instead of nf_logfn
    - nf_log_unregister() replaced by nf_log_unregister_pf() and
    - add comment to ip[6]t_LOG.h to assure nobody redefines flags
    - add /proc/net/netfilter/nf_log to tell user which logger is currently
      registered for which address family
    - if user has configured logging, but no logging backend (logger) is
      available, always spit a message to syslog, not just the first time.
    - split ip[6]t_LOG.c into two parts:
      Backend: Always try to register as logger for the respective address family
      Frontend: Always log via nf_log_packet() API
    - modify all users of nf_log_packet() to accomodate additional argument
    Signed-off-by: default avatarHarald Welte <laforge@netfilter.org>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
netfilter.h 7.99 KB