From: Stephen Hemminger <shemminger@vyatta.com>
To: krunal patel <krunal.raj@gmail.com>
Cc: netfilter-devel@vger.kernel.org
Subject: Re: socket filter
Date: Thu, 19 Aug 2010 22:04:31 -0700 [thread overview]
Message-ID: <20100819220431.381da765@nehalam> (raw)
In-Reply-To: <AANLkTi=_YJTBy5pPfgBAi-cNt=ock0UGGcdD=X94YtUg@mail.gmail.com>
On Fri, 20 Aug 2010 09:57:33 +0530
krunal patel <krunal.raj@gmail.com> wrote:
> Hi,
>
> There are ioctl's for attaching bpf like filters to socket. I found it
> in kernel documentation.
> setsockopt(sockfd, SOL_SOCKET, SO_ATTACH_FILTER, &Filter, sizeof(Filter));
> I doubt is can we attach filters in case of netlink socket.
> I am logging all packets using ULOG target and using ulogd.
> Is it possible to use same ioctl for netlink socket we create in ulogd?
You can use socket filters on netlink sockets since 2.6.26
next prev parent reply other threads:[~2010-08-20 5:04 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-20 4:27 socket filter krunal patel
2010-08-20 5:04 ` Stephen Hemminger [this message]
[not found] ` <AANLkTimqZR0S0H_SO=xkBEWbC2zc92gSFp4hi=EpFTP5@mail.gmail.com>
2010-08-21 10:11 ` Fwd: " krunal patel
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=20100819220431.381da765@nehalam \
--to=shemminger@vyatta.com \
--cc=krunal.raj@gmail.com \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).