[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <560BA345.40504@zonque.org>
Date: Wed, 30 Sep 2015 10:54:29 +0200
From: Daniel Mack <daniel@...que.org>
To: Jan Engelhardt <jengelh@...i.de>
Cc: Florian Westphal <fw@...len.de>, pablo@...filter.org,
daniel@...earbox.net, netfilter-devel@...r.kernel.org,
netdev@...r.kernel.org, balazs.scheidler@...abit.com
Subject: Re: [PATCH RFC 3/7] netfilter: add NF_INET_LOCAL_SOCKET_IN chain type
On 09/30/2015 09:40 AM, Jan Engelhardt wrote:
>
> On Wednesday 2015-09-30 09:24, Daniel Mack wrote:
>>
>>> Drop? Makes no sense, else application would not be running in the first
>>> place.
>>
>> Of course you can drop certain packets at this point, depending on other
>> details. Say, for instance, you want to match all packets that are
>> received by a certain task [...]
>> Another use case is accounting. If you want to know how much traffic a
>> certain service or application in your system has caused
>
> But the sk info would be available in INPUT already, would it not?
No, only for established connections, as those are subject to early
demux which sets skb->sk. For all other packets, netfilter callbacks are
called with skb->sk == NULL.
That's the whole point of this patch set ;)
Daniel
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists