Add compile time sanity check for interface name lengths.
Because our interfaces include UNIX domain sockets, we are using UNIX_PATH_MAX of 108 bytes for our interface names. Even though IF_NAMESIZE is much smaller (16 bytes), there is nothing that guarantees this. This patch adds a compile time sanity check that tests whether the interface name will fit. Signed-off-by: Richard Cochran <richardcochran@gmail.com>master
parent
d513ecac9c
commit
20a229e168
Loading…
Reference in New Issue