summaryrefslogtreecommitdiffstats
path: root/src/if.h
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2017-05-20 13:51:41 +0100
committerRoy Marples <roy@marples.name>2017-05-22 09:50:21 +0100
commitf58a7db77fd3dfec7f0d5c3630ecf906f300e9c1 (patch)
treedb9a3cf9bc03e6cec6f82352d7a791da4ef43fcb /src/if.h
parent3cf33877235502a3998fae72d4a1ac657ceb815e (diff)
downloaddhcpcd-f58a7db77fd3dfec7f0d5c3630ecf906f300e9c1.tar.xz
Hardware Address validation
Summary: The all zero's and all one's hardware address are reserved. As such, they should not be used in dhcpcd. Likewise, Router Solicitation messages should not contain an all zero source address option. Fixes T119. Test Plan: Request IPv6RA over a PPP interface on a suitable OS which assigns an all zero's or all one's hardware address. Maniphest Tasks: T119 Differential Revision: https://dev.marples.name/D114
Diffstat (limited to 'src/if.h')
-rw-r--r--src/if.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/if.h b/src/if.h
index fd5f3101..b3544f5b 100644
--- a/src/if.h
+++ b/src/if.h
@@ -111,6 +111,7 @@ int if_getifaddrs(struct ifaddrs **);
int if_setflag(struct interface *ifp, short flag);
#define if_up(ifp) if_setflag((ifp), (IFF_UP | IFF_RUNNING))
+bool if_valid_hwaddr(const uint8_t *, size_t);
struct if_head *if_discover(struct dhcpcd_ctx *, int, char * const *);
struct interface *if_find(struct if_head *, const char *);
struct interface *if_findindex(struct if_head *, unsigned int);