History log of /freebsd/tests/sys/netpfil/pf/icmp.py (Results 1 – 8 of 8)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 13cd0f9c 18-Jul-2025 Kristof Provost <kp@FreeBSD.org>

pf tests: test truncated IP options in ICMP payload

Sponsored by: Rubicon Communications, LLC ("Netgate")


# 92155f8b 16-Jul-2025 Kristof Provost <kp@FreeBSD.org>

pf tests: don't set interface on scapy's sr1()

That's not supported:
> /usr/local/lib/python3.11/site-packages/scapy/sendrecv.py:726: SyntaxWarning: 'iface' has no effect on L3 I/O sr1().

Sponsored

pf tests: don't set interface on scapy's sr1()

That's not supported:
> /usr/local/lib/python3.11/site-packages/scapy/sendrecv.py:726: SyntaxWarning: 'iface' has no effect on L3 I/O sr1().

Sponsored by: Rubicon Communications, LLC ("Netgate")

show more ...


# 9c95fcb7 09-Jul-2025 Ronald Klop <ronald@klop.ws>

tests: Get the MAC from the epairs.

This removes knowledge of the implementation of if_epair.
Makes it easier to modify if_epair in future commits.

Reviewed by: kp
Differential Revision: https://re

tests: Get the MAC from the epairs.

This removes knowledge of the implementation of if_epair.
Makes it easier to modify if_epair in future commits.

Reviewed by: kp
Differential Revision: https://reviews.freebsd.org/D51205

show more ...


Revision tags: release/14.3.0-p1, release/14.2.0-p4, release/13.5.0-p2
# 32f793e2 27-Jun-2025 Kristof Provost <kp@FreeBSD.org>

pf tests: test handling of ICMP echo requests with the same ID

We previously broke this, so add a test to prevent regressions.

Sponsored by: Rubicon Communications, LLC ("Netgate")


Revision tags: release/14.3.0, release/13.4.0-p5, release/13.5.0-p1, release/14.2.0-p3, release/13.5.0, release/14.2.0-p2, release/14.1.0-p8, release/13.4.0-p4
# 86f2641b 19-Feb-2025 Kristof Provost <kp@FreeBSD.org>

pf: fix icmp-in-icmp handling with if-bound states

When we receive an ICMP packet containing another ICMP packet we look up the
original ICMP state. This is done through a second struct pf_pdesc ('p

pf: fix icmp-in-icmp handling with if-bound states

When we receive an ICMP packet containing another ICMP packet we look up the
original ICMP state. This is done through a second struct pf_pdesc ('pd2'),
containing relevant information (i.e. addresses, type, id, ..).
pd2 did not contain the network interface ('kif'), leading to state lookup
failures. This only affected if-bound mode, because floating states match all
interfaces.

Set kif in pd2.

Extend the icmp.py:test_fragmentation_needed test case to use if-bound mode. It
already checked that we handled icmp-in-icmp correctly.

PR: 284866
MFC after: 2 weeks
Sponsored by: Rubicon Communications, LLC ("Netgate")

show more ...


# 65cc5af1 12-Feb-2025 Jose Luis Duran <jlduran@FreeBSD.org>

sys tests: Add scapy as a required program

These atf-python tests rely on scapy to run.
Add it as a required program.

Reported by: glebius, kp
Reviewed by: kp
Approved by: emaste (mentor)
MFC after

sys tests: Add scapy as a required program

These atf-python tests rely on scapy to run.
Add it as a required program.

Reported by: glebius, kp
Reviewed by: kp
Approved by: emaste (mentor)
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D48946

show more ...


# fffedd81 03-Feb-2025 Kristof Provost <kp@FreeBSD.org>

pf: send ICMP destination unreachable fragmentation needed when appropriate

Just like we do for IPv6, generate an ICMP fragmentation needed packet if we're
going to need fragmenation for IPv4 as wel

pf: send ICMP destination unreachable fragmentation needed when appropriate

Just like we do for IPv6, generate an ICMP fragmentation needed packet if we're
going to need fragmenation for IPv4 as well (i.e. DF is set). Do so before full
processing, so we generate it with pre-NAT addreses, just as we do for IPv6.

Sponsored by: Rubicon Communications, LLC ("Netgate")
Differential Revision: https://reviews.freebsd.org/D48805

show more ...


Revision tags: release/14.1.0-p7, release/14.2.0-p1, release/13.4.0-p3, release/14.2.0, release/13.4.0
# b27d3f71 28-Aug-2024 Kristof Provost <kp@FreeBSD.org>

pf tests: improved test for CVE-2019-5598

Ensure that we verify that the inner and outer IP address matches for ICMP error
messages. This is a more detailed test for CVE-2019-5598, which was fixed b

pf tests: improved test for CVE-2019-5598

Ensure that we verify that the inner and outer IP address matches for ICMP error
messages. This is a more detailed test for CVE-2019-5598, which was fixed back
in 2019.

Sponsored by: Rubicon Communications, LLC ("Netgate")
Differential Revision: https://reviews.freebsd.org/D46573

show more ...