History log of /freebsd-current/tests/sys/net/if_epair.c
Revision Date Author Comments
# b3e76948 16-Aug-2023 Warner Losh <imp@FreeBSD.org>

Remove $FreeBSD$: two-line .h pattern

Remove /^\s*\*\n \*\s+\$FreeBSD\$$\n/


# 942d05e3 26-Jan-2022 Gleb Smirnoff <glebius@FreeBSD.org>

tests/sys/net/epair: don't leak the interface after the test


# 8ccf5032 03-Mar-2020 Olivier Cochard <olivier@FreeBSD.org>

Skip if_epair regression test if module doesn't exist

Approved by: kp
Sponsored by: Netflix
Differential Revision: https://reviews.freebsd.org/D23876


# 50214f86 01-Feb-2020 Kristof Provost <kp@FreeBSD.org>

tests: epair: Don't fail if we load if_epair

kldload() returns a positive integer when it loads a ko, so check that the
return value is -1 to detect error cases, not that it's different from zero.

MFC after: 3 days
X-MFC-With: r357234


# 7bde621b 01-Feb-2020 Kristof Provost <kp@FreeBSD.org>

tests: epair: Don't fail if the if_epair module is already loaded

kldload() returns an error (EEXIST) if the module is already loaded.
That's not a problem for us, so ignore that error.

While here also clean up include statements.

MFC after: 3 days
X-MFC-With: r357234


# 5458a63b 28-Jan-2020 Kristof Provost <kp@FreeBSD.org>

tests: Test for an epair panic

if_epair abused the ifr_data field to insert its second interface in
IFC_IFLIST. If userspace provides a value for ifr_data it would get
dereferenced by the kernel leading to a panic.

Reported by: Ilja Van Sprundel <ivansprundel@ioactive.com>
MFC after: 3 days