diff options
Diffstat (limited to 'nuttx/net/uip/uip-tcpinput.c')
-rw-r--r-- | nuttx/net/uip/uip-tcpinput.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/nuttx/net/uip/uip-tcpinput.c b/nuttx/net/uip/uip-tcpinput.c index e3271263a..11fb7cee0 100644 --- a/nuttx/net/uip/uip-tcpinput.c +++ b/nuttx/net/uip/uip-tcpinput.c @@ -120,7 +120,7 @@ void uip_tcpinput(struct uip_driver_s *dev) uip_stat.tcp.drop++; uip_stat.tcp.chkerr++; #endif - dbg("Bad TCP checksum\n"); + ndbg("Bad TCP checksum\n"); goto drop; } @@ -184,7 +184,7 @@ void uip_tcpinput(struct uip_driver_s *dev) #ifdef CONFIG_NET_STATISTICS uip_stat.tcp.syndrop++; #endif - dbg("No free TCP connections\n"); + ndbg("No free TCP connections\n"); goto drop; } @@ -279,7 +279,7 @@ found: if (BUF->flags & TCP_RST) { conn->tcpstateflags = UIP_CLOSED; - dbg("RESET - TCP state: UIP_CLOSED\n"); + ndbg("RESET - TCP state: UIP_CLOSED\n"); (void)uip_tcpcallback(dev, conn, UIP_ABORT); goto drop; @@ -396,7 +396,7 @@ found: { conn->tcpstateflags = UIP_ESTABLISHED; conn->len = 0; - vdbg("TCP state: UIP_ESTABLISHED\n"); + nvdbg("TCP state: UIP_ESTABLISHED\n"); flags = UIP_CONNECTED; @@ -481,7 +481,7 @@ found: conn->rcv_nxt[1] = BUF->seqno[1]; conn->rcv_nxt[2] = BUF->seqno[2]; conn->rcv_nxt[3] = BUF->seqno[3]; - vdbg("TCP state: UIP_ESTABLISHED\n"); + nvdbg("TCP state: UIP_ESTABLISHED\n"); uip_incr32(conn->rcv_nxt, 1); conn->len = 0; @@ -499,7 +499,7 @@ found: /* The connection is closed after we send the RST */ conn->tcpstateflags = UIP_CLOSED; - vdbg("Connection failed - TCP state: UIP_CLOSED\n"); + nvdbg("Connection failed - TCP state: UIP_CLOSED\n"); /* We do not send resets in response to resets. */ @@ -543,7 +543,7 @@ found: conn->tcpstateflags = UIP_LAST_ACK; conn->len = 1; conn->nrtx = 0; - vdbg("TCP state: UIP_LAST_ACK\n"); + nvdbg("TCP state: UIP_LAST_ACK\n"); uip_tcpsend(dev, conn, TCP_FIN | TCP_ACK, UIP_IPTCPH_LEN); return; @@ -648,7 +648,7 @@ found: if (flags & UIP_ACKDATA) { conn->tcpstateflags = UIP_CLOSED; - vdbg("UIP_LAST_ACK TCP state: UIP_CLOSED\n"); + nvdbg("UIP_LAST_ACK TCP state: UIP_CLOSED\n"); (void)uip_tcpcallback(dev, conn, UIP_CLOSE); } @@ -671,12 +671,12 @@ found: conn->tcpstateflags = UIP_TIME_WAIT; conn->timer = 0; conn->len = 0; - vdbg("TCP state: UIP_TIME_WAIT\n"); + nvdbg("TCP state: UIP_TIME_WAIT\n"); } else { conn->tcpstateflags = UIP_CLOSING; - vdbg("TCP state: UIP_CLOSING\n"); + nvdbg("TCP state: UIP_CLOSING\n"); } uip_incr32(conn->rcv_nxt, 1); @@ -688,7 +688,7 @@ found: { conn->tcpstateflags = UIP_FIN_WAIT_2; conn->len = 0; - vdbg("TCP state: UIP_FIN_WAIT_2\n"); + nvdbg("TCP state: UIP_FIN_WAIT_2\n"); goto drop; } @@ -709,7 +709,7 @@ found: { conn->tcpstateflags = UIP_TIME_WAIT; conn->timer = 0; - vdbg("TCP state: UIP_TIME_WAIT\n"); + nvdbg("TCP state: UIP_TIME_WAIT\n"); uip_incr32(conn->rcv_nxt, 1); (void)uip_tcpcallback(dev, conn, UIP_CLOSE); @@ -733,7 +733,7 @@ found: { conn->tcpstateflags = UIP_TIME_WAIT; conn->timer = 0; - vdbg("TCP state: UIP_TIME_WAIT\n"); + nvdbg("TCP state: UIP_TIME_WAIT\n"); } default: |