From 39a8ac10ccefcce4e47c3dd5493a6ebe7b0e8f9a Mon Sep 17 00:00:00 2001 From: "Luke T. Shumaker" Date: Wed, 23 Oct 2024 21:01:46 -0600 Subject: wip --- libdhcp/include/libdhcp/dhcp.h | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'libdhcp/include') 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 - -/*#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_ */ -- cgit v1.2.3-2-g168b