[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <1255954325.21059.3.camel@dogo.mojatatu.com>
Date: Mon, 19 Oct 2009 08:12:05 -0400
From: jamal <hadi@...erus.ca>
To: Maciej Żenczykowski <zenczykowski@...il.com>
Cc: Eric Dumazet <eric.dumazet@...il.com>, netdev@...r.kernel.org,
David Miller <davem@...emloft.net>,
Atis Elsts <atis@...rotik.com>
Subject: Re: [PATCH][RFC]: ingress socket filter by mark
On Sun, 2009-10-18 at 16:09 -0700, Maciej Żenczykowski wrote:
>
> I agree that being able to filter on mark in bpf makes a lot of sense.
I agree as well - i posted a patch yesterday; i just tested it and it
works so i will formally post it shortly.
> I wonder if we're not hitting the filters potentially before the mark
> is set though (on receive at least)...
> I'm nowhere near sure but I think packets get diverted/cloned to
> tcpdump before they hit the ip stack (and thus potentially get marked
> by ip(6)table mangle rules)
There are many ways to mark the packets before they get to the socket.
tc ingress provides at least two ways (ipt action and recently posted
patch by me on skbedit); iptables as well.
cheers,
jamal
--
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