All of lore.kernel.org
 help / color / mirror / Atom feed
From: Fabian Hugelshofer <hugelshofer2006@gmx.ch>
To: Pablo Neira Ayuso <pablo@netfilter.org>
Cc: netfilter-devel@vger.kernel.org
Subject: Re: [PATCH 2/3] libnetlink-log byte alignment
Date: Wed, 18 Jun 2008 16:23:49 +0100	[thread overview]
Message-ID: <48592885.3060304@gmx.ch> (raw)
In-Reply-To: <48590A0A.3020102@netfilter.org>

Pablo Neira Ayuso wrote:
> Fabian Hugelshofer wrote:
>> This patch increases portability, but alignment is still not respected
>> in nflog_get_*() which still leaves libnetfilter_log unusable on
>> particular platforms.
> 
> Sorry, I lost track of this alignment issues, what's problem?

I still have problems running the nflog test utility nfunl_test. I get a 
segmentation fault when nflog_get_payload() is called as soon as the 
first packet is received. The other nflog_get* functions which are 
called before work fine (even though I did not check what they return). 
I aligned the receive buffer and actually don't see the reason for the 
segfault.

When I use libnetfilter_log in my own application it works fine as far 
as I can tell. Byte alignment problems are quite non-deterministic and 
the problem with nfunl_test indicates, that there is still a problem around.

      reply	other threads:[~2008-06-18 15:23 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-03 10:21 [PATCH 2/3] libnetlink-log byte alignment Fabian Hugelshofer
2008-06-16 20:32 ` Fabian Hugelshofer
2008-06-18 13:13   ` Pablo Neira Ayuso
2008-06-18 15:23     ` Fabian Hugelshofer [this message]

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=48592885.3060304@gmx.ch \
    --to=hugelshofer2006@gmx.ch \
    --cc=netfilter-devel@vger.kernel.org \
    --cc=pablo@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.