Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Roger Sala <rsala@ssci.com>
To: Roger Sala <rsala@ssci.com>
Cc: netfilter@vger.kernel.org
Subject: Re: nfnetlink_queue interfering with ioctl calls
Date: Fri, 13 Aug 2010 12:40:47 -0400	[thread overview]
Message-ID: <4C65758F.9090604@ssci.com> (raw)
In-Reply-To: <4C65526A.1030805@ssci.com>

On 08/13/2010 10:10 AM, Roger Sala wrote:
> Hi
>
> I have code that makes the SIOCGARP ioctl call that works correctly 
> (i.e. it either returns successfully when it finds a match in the arp 
> cache or it returns -1).  However when I integrate that same code with 
> nfnetlink_queue code it no longer works as expected (i.e. it returns 
> successfully (0) whether or not the address was found in the arp cache 
> and it doesn't copy the mac address into the struct arpreq).  I 
> searched the archives and didn't see anything about this.  Does anyone 
> have any idea what could be causing this?
>
>
Correction: the code actually does behave as expected if the address 
actually is in the arp cache.  It is only when it is not there that it's 
return value indicates success and nothing is copied into the struct 
arpreq.  The same code, on the same machine, running at the same time 
works as expected when not linked in with the nfnetlink_queue code.

      reply	other threads:[~2010-08-13 16:40 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-13 14:10 nfnetlink_queue interfering with ioctl calls Roger Sala
2010-08-13 16:40 ` Roger Sala [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=4C65758F.9090604@ssci.com \
    --to=rsala@ssci.com \
    --cc=netfilter@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox