diff options
Diffstat (limited to 'nuttx/net/net_close.c')
-rw-r--r-- | nuttx/net/net_close.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/nuttx/net/net_close.c b/nuttx/net/net_close.c index f8f733a4a..6b5fde4c9 100644 --- a/nuttx/net/net_close.c +++ b/nuttx/net/net_close.c @@ -56,6 +56,7 @@ #include "net.h" #include "uip/uip.h" +#include "pkt/pkt.h" /**************************************************************************** * Pre-processor Definitions @@ -436,7 +437,7 @@ int psock_close(FAR struct socket *psock) #ifdef CONFIG_NET_PKT case SOCK_RAW: { - struct uip_pkt_conn *conn = psock->s_conn; + FAR struct pkt_conn_s *conn = psock->s_conn; /* Is this the last reference to the connection structure (there * could be more if the socket was dup'ed). @@ -446,8 +447,8 @@ int psock_close(FAR struct socket *psock) { /* Yes... free the connection structure */ - conn->crefs = 0; /* No more references on the connection */ - uip_pktfree(psock->s_conn); /* Free uIP resources */ + conn->crefs = 0; /* No more references on the connection */ + pkt_free(psock->s_conn); /* Free uIP resources */ } else { |