Skip to contentSkip to conversation

tests: shell: add fwd to/fwd ip to test cases

PATCH New Florian Westphal 1 participant 1 message Apr 17 netfilter

lore
Share & tools
lore

Florian Westphal

author maintainer
#0 lore raw

PATCH 1/1 tests: shell: add fwd to/fwd ip to test cases

Tests 'fwd to <dev>' and 'fwd ip ip <addr> device <dev>' expression in both ingress and egress hooks.

'fwd to' is raw frame forward.
'fwd ip to' uses 'neigh' layer to update mac address.

Assisted-by Claude:claude-opus-4-5

---
NB: I'm not found of these AI tags, I don't think they provide value. Adding only because kernel asks to do it and I'd like to hear your thoughts on what nf userspace should do.

If you see no value, I'll no longer add it for userspace work.

 .../testcases/packetpath/dumps/fwd.nodump     |   0
 .../testcases/packetpath/dumps/fwd_ip.nodump  |   0
 tests/shell/testcases/packetpath/fwd          | 168 ++++++++++++++++++
 tests/shell/testcases/packetpath/fwd_ip       | 156 ++++++++++++++++
 4 files changed, 324 insertions(+)
 create mode 100644 tests/shell/testcases/packetpath/dumps/fwd.nodump
 create mode 100644 tests/shell/testcases/packetpath/dumps/fwd_ip.nodump
 create mode 100755 tests/shell/testcases/packetpath/fwd
 create mode 100755 tests/shell/testcases/packetpath/fwd_ip
tests/shell/testcases/packetpath/dumps/fwd.nodump new file +0 -0
new file mode 100644
index 000000000000..e69de29bb2d1
tests/shell/testcases/packetpath/dumps/fwd_ip.nodump new file +0 -0
new file mode 100644
index 000000000000..e69de29bb2d1
tests/shell/testcases/packetpath/fwd new file +168 -0

168 lines not on this page · raw message

tests/shell/testcases/packetpath/fwd_ip new file +156 -0

156 lines not on this page · raw message

Signature · 1 line
2.52.0