Add RNDIS Device support to the Webserver project, so that the files stored on the device can be viewed from a web-browser while the board is plugged into a host machine.

This commit is contained in:
Dean Camera 2011-05-22 08:28:40 +00:00
parent e349974aa9
commit 3cba88e4c0
27 changed files with 939 additions and 251 deletions

View file

@ -904,10 +904,12 @@ uip_process(u8_t flag)
#if UIP_BROADCAST
DEBUG_PRINTF("UDP IP checksum 0x%04x\n", uip_ipchksum());
if(BUF->proto == UIP_PROTO_UDP &&
uip_ipaddr_cmp(&BUF->destipaddr, &uip_broadcast_addr)
/*&&
uip_ipchksum() == 0xffff*/) {
goto udp_input;
uip_ipaddr_cmp(&BUF->destipaddr, &uip_broadcast_addr))
{
if (uip_ipaddr_cmp(&BUF->srcipaddr, &uip_all_zeroes_addr))
uip_ipaddr_copy(&BUF->srcipaddr, &uip_broadcast_addr);
goto udp_input;
}
#endif /* UIP_BROADCAST */