From: Bart De Schuymer <bdschuym-LPO8gxj9N8aZIoH1IeqzKA@public.gmane.org>
To: Harald Welte <laforge-Cap9r6Oaw4JrovVCs/uTlw@public.gmane.org>
Cc: Linux Netdev List
<netdev-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
ebtables-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: Re: Re: [PATCH] ebtables: Port ebt_[u]log.c to nf[netlink]_log
Date: Tue, 18 Oct 2005 15:12:17 +0000 [thread overview]
Message-ID: <1129648337.4504.3.camel@localhost.localdomain> (raw)
In-Reply-To: <20051018085853.GG20338-XKR8MNpNCaUy1wpV0ib6OjPN8QKu1tr+@public.gmane.org>
Op di, 18-10-2005 te 10:58 +0200, schreef Harald Welte:
> On Mon, Oct 17, 2005 at 05:59:59PM +0000, Bart De Schuymer wrote:
> > Op za, 08-10-2005 te 01:49 +0200, schreef Harald Welte:
> > > Hi Bart!
> > >
> > > The patch below is totally untested (though it compiles), and updates
> > > ebtables to resemble the behaviour that we now have in ipv4 (and ipv6):
> > > {ip,ip6,eb}tables just tell the nf_log core that they want to log a
> > > packet, the mechanism (syslog, nfnetlink_log, ...) is actually decided
> > > by nf_log.
> > >
> > > By default, everything will behave like before.
> > >
> > > Please review, and test that ebt_log and ebt_ulog are still working as
> > > expected. Thanks!
> >
> > Sorry for the late reply, some hardware problems got in the way.
>
> no problem, I probably hold the record of delayed responses, so I can
> understand that completely ;)
>
> > Apart from the comments below, the patch is fine by me (I tested both).
>
> great.
>
> > > + nf_log_packet(PF_BRIDGE, hooknr, skb, in, out, &li, info->prefix);
> >
> > Should be ebt_log_packet
>
> why is that? nf_log_packet() is a function provided by the netfilter
> core in net/netfilter/. Do you want an ebt_log_packet() wrapper function that just calls
> nf_log_packet() ?
I see it works with nf_log_packet() too. I just tried to mimic what
you're doing for ebt_ulog... Anyway, I'll accept your judgement on this.
> > > {
> > > - return ebt_register_watcher(&log);
> > > + int ret;
> > > +
> > > + ret = ebt_register_watcher(&log);
> > > + if (ret < 0)
> > > + return ret;
> > > + if (nf_log_register(PF_BRIDGE, &ebt_log_logger) < 0) {
> > > + printk(KERN_WARNING "ebt_log: not logging via system console "
> > > + "since somebody else already registered for PF_INET\n");
> > > + /* wecannot make module load fail here, since otherwise
> > > + * ebtables userspace would abort */
> > > + }
> >
> > Since we're using PF_BRIDGE instead of PF_INET now, this if construct
> > can be replaced by a simple call to nf_log_register.
>
> No, I think we only fix the comment (state PF_BRIDGE in the comment) but
> leave it like it is.
OK, but please fix the typo then. Shouldn't a similar comment be in
ebt_ulog?
cheers,
Bart
-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
next prev parent reply other threads:[~2005-10-18 15:12 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-10-07 23:49 [PATCH] ebtables: Port ebt_[u]log.c to nf[netlink]_log Harald Welte
[not found] ` <20051007234903.GR4450-5xaKNk1AN7bNqB9Gf7YOJg/oQhhTQFE7QQ4Iyu8u01E@public.gmane.org>
2005-10-11 19:31 ` Bart De Schuymer
[not found] ` <1129059110.5087.8.camel-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
2005-10-11 19:55 ` David S. Miller
[not found] ` <20051011.125506.46476570.davem-fT/PcQaiUtIeIZ0/mPfg9Q@public.gmane.org>
2005-10-11 20:49 ` Bart De Schuymer
2005-10-12 6:27 ` Harald Welte
[not found] ` <20051012062745.GB4237-d6usTx1WJblOCgDDqY8e12D2FQJk+8+b@public.gmane.org>
2005-10-12 20:10 ` Ian McDonald
2005-10-17 17:59 ` Bart De Schuymer
[not found] ` <1129571999.3383.6.camel-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
2005-10-18 8:58 ` Harald Welte
[not found] ` <20051018085853.GG20338-XKR8MNpNCaUy1wpV0ib6OjPN8QKu1tr+@public.gmane.org>
2005-10-18 15:12 ` Bart De Schuymer [this message]
[not found] ` <1129648337.4504.3.camel-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
2005-11-12 9:49 ` Harald Welte
[not found] ` <20051112094936.GA27644-XKR8MNpNCaUy1wpV0ib6OjPN8QKu1tr+@public.gmane.org>
2005-11-14 12:09 ` Ingo Oeser
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=1129648337.4504.3.camel@localhost.localdomain \
--to=bdschuym-lpo8gxj9n8azioh1ieqzka@public.gmane.org \
--cc=ebtables-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
--cc=laforge-Cap9r6Oaw4JrovVCs/uTlw@public.gmane.org \
--cc=netdev-u79uwXL29TY76Z2rM5mHXA@public.gmane.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.