summaryrefslogtreecommitdiff
path: root/libdhcp/include
diff options
context:
space:
mode:
authorLuke T. Shumaker <lukeshu@lukeshu.com>2024-10-23 21:01:46 -0600
committerLuke T. Shumaker <lukeshu@lukeshu.com>2024-10-23 21:01:46 -0600
commit39a8ac10ccefcce4e47c3dd5493a6ebe7b0e8f9a (patch)
tree73c3013c8de9bd477ff3547652a6df2e2185d7a9 /libdhcp/include
parente7378b9f9b122e05baebce387fe9c3844c0736b6 (diff)
wip
Diffstat (limited to 'libdhcp/include')
-rw-r--r--libdhcp/include/libdhcp/dhcp.h12
1 files changed, 4 insertions, 8 deletions
diff --git a/libdhcp/include/libdhcp/dhcp.h b/libdhcp/include/libdhcp/dhcp.h
index 5d9b5cb..e6b1801 100644
--- a/libdhcp/include/libdhcp/dhcp.h
+++ b/libdhcp/include/libdhcp/dhcp.h
@@ -68,12 +68,7 @@
#define _LIBDHCP_DHCP_H_
#include <libmisc/net.h>
-
-/*#define _DHCP_DEBUG_*/
-
-typedef struct {} implements_net_udpsock;
-ssize_t sendto(implements_net_udpsock *sock, void *buf, size_t len, struct net_ip4_addr addr, uint16_t port);
-ssize_t recvfrom(implements_net_udpsock *sock, void *buf, size_t len, struct net_ip4_addr *ret_addr, uint16_t *ret_port);
+#include "hw/w5500.h"
struct dhcp_lease {
struct net_ip4_addr addr;
@@ -131,12 +126,13 @@ void DHCP_time_handler(void);
*
* @note This function is always called by you main task.
*/
-uint8_t DHCP_run(implements_net_udpsock *sock, dhcp_callback_t cb);
+uint8_t DHCP_run(struct w5500 *chip, uint8_t socknum, dhcp_callback_t cb);
+//uint8_t DHCP_run(implements_net_packet_conn *sock, dhcp_callback_t cb);
/*
* @brief Stop DHCP processing
* @note If you want to restart. call DHCP_init() and DHCP_run()
*/
-void DHCP_stop(implements_net_udpsock *sock);
+void DHCP_stop(implements_net_packet_conn *sock);
#endif /* _LIBDHCP_DHCP_H_ */