X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fshared%2Fsocket-util.h;h=07d0aff72b3a95d7776781abc9c28d281fd3f998;hp=0b4998d044807096768880a4127d44f3e448eb99;hb=f1e3bee216b9eac1d5b00415617cb2ff5e894c10;hpb=f01e5736f1555eec9183e48448fa3454f265b73e diff --git a/src/shared/socket-util.h b/src/shared/socket-util.h index 0b4998d04..07d0aff72 100644 --- a/src/shared/socket-util.h +++ b/src/shared/socket-util.h @@ -23,6 +23,7 @@ #include #include +#include #include #include #include @@ -111,3 +112,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]);