Re: [nftables] tests/py: Add Test for `meta time`

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Karuna Grewal <karunagrewal98@xxxxxxxxx> wrote:
> On Tue, Mar 19, 2019 at 3:39 AM Florian Westphal <fw@xxxxxxxxx> wrote:
> >
> > Karuna Grewal <karunagrewal98@xxxxxxxxx> wrote:
> > > command: add rule ip test-ip4 input meta time 100
> > > Error: Could not process rule: Operation not supported
> >
> > This means that nft_meta.c doesn't recognize the TIME key.
> > You need to run the modified/patched kernel for this to work --
> > it looks like nft_meta_get_init() hits the "default:" switch label.
> I'm running the tests against the new modified kernel (I've applied
> the patch to kernel 5.0.2) and when I logged a debug message it
> confirms that it's indeed hitting the default switch.
> But previously running nft against the nf-next fork of the kernel was
> recognising the `meta time`. This leaves me in a bit of confusion.
> Meanwhile I'm trying to verify other things, could you please confirm
> if the kernel tree isn't any issue here.

It looks like kernel and userspace disagree on the TIME_NS meta attribute
enum value.



[Index of Archives]     [Netfitler Users]     [Berkeley Packet Filter]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux