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 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
* 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

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.