From: Patrick McHardy <kaber@trash.net>
To: Joakim Axelsson <gozem@gozem.se>
Cc: Harald Welte <laforge@netfilter.org>,
netfilter-devel@lists.netfilter.org
Subject: Re: ipt_LOG and friends. Question
Date: Thu, 31 Aug 2006 04:16:15 +0200 [thread overview]
Message-ID: <44F6466F.2090002@trash.net> (raw)
In-Reply-To: <20060830185211.GB8994@kriss.csbnet.se>
Joakim Axelsson wrote:
> I fixed this using some smartness. If the log prefix doesn't end in an space
> and isn't empty, i'll add the space. This should break a minimum of scripts
> as the only this will result in is an easier space to parse between prefix
> and IN=iface. Should have been there before in prefix if the log was parsed
> with scripts.
That sounds like a good idea, but people might just as well expect not
to see any spaces. The LOG target has behaved this way for many years
now, and this minor annoyance is not worth breaking things. I consider
changing the default output format as not possible. Adding an option
for this doesn't make much sense either.
> Next big problem: ip6tables doesn't have revisions. So xt_LOG in userspace
> has problems in libip6t_LOG.c. When i try to just ignore this and register
> revision 1 (ipv6) as the one and only revision i get the following error
> when using ip6tables:
> "ip6tables: Protocol wrong type for socket."
> What have i missed?
> Greping after the error in iptables userspace code gives me nothing. I guess
> this is a libc error. Where should i look?
>
> (I atucally created the file libip46t_LOG.c that both libipt_LOG.c (ipv4)
> and libipt6t_LOG.c (ipv6) #includes after defining either LIBIPT_LOG_IPV4 or
> LIBIP6T_LOG_IPV6. Since the userspace code is the very same except for some
> structs in the functions headers. This might be a somewhat ugly solution,
> but atleast better to have two files with more or less the same code.)
>
> Anyway, what is the best solution here. Adding revision-control for
> ip6tables? Add x_tables for userspace? Huge work. Atleast for me. Were can I
> cut some corners? Is it a big deal not keeping backward compability in
> ip6tables (since we don't have revisions)?
Same here, userspace needs to be kept compatible. ip6tables doesn't have
revision support currently, so the only way would be to add it. I know
Harald had some unfinished work for adding x_tables support (probably
including revision support for ip6tables) for userspace. I've CCed him,
maybe you can pick up on his work.
He's quite busy these days though, so it might take some time. If you
want to split of the printk logbuffer patch I would already submit it
for 2.6.18, its a good idea for netconsole independant of any xtables
unification.
next prev parent reply other threads:[~2006-08-31 2:16 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-08-24 14:03 ipt_LOG and friends. Question Joakim Axelsson
2006-08-24 15:19 ` Joakim Axelsson
2006-08-24 16:14 ` Patrick McHardy
2006-08-27 15:04 ` Joakim Axelsson
2006-08-28 10:57 ` Patrick McHardy
2006-08-28 12:03 ` Joakim Axelsson
2006-08-28 13:18 ` Patrick McHardy
2006-08-30 18:52 ` Joakim Axelsson
2006-08-31 2:16 ` Patrick McHardy [this message]
2006-08-24 16:11 ` Patrick McHardy
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=44F6466F.2090002@trash.net \
--to=kaber@trash.net \
--cc=gozem@gozem.se \
--cc=laforge@netfilter.org \
--cc=netfilter-devel@lists.netfilter.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.