util: introduce ifname_valid_full()

This commit is contained in:
Yu Watanabe
2019-12-16 10:52:22 +09:00
parent d08d92d5ee
commit 4252696aec
3 changed files with 14 additions and 4 deletions
+4 -1
View File
@@ -130,7 +130,10 @@ int fd_inc_rcvbuf(int fd, size_t n);
int ip_tos_to_string_alloc(int i, char **s);
int ip_tos_from_string(const char *s);
bool ifname_valid(const char *p);
bool ifname_valid_full(const char *p, bool alternative);
static inline bool ifname_valid(const char *p) {
return ifname_valid_full(p, false);
}
bool address_label_valid(const char *p);
int getpeercred(int fd, struct ucred *ucred);