opnsense-src/lib/libc/tests
Lexi Winter c8759dc5fb link_addr: be more strict about address formats
instead of accepting any character as a delimiter, only accept ':', '.'
and '-', and only permit a single delimiter in an address.

this prevents accepting bizarre addresses like:

	ifconfig epair2a link 10.1.2.200/28

... which is particularly problematic on an INET6-only system, in which
case ifconfig defaults to the 'link' family, meaning that:

	ifconfig epair2a 10.1.2.200/28

... changes the Ethernet address of the interface.

bump __FreeBSD_version so link_addr() consumers can detect the change.

Reviewed by:	kp, des
Approved by:	des (mentor)
Differential Revision:	https://reviews.freebsd.org/D49936

(cherry picked from commit a1215090416b8afb346fb2ff5b38f25ba0134a3a)

Note-from-OPNsense: not bumping the FreeBSD version for stable/25.7
2025-07-09 10:05:44 +02:00
..
c063 Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
db Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
gen getentropy tests: Update after commit 473681a1a506da 2025-03-31 18:52:46 -07:00
hash Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
iconv libc: Purge unneeded cdefs.h 2023-11-26 21:20:09 -07:00
inet Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
locale libc: locale: fix EUC shift check 2025-04-25 22:19:49 -05:00
net link_addr: be more strict about address formats 2025-07-09 10:05:44 +02:00
nss Fix lib/libc/nss/getgr_test with large numbers of groups 2025-01-20 09:54:45 -07:00
regex regex: mixed sets are misidentified as singletons 2024-09-25 15:42:25 -05:00
resolv Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
rpc Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
setjmp Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
ssp libc/tests: Further refine the condition for installing h_raw 2024-07-14 12:16:32 -04:00
stdio libc: fix access mode tests in fmemopen(3) 2024-10-29 15:11:38 -04:00
stdlib libc: tests: add some tests for __cxa_atexit handling 2025-04-16 20:01:46 -05:00
stdtime strptime: Fix day-of-week calculation. 2024-12-16 10:37:08 +00:00
string lib/libc/tests/string: add memrchr unit tests 2024-01-24 20:39:30 +01:00
sys libc/sys: add errno test 2024-03-02 07:05:05 +02:00
termios Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
time Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
tls pkgbase: install all libc test files into the tests package 2024-03-27 09:37:10 +01:00
tls_dso pkgbase: install all libc test files into the tests package 2024-03-27 09:37:10 +01:00
ttyio Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
Makefile strptime: Fix day-of-week calculation. 2024-12-16 10:37:08 +00:00
Makefile.depend Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
Makefile.netbsd-tests Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00