All of lore.kernel.org
 help / color / mirror / Atom feed
* IPv4 Evil Bit
@ 2023-06-07 11:17 Marek Küthe
  2023-06-07 13:30 ` Kerin Millar
  2023-06-07 14:38 ` Paul Robert Marino
  0 siblings, 2 replies; 8+ messages in thread
From: Marek Küthe @ 2023-06-07 11:17 UTC (permalink / raw)
  To: netfilter

[-- Attachment #1: Type: text/plain, Size: 838 bytes --]

Hello,

I hope I am in the right place. I have two questions about nftables:

1) Is it possible to perform OR operations in nftables? For example
`ip6 saddr ::/128 OR ip saddr 127.0.0.1/8 accept;` As far as I
understand it, everything else is concatenated with AND.

2) I want to see how many IPv4 packets I can get with the Evil Bit
(RFC3514). Since there seems to be no native function for this in
nftables, I seem to have to use raw payload expression. So I have
set up the following:

@th,6,1 & 0x80 = 0x80 \
    log prefix "[nftables] Evil bit: " counter reject;

However, `Error: syntax error, unexpected '='` appears. What is the
reason for this? How can I formulate this expression correctly?

I would really appreciate your answers!

Greetings
Marek Küthe

-- 
Marek Küthe
m.k@mk16.de
er/ihm he/him

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

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

end of thread, other threads:[~2023-06-08  9:56 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-06-07 11:17 IPv4 Evil Bit Marek Küthe
2023-06-07 13:30 ` Kerin Millar
2023-06-08  7:51   ` Marek Küthe
2023-06-08  8:03     ` Florian Westphal
2023-06-07 14:38 ` Paul Robert Marino
2023-06-08  7:58   ` Marek Küthe
2023-06-08  8:07     ` Kerin Millar
2023-06-08  9:56     ` Paul Robert Marino

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.