X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fshared%2Fsocket-util.h;h=2d2b9023699a142de534de50048beb46f65f6209;hb=cf1755bac0426132c21fdca519a336ce7d920277;hp=0b4998d044807096768880a4127d44f3e448eb99;hpb=f01e5736f1555eec9183e48448fa3454f265b73e;p=elogind.git diff --git a/src/shared/socket-util.h b/src/shared/socket-util.h index 0b4998d04..2d2b90236 100644 --- a/src/shared/socket-util.h +++ b/src/shared/socket-util.h @@ -23,8 +23,8 @@ #include #include +#include #include -#include #include #include @@ -111,3 +111,7 @@ int netlink_family_to_string_alloc(int b, char **s); int netlink_family_from_string(const char *s) _pure_; bool sockaddr_equal(const union sockaddr_union *a, const union sockaddr_union *b); + +#define ETHER_ADDR_TO_STRING_MAX (3*6) + +char* ether_addr_to_string(const struct ether_addr *addr, char buffer[ETHER_ADDR_TO_STRING_MAX]);