log patch
From kadlec@blackhole.kfki.hu Mon Sep 17 10:43:10 2001
Date: Thu, 29 Mar 2001 10:25:46 +0200 (CEST)
From: Jozsef Kadlecsik
To: netfilter-devel@us5.samba.org
Subject: [PATCH] -l (--log) flag
Hello,
This patch "adds back" the -l (--log) flag to iptables.
When this option is set for a rule, the kernel will print
the table name, chain name and rule number with some
information of all matching packets via printk at syslog
level debug. The option is for rule-debugging purposes
and not for regular logging - for the latter one should
use the LOG or ULOG target extensions!
This is a complete reworking of my 'trace' patch sent to the list:
- it does not depend any longer on the LOG target extension
- the restriction on the chain name length is removed, the
max rulenum in a single chain which can generate a log message
is bumped to 65535
- it logs the table name as well:
tablename chainname/rulenum packet_dump
log.patch.tgz