From 4860a84c768f1b85ec3b45e020a1d550b448ccae Mon Sep 17 00:00:00 2001 From: Benjamin Franzke Date: Sun, 10 Mar 2013 14:49:21 +0100 Subject: util: Add sock_get_hwaddr And use it in econserv, instead of the hardcoded lookup for tap0. --- util.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'util.h') diff --git a/util.h b/util.h index 4d0e27d..e033e21 100644 --- a/util.h +++ b/util.h @@ -15,6 +15,8 @@ uint32_t sock_get_peer_ipv4_addr(int fd); uint32_t sock_get_netmask(int fd); +uint8_t * +sock_get_hwaddr(int fd); void set_ip(uint8_t *ipbuf, uint32_t ip); -- cgit