mirror of
https://github.com/opnsense/src.git
synced 2026-03-09 01:30:47 -04:00
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 |
||
|---|---|---|
| .. | ||
| getaddrinfo | ||
| ether_test.c | ||
| eui64_aton_test.c | ||
| eui64_ntoa_test.c | ||
| link_addr_test.cc | ||
| Makefile | ||
| Makefile.depend | ||
| test-eui64.h | ||