1 /*
2  * dhcpserver dependecy injection -- preincluded to inject interface test functions into static variables
3  *
4  */
5 #include "no_warn_host.h"
6 #include "lwip/pbuf.h"
7 #include "lwip/udp.h"
8 #include "tcpip_adapter.h"
9 
10 #ifndef BUILDING_DEF
11 
12 static void handle_dhcp(void *arg, struct udp_pcb *pcb, struct pbuf *p, const ip_addr_t *addr, u16_t port);
13 
14 void (*dhcp_test_static_handle_hdcp)(void *arg, struct udp_pcb *pcb, struct pbuf *p, const ip_addr_t *addr, u16_t port) = NULL;
15 
dhcp_test_init_di(void)16 void dhcp_test_init_di(void)
17 {
18     dhcp_test_static_handle_hdcp = handle_dhcp;
19 }
20 
dhcp_test_handle_dhcp(void * arg,struct udp_pcb * pcb,struct pbuf * p,const ip_addr_t * addr,u16_t port)21 void dhcp_test_handle_dhcp(void *arg, struct udp_pcb *pcb, struct pbuf *p, const ip_addr_t *addr, u16_t port)
22 {
23     dhcp_test_static_handle_hdcp(arg, pcb, p, addr, port);
24 }
25 
26 #endif
27