Skip to content

Conversation

@brada4
Copy link

@brada4 brada4 commented Mar 22, 2024

Do not emit helper jump if no helper modules are present saving per-every-packet bytecode before ct:

inet fw4 prerouting
  [ meta load iifname => reg 1 ]
  [ cmp eq reg 1 0x6c2d7262 0x00006e61 0x00000000 0x00000000 ]
  [ immediate reg 0 jump -> helper_lan ]
  userdata = { \x00-!fw4: Handle lan IPv4/IPv6 helper assignment\x00 }

Signed-off-by: Andris PE neandris@gmail.com

Do not emit helper jump if no helper modules are present saving
per-every-packet bytecode before ct:
```
inet fw4 prerouting
  [ meta load iifname => reg 1 ]
  [ cmp eq reg 1 0x6c2d7262 0x00006e61 0x00000000 0x00000000 ]
  [ immediate reg 0 jump -> helper_lan ]
  userdata = { \x00-!fw4: Handle lan IPv4/IPv6 helper assignment\x00 }
```

Signed-off-by: Andris PE <neandris@gmail.com>
@brada4 brada4 changed the title Do not emit helper jump without helper modules ruleset: do not emit helper jump without helper modules May 19, 2025
@systemcrash
Copy link
Contributor

ping @jow-

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants