[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20150114155507.GC1869@nanopsycho.orion>
Date: Wed, 14 Jan 2015 16:55:07 +0100
From: Jiri Pirko <jiri@...nulli.us>
To: Alexei Starovoitov <ast@...mgrid.com>
Cc: Daniel Borkmann <dborkman@...hat.com>,
Network Development <netdev@...r.kernel.org>,
"David S. Miller" <davem@...emloft.net>,
Jamal Hadi Salim <jhs@...atatu.com>,
Hannes Frederic Sowa <hannes@...hat.com>
Subject: Re: [patch net-next 1/2 v3] tc: add BPF based action
Wed, Jan 14, 2015 at 04:39:34PM CET, ast@...mgrid.com wrote:
>On Wed, Jan 14, 2015 at 5:28 AM, Daniel Borkmann <dborkman@...hat.com> wrote:
>>
>> I'm still wondering about the drop semantics ... wouldn't it be more
>> intuitive to use 0 for drops in this context?
>
>good point.
>I think it must be 0 to match behavior of socket filters, etc.
>If program tries to access beyond packet size or does divide
>by zero if will be terminated and will return 0.
>So zero should be the safest action from caller point of view.
Will do. Thanks!
--
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