All of lore.kernel.org
 help / color / mirror / Atom feed
From: Pablo Neira Ayuso <pablo@netfilter.org>
To: Eric Leblond <eric@inl.fr>
Cc: netfilter-devel@vger.kernel.org
Subject: Re: [ULOGD2 PATCH 2/4] Add parsing module for raw.mac.
Date: Thu, 24 Jul 2008 09:10:59 +0200	[thread overview]
Message-ID: <48882B03.2030806@netfilter.org> (raw)
In-Reply-To: <1216848048-13516-2-git-send-email-eric@inl.fr>

Eric Leblond wrote:
> This patch adds a module named RAWMAC which is in charge of parsing the
> hardware header to extract source and destination hardware address.

I think that this should be merged with MAC2STR, can you see any other
potential user of this information apart from the string converter?
Also, it would be nice to rename it to HW2STR instead.

Minor glitch below:

> +static int parse_rawmac(struct ulogd_key *ret, struct ulogd_key *inp, int type)
> +{
> +	switch (type) {
> +		case ARPHRD_ETHER:
> +			return parse_ethernet(ret, inp);
> +		default:
> +			ulogd_log(ULOGD_NOTICE, "Unsupported hardware type (%d), "
> +				  "unable to parse.\n", GET_VALUE(ret, KEY_RAW_TYPE).ui16);

This can generate lots of log messages. I prefer to remove this and
document that only ethernet is supported at the moment.

-- 
"Los honestos son inadaptados sociales" -- Les Luthiers

  reply	other threads:[~2008-07-24  7:11 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-23 21:20 [ULOGD2 PATCH 2/4] Add parsing module for raw.mac Eric Leblond
2008-07-24  7:10 ` Pablo Neira Ayuso [this message]
2008-07-24  7:37   ` Eric Leblond
2008-07-24 17:16     ` Eric Leblond
2008-07-26 15:43       ` [ULOGD2 PATCH 0/2] MAC2STR rework Eric Leblond
2008-07-26 15:43       ` [ULOGD2 PATCH 1/2] Add hardware address parsing to MAC2STR Eric Leblond
2008-07-29 10:18         ` Pablo Neira Ayuso
2008-07-26 15:43       ` [ULOGD2 PATCH 2/2] Rename MAC2STR to HWHDR Eric Leblond

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=48882B03.2030806@netfilter.org \
    --to=pablo@netfilter.org \
    --cc=eric@inl.fr \
    --cc=netfilter-devel@vger.kernel.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.