2018-05-14 09:03:37 -04:00
|
|
|
/*
|
|
|
|
* dhcpserver dependecy injection -- preincluded to inject interface test functions into static variables
|
2020-11-10 02:40:01 -05:00
|
|
|
*
|
2018-05-14 09:03:37 -04:00
|
|
|
*/
|
2018-05-15 09:49:10 -04:00
|
|
|
#include "no_warn_host.h"
|
2018-05-14 09:03:37 -04:00
|
|
|
#include "lwip/pbuf.h"
|
|
|
|
#include "lwip/udp.h"
|
|
|
|
#include "tcpip_adapter.h"
|
|
|
|
|
2018-09-14 08:30:03 -04:00
|
|
|
#ifndef BUILDING_DEF
|
|
|
|
|
2018-05-14 09:03:37 -04:00
|
|
|
static void handle_dhcp(void *arg, struct udp_pcb *pcb, struct pbuf *p, const ip_addr_t *addr, u16_t port);
|
|
|
|
|
|
|
|
void (*dhcp_test_static_handle_hdcp)(void *arg, struct udp_pcb *pcb, struct pbuf *p, const ip_addr_t *addr, u16_t port) = NULL;
|
|
|
|
|
2019-07-16 05:33:30 -04:00
|
|
|
void dhcp_test_init_di(void)
|
2018-05-14 09:03:37 -04:00
|
|
|
{
|
|
|
|
dhcp_test_static_handle_hdcp = handle_dhcp;
|
|
|
|
}
|
|
|
|
|
|
|
|
void dhcp_test_handle_dhcp(void *arg, struct udp_pcb *pcb, struct pbuf *p, const ip_addr_t *addr, u16_t port)
|
|
|
|
{
|
|
|
|
dhcp_test_static_handle_hdcp(arg, pcb, p, addr, port);
|
|
|
|
}
|
2018-09-14 08:30:03 -04:00
|
|
|
|
2020-11-10 02:40:01 -05:00
|
|
|
#endif
|