History log of /freebsd-current/tests/sys/common/divert.py
Revision Date Author Comments
# d0b2dbfa 16-Aug-2023 Warner Losh <imp@FreeBSD.org>

Remove $FreeBSD$: one-line sh pattern

Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/


# 5e4ae306 26-Dec-2022 Gleb Smirnoff <glebius@FreeBSD.org>

tests/divert: use PF_DIVERT

Now all Python ports has been patched to support PF_DIVERT, and
Python kinda promises to add support in 3.12 [1].

This reverts commit 322b5b7c16666c40d2763f18c1a51e6f0580d4e9.

[1] https://github.com/python/cpython/pull/96536#issuecomment-1303974686


# 322b5b7c 06-Sep-2022 Gleb Smirnoff <glebius@FreeBSD.org>

tests: partial revert of 4627bc1e90fd17c8d4f44de6b932d456b67661fc

Python's socketmodule isn't able to construct sockaddr when it doesn't
recognize the address family. Until this is solved in python let the
tests use the compatibility way to create divert(4) socket.


# 4627bc1e 30-Aug-2022 Gleb Smirnoff <glebius@FreeBSD.org>

tests: use PF_DIVERT/SOCK_RAW instead of PF_INET/SOCK_RAW/IPPROTO_DIVERT


# 6913bf4c 12-Nov-2021 Gleb Smirnoff <glebius@FreeBSD.org>

tests/divert: fix after 2ce85919bbba (IP source address validation)

Just make the test packet more legitimate.

Reviewed by: melifaro


# a26e895f 12-May-2021 Kristof Provost <kp@FreeBSD.org>

tests: Only log critical errors from scapy

Since 2.4.5 scapy started issuing warnings about a few different
configurations during our tests. These are harmless, but they generate
stderr output, which upsets atf_check.

Configure scapy to only log critical errors (and thus not warnings) to
fix these tests.

MFC after: 1 week
Sponsored by: Rubicon Communications, LLC ("Netgate")


# 2207447b 14-Feb-2020 Alexander V. Chernikov <melifaro@FreeBSD.org>

Add basic IPDIVERT tests.

Reviewed by: lwhsu,kp
Differential Revision: https://reviews.freebsd.org/D23316