All of lore.kernel.org
 help / color / mirror / Atom feed
* Getting error "Error: missing hook and priority in flowtable declaration" in nftables 1.0.9
@ 2023-11-19 14:40 Martin Gignac
  0 siblings, 0 replies; 5+ messages in thread
From: Martin Gignac @ 2023-11-19 14:40 UTC (permalink / raw)
  To: netfilter

Hi,

I'm seeing a difference in behavior between nftables 1.0.7 and 1.0.9
with regards to flowtables:

    # nft -v
    nftables v1.0.7 (Old Doc Yak)
    # ip link add dummy1 type dummy
    # ip link set dummy1 up
    # nft 'create flowtable inet filter f1 { hook ingress priority 0; counter }'
    # nft 'add flowtable inet filter f1 { devices = { dummy1 } ; }'
    (no output)


    # nft -v
    nftables v1.0.9 (Old Doc Yak #3)
    # ip link add dummy1 type dummy
    # ip link set dummy1 up
    # nft 'create flowtable inet filter f1 { hook ingress priority 0; counter }'
    # nft 'add flowtable inet filter f1 { devices = { dummy1 } ; }'
    Error: missing hook and priority in flowtable declaration
    add flowtable inet filter f1 { devices = { dummy1 } ; }
                             ^^^^^^^^^^^^^^^^^^^^^^^^

I don't understand the error: "Error: missing hook and priority in
flowtable declaration" since I HAVE indicated a hook and priority with
the command "nft 'create flowtable inet filter f1 { hook ingress
priority 0; counter }'", which worked before, but now doesn't.

What am I missing?

Thanks,
-Martin

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Getting error "Error: missing hook and priority in flowtable declaration" in nftables 1.0.9
@ 2023-11-19 21:36 Martin Gignac
  2023-11-22  9:25 ` Pablo Neira Ayuso
  0 siblings, 1 reply; 5+ messages in thread
From: Martin Gignac @ 2023-11-19 21:36 UTC (permalink / raw)
  To: netfilter

(resending because not sure the first time went through)

Hi,

I'm seeing a difference in behavior between nftables 1.0.7 and 1.0.9
with regards to flowtables:

    # nft -v
    nftables v1.0.7 (Old Doc Yak)
    # ip link add dummy1 type dummy
    # ip link set dummy1 up
    # nft 'create flowtable inet filter f1 { hook ingress priority 0; counter }'
    # nft 'add flowtable inet filter f1 { devices = { dummy1 } ; }'
    (no output)


    # nft -v
    nftables v1.0.9 (Old Doc Yak #3)
    # ip link add dummy1 type dummy
    # ip link set dummy1 up
    # nft 'create flowtable inet filter f1 { hook ingress priority 0; counter }'
    # nft 'add flowtable inet filter f1 { devices = { dummy1 } ; }'
    Error: missing hook and priority in flowtable declaration
    add flowtable inet filter f1 { devices = { dummy1 } ; }
                             ^^^^^^^^^^^^^^^^^^^^^^^^

I don't understand the error: "Error: missing hook and priority in
flowtable declaration" since I HAVE indicated a hook and priority with
the command "nft 'create flowtable inet filter f1 { hook ingress
priority 0; counter }'", which worked before, but now doesn't.

What am I missing?

Thanks,
-Martin

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Getting error "Error: missing hook and priority in flowtable declaration" in nftables 1.0.9
  2023-11-19 21:36 Getting error "Error: missing hook and priority in flowtable declaration" in nftables 1.0.9 Martin Gignac
@ 2023-11-22  9:25 ` Pablo Neira Ayuso
  2023-11-22 12:37   ` Pablo Neira Ayuso
  2023-11-22 15:18   ` Martin Gignac
  0 siblings, 2 replies; 5+ messages in thread
From: Pablo Neira Ayuso @ 2023-11-22  9:25 UTC (permalink / raw)
  To: Martin Gignac; +Cc: netfilter

On Sun, Nov 19, 2023 at 04:36:53PM -0500, Martin Gignac wrote:
> (resending because not sure the first time went through)
> 
> Hi,
> 
> I'm seeing a difference in behavior between nftables 1.0.7 and 1.0.9
> with regards to flowtables:
> 
>     # nft -v
>     nftables v1.0.7 (Old Doc Yak)
>     # ip link add dummy1 type dummy
>     # ip link set dummy1 up
>     # nft 'create flowtable inet filter f1 { hook ingress priority 0; counter }'
>     # nft 'add flowtable inet filter f1 { devices = { dummy1 } ; }'
>     (no output)
> 
> 
>     # nft -v
>     nftables v1.0.9 (Old Doc Yak #3)
>     # ip link add dummy1 type dummy
>     # ip link set dummy1 up
>     # nft 'create flowtable inet filter f1 { hook ingress priority 0; counter }'
>     # nft 'add flowtable inet filter f1 { devices = { dummy1 } ; }'
>     Error: missing hook and priority in flowtable declaration
>     add flowtable inet filter f1 { devices = { dummy1 } ; }
>                              ^^^^^^^^^^^^^^^^^^^^^^^^
> 
> I don't understand the error: "Error: missing hook and priority in
> flowtable declaration" since I HAVE indicated a hook and priority with
> the command "nft 'create flowtable inet filter f1 { hook ingress
> priority 0; counter }'", which worked before, but now doesn't.
> 
> What am I missing?

This is bug of mine, apologies.

https://patchwork.ozlabs.org/project/netfilter-devel/patch/20231122085912.3098-1-pablo@netfilter.org/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Getting error "Error: missing hook and priority in flowtable declaration" in nftables 1.0.9
  2023-11-22  9:25 ` Pablo Neira Ayuso
@ 2023-11-22 12:37   ` Pablo Neira Ayuso
  2023-11-22 15:18   ` Martin Gignac
  1 sibling, 0 replies; 5+ messages in thread
From: Pablo Neira Ayuso @ 2023-11-22 12:37 UTC (permalink / raw)
  To: Martin Gignac; +Cc: netfilter

On Wed, Nov 22, 2023 at 10:26:02AM +0100, Pablo Neira Ayuso wrote:
[...]
> https://patchwork.ozlabs.org/project/netfilter-devel/patch/20231122085912.3098-1-pablo@netfilter.org/

For the record, patch is applied:

http://git.netfilter.org/nftables/commit/?id=59d304f47a121afda867d792c709bc2c81946979

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Getting error "Error: missing hook and priority in flowtable declaration" in nftables 1.0.9
  2023-11-22  9:25 ` Pablo Neira Ayuso
  2023-11-22 12:37   ` Pablo Neira Ayuso
@ 2023-11-22 15:18   ` Martin Gignac
  1 sibling, 0 replies; 5+ messages in thread
From: Martin Gignac @ 2023-11-22 15:18 UTC (permalink / raw)
  To: Pablo Neira Ayuso; +Cc: netfilter

> This is bug of mine, apologies.
>
> https://patchwork.ozlabs.org/project/netfilter-devel/patch/20231122085912.3098-1-pablo@netfilter.org/

With the patch applied everything seems to work fine.

Thanks Pablo!

Regards,
-Martin

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-11-22 15:19 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-11-19 21:36 Getting error "Error: missing hook and priority in flowtable declaration" in nftables 1.0.9 Martin Gignac
2023-11-22  9:25 ` Pablo Neira Ayuso
2023-11-22 12:37   ` Pablo Neira Ayuso
2023-11-22 15:18   ` Martin Gignac
  -- strict thread matches above, loose matches on Subject: below --
2023-11-19 14:40 Martin Gignac

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.