From 209946a0551b598b72ee30cb23231c8f7f06c8e5 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Fri, 6 Sep 2013 09:34:14 -0600 Subject: [PATCH] Update to previous change from Max Holtzberg --- net/Makefile | 2 +- net/net_monitor.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/net/Makefile b/net/Makefile index 5c4812b9c5..46ad34afa0 100644 --- a/net/Makefile +++ b/net/Makefile @@ -76,7 +76,7 @@ NETDEV_CSRCS = netdev_register.c netdev_ioctl.c net_poll.c netdev_txnotify.c \ netdev_foreach.c netdev_unregister.c netdev_sem.c ifeq ($(CONFIG_NET_RXAVAIL),y) -NETDEV_CSRCS +=netdev_rxnotify.c +NETDEV_CSRCS += netdev_rxnotify.c endif include uip/Make.defs diff --git a/net/net_monitor.c b/net/net_monitor.c index 12907fa42d..cf4ffd73f4 100644 --- a/net/net_monitor.c +++ b/net/net_monitor.c @@ -138,7 +138,7 @@ int net_startmonitor(FAR struct socket *psock) * the monitoring callback.) */ - if (conn->tcpstateflags == UIP_CLOSED) + if ((conn->tcpstateflags & UIP_CLOSED) != 0) { connection_event(conn, UIP_CLOSE); }