From 4beccaac20d53743935632b36690fde9fa10a654 Mon Sep 17 00:00:00 2001 From: "Joseph C. Lehner" Date: Fri, 5 Feb 2016 20:23:56 +0200 Subject: [PATCH] Remove ethsock.h --- ethsock.c | 1 - main.c | 1 - nmrp.c | 1 - nmrpd.h | 10 ++++++++++ 4 files changed, 10 insertions(+), 3 deletions(-) diff --git a/ethsock.c b/ethsock.c index bebf7f6..cd3d26a 100644 --- a/ethsock.c +++ b/ethsock.c @@ -3,7 +3,6 @@ #include #include #include -#include "ethsock.h" #include "nmrpd.h" #if defined(NMRPFLASH_WINDOWS) diff --git a/main.c b/main.c index 2dfc167..41bc08b 100644 --- a/main.c +++ b/main.c @@ -21,7 +21,6 @@ #include #include #include "nmrpd.h" -#include "ethsock.h" int verbosity = 0; diff --git a/nmrp.c b/nmrp.c index 1f31e01..781a0d2 100644 --- a/nmrp.c +++ b/nmrp.c @@ -24,7 +24,6 @@ #include #include #include -#include "ethsock.h" #include "nmrpd.h" #define NMRP_HDR_LEN 6 diff --git a/nmrpd.h b/nmrpd.h index 3105b95..1794e5f 100644 --- a/nmrpd.h +++ b/nmrpd.h @@ -79,4 +79,14 @@ void sock_perror(const char *msg); extern int verbosity; +struct ethsock; + +struct ethsock *ethsock_create(const char *intf, uint16_t protocol); +int ethsock_close(struct ethsock *sock); +int ethsock_send(struct ethsock *sock, void *buf, size_t len); +ssize_t ethsock_recv(struct ethsock *sock, void *buf, size_t len); +int ethsock_set_timeout(struct ethsock *sock, unsigned msec); +uint8_t *ethsock_get_hwaddr(struct ethsock *sock); +int ethsock_list_all(void); + #endif -- 2.25.1