diff --git a/arch/arm/src/lm3s/lm3s_ethernet.c b/arch/arm/src/lm3s/lm3s_ethernet.c index eff8554cec6..d626166b566 100644 --- a/arch/arm/src/lm3s/lm3s_ethernet.c +++ b/arch/arm/src/lm3s/lm3s_ethernet.c @@ -657,6 +657,7 @@ static void lm3s_receive(struct lm3s_driver_s *priv) /* We will have to drop this packet */ + ndbg("Bad packet size dropped (%d)\n", pktlen); EMAC_STAT(priv, rx_pktsize); /* This is the number of bytes and words left to read (including, @@ -763,7 +764,7 @@ static void lm3s_receive(struct lm3s_driver_s *priv) #ifdef CONFIG_DEBUG else { - ndbg("Unsupported packet type dropped (%02x)\n", ETHBUF->type); + ndbg("Unsupported packet type dropped (%02x)\n", htons(ETHBUF->type)); EMAC_STAT(priv, rx_dropped); } #endif diff --git a/net/net_poll.c b/net/net_poll.c index adbd9c1013b..fac6186c4ae 100644 --- a/net/net_poll.c +++ b/net/net_poll.c @@ -325,6 +325,7 @@ int net_poll(int sockfd, struct pollfd *fds, boolean setup) #endif /* Check if we are setting up or tearing down the poll */ + if (setup) { /* Perform the TCP/IP poll() setup */ diff --git a/net/uip/uip_tcpcallback.c b/net/uip/uip_tcpcallback.c index 45c970a9052..60000004313 100644 --- a/net/uip/uip_tcpcallback.c +++ b/net/uip/uip_tcpcallback.c @@ -1,7 +1,7 @@ /**************************************************************************** * net/uip/uip_tcpcallback.c * - * Copyright (C) 2007, 2008 Gregory Nutt. All rights reserved. + * Copyright (C) 2007-2009 Gregory Nutt. All rights reserved. * Author: Gregory Nutt * * Redistribution and use in source and binary forms, with or without