- /* Read the incomming packet straight into the UIP packet buffer */\r
- RNDIS_Host_ReadPacket(&Ethernet_RNDIS_Interface, uip_buf, &uip_len);\r
+/** uIP TCP/IP network stack callback function for the processing of a given UDP connection. This routine dispatches\r
+ * to the appropriate UDP protocol application based on the connection's listen port number.\r
+ */\r
+void uIPManagement_UDPCallback(void)\r
+{\r
+ /* Call the correct UDP application based on the port number the connection is listening on */\r
+ switch (uip_udp_conn->lport)\r
+ {\r
+ case HTONS(DHCPC_CLIENT_PORT):\r
+ DHCPClientApp_Callback();\r
+ break;\r
+ }\r
+}\r