mirror of
https://github.com/troglobit/finit.git
synced 2026-10-01 13:33:09 +07:00
Coverity suggests validating against only a set of known characters. However, the kernel allows just about all characters in an interface name. This version of valdiate_ifname() is blatantly stolen, more or less, from linux/net/core/dev.c https://code.woboq.org/linux/linux/net/core/dev.c.html#1020 Signed-off-by: Joachim Wiberg <troglobit@gmail.com>