mirror of
https://github.com/opnsense/src.git
synced 2026-06-05 06:42:56 -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
|
||
|---|---|---|
| .. | ||
| getaddrinfo | ||
| ether_test.c | ||
| eui64_aton_test.c | ||
| eui64_ntoa_test.c | ||
| link_addr_test.cc | ||
| Makefile | ||
| Makefile.depend | ||
| test-eui64.h | ||