diff options
| author | Kristof Provost <kp@FreeBSD.org> | 2025-08-12 17:22:30 +0200 |
|---|---|---|
| committer | Kristof Provost <kp@FreeBSD.org> | 2025-09-02 23:10:19 +0200 |
| commit | 67082c75f740ac63d068f154ca0f88e71a3ca960 (patch) | |
| tree | 844e154e67e1a2e490384fb9b73125d33c33597f /tests | |
| parent | 932ec59d9996af2dda50287d56186708d8388539 (diff) | |
pf: should be enforcing TTL=1 to packets sent to 224.0.0.1 only.
Issue found and kindly reported by Luca Di Gregorio <lucdig _at_ gmail>
OK bluhm@
Obtained from: OpenBSD, sashan <sashan@openbsd.org>, 58feb3ffc6
Sponsored by: Rubicon Communications, LLC ("Netgate")
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/sys/netpfil/pf/igmp.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/sys/netpfil/pf/igmp.py b/tests/sys/netpfil/pf/igmp.py index b339a2825082..5d72a1c093a7 100644 --- a/tests/sys/netpfil/pf/igmp.py +++ b/tests/sys/netpfil/pf/igmp.py @@ -93,3 +93,9 @@ class TestIGMP(VnetTestTemplate): options=[sp.IPOption_Router_Alert()]) \ / sc.igmp.IGMP(type=0x11, mrcode=1) assert not self.find_igmp_reply(pkt, ifname) + + # Or with the wrong destination address + pkt = sp.IP(dst="224.0.0.2%%%s" % ifname, ttl=2, + options=[sp.IPOption_Router_Alert()]) \ + / sc.igmp.IGMP(type=0x11, mrcode=1) + assert not self.find_igmp_reply(pkt, ifname) |
