fixed debug output to show the correct remote address

This commit is contained in:
nifi 2009-06-29 12:31:03 +00:00
parent 1cdbda249a
commit 89ce58f576

View file

@ -63,7 +63,7 @@ tcpip_handler(void)
if(uip_newdata()) {
((char *)uip_appdata)[uip_datalen()] = 0;
PRINTF("Server received: '%s' from ", (char *)uip_appdata);
PRINT6ADDR(&server_conn->ripaddr);
PRINT6ADDR(&UIP_IP_BUF->srcipaddr);
PRINTF("\n");
uip_ipaddr_copy(&server_conn->ripaddr, &UIP_IP_BUF->srcipaddr);