Xun Chen | 6 Jul 17:17 2015

Re: Retransmit too quick?

Thanks for the pointer, I will take a closer look at the timer area.

ps. I use RAW apis, without RTOS, running on TiVa platform

On 7/3/2015 12:00 PM, lwip-users-request@... wrote:
> Message: 3
> Date: Fri, 03 Jul 2015 09:37:13 -0300
> From: "Sergio R. Caprile"<scaprile@...>
> To:lwip-users@...
> Subject: Re: [lwip-users] Retransmit too quick?
> Message-ID:<559681F9.2060204@...>
> Content-Type: text/plain; charset=utf-8
>
> Yes, looks like that to me.
> Perhaps you have a broken timer implementation and it is expiring ahead
> of time ?
> Looks like a "glitch" in a real-time system.
Mohsin Madki | 4 Jul 08:03 2015
Picon

multiple netconn doesnt work parallel.

Hi everyone,

i am new to lwip and freeRTOS. 

I have created 3 netconn of which only one works at one time. attached is wireshark capture for your reference. can you plz tell me what is the problem. 

i am using lwip with freeRTOS 4.7.0. using keil5 ide. controller nuvoton nuc472. i've modified echoserver example from nuvotons website. 

Thanks & regards. 

Mohsin. 
Attachment (3.pcapng): application/octet-stream, 1353 bytes
_______________________________________________
lwip-users mailing list
lwip-users@...
https://lists.nongnu.org/mailman/listinfo/lwip-users
martinh | 3 Jul 11:16 2015

How to send data at a defined time?

Hello,

having learned that all send operations must be made from within the lwIp
context, I wonder how it could be realized to send some TCP data packages at
a certain time within the main cycle.

Let's say the main funcion has a cycle time of 30ms. This period is
interrupted by several timers. Timer12 fires after 20ms and timer13 after
30ms starting a new cycle.
Questions:
1. How could it be managed that data is transferred after timer12 has fired?
Is there away to enter lwIP context at a certain moment?
2. Is it realistic to send several data blocks within 10ms? I mean how much
time would it take until the sent callback routine is invoked and allows me
to send the next data block?

Does anybody know?

Regards,
Martin H.

--
View this message in context: http://lwip.100.n7.nabble.com/How-to-send-data-at-a-defined-time-tp24656.html
Sent from the lwip-users mailing list archive at Nabble.com.
Xun Chen | 2 Jul 16:23 2015

Retransmit too quick?

Hi all,

I ran into a problem with lwip 1.4.1. For some reason, lwip decides to 
retransmit package immediately, without waiting for the ACK for the receiver

The Wireshark captures for the moment (16KB only) can be downloaded from

https://www.dropbox.com/s/zr4b4qo9c9tp20m/AckTooQuick.pcapng?dl=0

(The above capture is tiny part of a huge capture of many MBs lwip 
transferred without any trouble, the data rate is 200KB/sec)

Here you can see, the PC acks lwip TCP transfer properly (one Ack for 
every two TCP packets), untile packet #17, lwip decides to retransmit 
packet #16 immediately (only 0.3ms after #16 is transmitted).

Can anyone shine me some light on this? such as any possible mistakes in 
my lwip configuration, program flow, or error handling, etc?

Thanks for any pointer.

Chen
David Chance | 1 Jul 18:04 2015
Picon

Dead loop inside tcp_output

Hi there,

I am using lwip 1.4.1.

Once a while, my program will stay inside the following for loop forever, with the useg->next pointing back to useg, creating a dead loop

tcp_output(struct tcp_pcb *pcb){

.....

  /* useg should point to last segment on unacked queue */
  useg = pcb->unacked;
  if (useg != NULL) {
    for (; useg->next != NULL; useg = useg->next);
  }

....

I don't know how I got into this mode.

Can anyone shine me light what I could be doing wrong?

Thanks!

Dave
_______________________________________________
lwip-users mailing list
lwip-users@...
https://lists.nongnu.org/mailman/listinfo/lwip-users
jkp | 1 Jul 08:15 2015
Picon

SO_REUSEPORT is supported in LWIP 1.4.1

Hi,

I'm using LWIP Version 1.4.1 as shown below and target ARM Cortex 4 proc.
I'm using the socket option 
SO_REUSEPORT for multiple threads binding to same port and it seems like I
can't find the implementation for the same.

I used lwip_setsockopt() and it did returned me , not supported protocol.
But, in the lwip form I came to know that its already part of the LWIP stack
for quite long time. Is that I'm missing something here ?

/** X.x.x: Major version of the stack */
#define LWIP_VERSION_MAJOR      1U
/** x.X.x: Minor version of the stack */
#define LWIP_VERSION_MINOR      4U
/** x.x.X: Revision of the stack */
#define LWIP_VERSION_REVISION   1U

--
View this message in context: http://lwip.100.n7.nabble.com/SO-REUSEPORT-is-supported-in-LWIP-1-4-1-tp24649.html
Sent from the lwip-users mailing list archive at Nabble.com.
jkp | 22 Jun 14:41 2015
Picon

A Single TCP RST message resets other existing TCP Server client connections.

Hi,

I'm using lwip tcp/ip version:1.4.1 on Arm Cortex M4 Cortex processor
prototype board.

Setup:-
I've multiple TCP server( BSD Style ) running on the board listening on two
different port numbers.Client A which polls the server every 100ms, 1 sec ,
2sec etc for data. Client B is a user driver typed message.

The expected behavior of the server is to accept the msg req from client and
reply it back.

Implementation details:-
I've used select() API for both of the server Implementation in order to
accept multiple client connection support.In addition to that, I've also
implemented to restrict the client connection if no of clients goes a max
value and an Inactivity timeout which close the client connection. 

Problem description:-
One tcp client( Client A, windows console )  connects to one of the server
port as specified above and another RAW tcp client (Client B , using putty)
connection to another server port number.  All working fine and good. Now,
the problem is, if I close the client A from windows console by pressing
Ctrl C, the action results in disconnecting all the tcp server - client
connection maintained during that time with the board. When I investigated
further using wireshark, the Ctrl C issued from the console results in TCP
RST message send to the board. So, I was expecting TCP/IP close by a 4 way
handshake , but the same I can't see. So, I did close from Client B, which
result in a graceful disconnection. So, the issue is TCP RST signal results
in closing of all TCP Server-Client connection. Do anyone have an hint about
why this behavior? Is there anyway to figure out using any sockoption flags
?? If all the tcp connections were closed , which data structure should I
look for any hint ? 

Note:- I had verified again the connection with two clients and there is no
issue with connection even after the above described issue.

--
View this message in context: http://lwip.100.n7.nabble.com/A-Single-TCP-RST-message-resets-other-existing-TCP-Server-client-connections-tp24633.html
Sent from the lwip-users mailing list archive at Nabble.com.
jo.van.montfort1 | 18 Jun 09:50 2015
Picon

lwip-1.4.1 assert-- file:tcp_out.c line: 445

An assert gets triggered on following line in tcp_out.cLWIP_ASSERT("unsent_oversize mismatch (pcb vs. last_unsent)",
pcb->unsent_oversize == last_unsent->oversize_left);
TCP_OVERSIZE = TCP_MSSTCP_MSS = 1460
_______________________________________________
lwip-users mailing list
lwip-users@...
https://lists.nongnu.org/mailman/listinfo/lwip-users
Xun Chen | 16 Jun 19:05 2015

Re: Two UDP kills DHCP?

Hi Jens,

Thanks for your reply!

The current setting of MEMP_NUM_UDP_PCB is 4

attached is the lwipopts.h

Thanks!

On 6/16/2015 12:00 PM, lwip-users-request@... wrote:
> Message: 4
> Date: Tue, 16 Jun 2015 17:46:39 +0200 (CEST)
> From: Jens Nielsen<deft@...>
> To: Mailing list for lwIP users<lwip-users@...>
> Cc:lwip-users@...
> Subject: Re: [lwip-users] Two UDP kills DHCP?
> Message-ID:
> 	<1132335786.161135.1434469599748.JavaMail.defaultUser <at> defaultHost>
> Content-Type: text/plain; charset=UTF-8
>
> Hi
>
> Maybe...
>
> /* MEMP_NUM_UDP_PCB: the number of UDP protocol control blocks. One
>     per active UDP "connection". */
> #define MEMP_NUM_UDP_PCB        3
>
> If I recall correct dhcp uses a pcb from the "common" udp pool so you should set it at 3 or above if you want two
of your own at the same time.
>
> Or you can post your lwipopts.h so we can have a look
>
> BR /Jens

//*****************************************************************************
//
// lwipopts.h - Configuration file for lwIP
//
// Copyright (c) 2013-2014 Texas Instruments Incorporated.  All rights reserved.
// Software License Agreement
// 
// Texas Instruments (TI) is supplying this software for use solely and
// exclusively on TI's microcontroller products. The software is owned by
// TI and/or its suppliers, and is protected under applicable copyright
// laws. You may not combine this software with "viral" open-source
// software in order to form a larger program.
// 
// THIS SOFTWARE IS PROVIDED "AS IS" AND WITH ALL FAULTS.
// NO WARRANTIES, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING, BUT
// NOT LIMITED TO, IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
// A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. TI SHALL NOT, UNDER ANY
// CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR CONSEQUENTIAL
// DAMAGES, FOR ANY REASON WHATSOEVER.
// 
// This is part of revision 2.1.0.12573 of the EK-TM4C1294XL Firmware Package.
//
//*****************************************************************************
//
// NOTE:  This file has been derived from the lwIP/src/include/lwip/opt.h
// header file.
//
// For additional details, refer to the original "opt.h" file, and lwIP
// documentation.
//
//*****************************************************************************

#ifndef __LWIPOPTS_H__
#define __LWIPOPTS_H__

//*****************************************************************************
//
// ---------- Stellaris / lwIP Port Options ----------
//
//*****************************************************************************
#define HOST_TMR_INTERVAL               100         // default is 0
//#define DHCP_EXPIRE_TIMER_MSECS         (60 * 1000)
//#define LWIP_HTTPD_SSI                  1
//#define LWIP_HTTPD_CGI                  1
#define LWIP_HTTPD_DYNAMIC_HEADERS      1
//#define HTTPD_DEBUG                     LWIP_DBG_ON
#define EMAC_PHY_CONFIG (EMAC_PHY_TYPE_INTERNAL | EMAC_PHY_INT_MDIX_EN |      \
                         EMAC_PHY_AN_100B_T_FULL_DUPLEX)
#define PHY_PHYS_ADDR      0
#define NUM_TX_DESCRIPTORS 24
#define NUM_RX_DESCRIPTORS 8

//*****************************************************************************
//
// ---------- Platform specific locking ----------
//
//*****************************************************************************
#define SYS_LIGHTWEIGHT_PROT            1           // default is 0
#define NO_SYS                          1           // default is 0
//#define MEMCPY(dst,src,len)             memcpy(dst,src,len)
//#define SMEMCPY(dst,src,len)            memcpy(dst,src,len)

//*****************************************************************************
//
// ---------- Memory options ----------
//
//*****************************************************************************
//#define MEM_LIBC_MALLOC                 0
#define MEM_ALIGNMENT                     4
#define MEM_SIZE                          (64 * 1024)
//#define MEMP_OVERFLOW_CHECK             0
//#define MEMP_SANITY_CHECK               0
//#define MEM_USE_POOLS                   0
//#define MEMP_USE_CUSTOM_POOLS           0

//*****************************************************************************
//
// ---------- Internal Memory Pool Sizes ----------
//
//*****************************************************************************
#define MEMP_NUM_PBUF                     48    // Default 16
//#define MEMP_NUM_RAW_PCB                4
#define MEMP_NUM_UDP_PCB                4  //default is:  commented out
#define MEMP_NUM_TCP_PCB                  16    // Default 5
//#define MEMP_NUM_TCP_PCB_LISTEN         8
//#define MEMP_NUM_TCP_SEG                16
//#define MEMP_NUM_REASSDATA              5
//#define MEMP_NUM_ARP_QUEUE              30
//#define MEMP_NUM_IGMP_GROUP             8
#define MEMP_NUM_SYS_TIMEOUT              8
//#define MEMP_NUM_NETBUF                 2
//#define MEMP_NUM_NETCONN                4
//#define MEMP_NUM_TCPIP_MSG_API          8
//#define MEMP_NUM_TCPIP_MSG_INPKT        8
#define PBUF_POOL_SIZE                    48    // Default 16

//*****************************************************************************
//
// ---------- ARP options ----------
//
//*****************************************************************************
//#define LWIP_ARP                        1
//#define ARP_TABLE_SIZE                  10
//#define ARP_QUEUEING                    1
//#define ETHARP_TRUST_IP_MAC             1

//*****************************************************************************
//
// ---------- IP options ----------
//
//*****************************************************************************
//#define IP_FORWARD                      0
//#define IP_OPTIONS_ALLOWED              1
#define IP_REASSEMBLY                   0           // default is 1
#define IP_FRAG                         0           // default is 1
//#define IP_REASS_MAXAGE                 3
//#define IP_REASS_MAX_PBUFS              10
//#define IP_FRAG_USES_STATIC_BUF         1
//#define IP_FRAG_MAX_MTU                 1500
//#define IP_DEFAULT_TTL                  255

//*****************************************************************************
//
// ---------- ICMP options ----------
//
//*****************************************************************************
//#define LWIP_ICMP                       1
//#define ICMP_TTL                       (IP_DEFAULT_TTL)

//*****************************************************************************
//
// ---------- RAW options ----------
//
//*****************************************************************************
//#define LWIP_RAW                        1
//#define RAW_TTL                        (IP_DEFAULT_TTL)

//*****************************************************************************
//
// ---------- DHCP options ----------
//
//*****************************************************************************
#define LWIP_DHCP                       1           // default is 0
//#define DHCP_DOES_ARP_CHECK             ((LWIP_DHCP) && (LWIP_ARP))

//*****************************************************************************
//
// ---------- UPNP options ----------
//
//*****************************************************************************
//#define LWIP_UPNP                       0

//*****************************************************************************
//
// ---------- PTPD options ----------
//
//*****************************************************************************
#define LWIP_PTPD                       1

//*****************************************************************************
//
// ---------- AUTOIP options ----------
//
//*****************************************************************************
#define LWIP_AUTOIP                     1           // default is 0
#define LWIP_DHCP_AUTOIP_COOP           ((LWIP_DHCP) && (LWIP_AUTOIP))
                                                    // default is 0
#define LWIP_DHCP_AUTOIP_COOP_TRIES     5           // default is 9

//*****************************************************************************
//
// ---------- SNMP options ----------
//
//*****************************************************************************
//#define LWIP_SNMP                       0
//#define SNMP_CONCURRENT_REQUESTS        1
//#define SNMP_TRAP_DESTINATIONS          1
//#define SNMP_PRIVATE_MIB                0
//#define SNMP_SAFE_REQUESTS              1

//*****************************************************************************
//
// ---------- IGMP options ----------
//
//*****************************************************************************
//#define LWIP_IGMP                       0

//*****************************************************************************
//
// ---------- DNS options -----------
//
//*****************************************************************************
//#define LWIP_DNS                        0
//#define DNS_TABLE_SIZE                  4
//#define DNS_MAX_NAME_LENGTH             256
//#define DNS_MAX_SERVERS                 2
//#define DNS_DOES_NAME_CHECK             1
//#define DNS_USES_STATIC_BUF             1
//#define DNS_MSG_SIZE                    512

//*****************************************************************************
//
// ---------- UDP options ----------
//
//*****************************************************************************
#define LWIP_UDP                        1
//#define LWIP_UDPLITE                    0
//#define UDP_TTL                         (IP_DEFAULT_TTL)

//*****************************************************************************
//
// ---------- TCP options ----------
//
//*****************************************************************************
#define LWIP_TCP                        1
//#define TCP_TTL                         (IP_DEFAULT_TTL)
#define TCP_WND                         6000   // default is 2048 see https://lists.gnu.org/archive/html/lwip-users/2011-03/msg00085.html
//#define TCP_MAXRTX                      12
//#define TCP_SYNMAXRTX                   6
//#define TCP_QUEUE_OOSEQ                 1
#define TCP_MSS                        1500        // default is 128
//#define TCP_CALCULATE_EFF_SEND_MSS      1
#define TCP_SND_BUF                     (8 * TCP_MSS) //it was 4*TCP_MSS, see https://lists.gnu.org/archive/html/lwip-users/2011-03/msg00085.html
                                                    // default is 256, was 6 *
#define TCP_SND_QUEUELEN                (4 * (TCP_SND_BUF/TCP_MSS)) //default ((4 * (TCP_SND_BUF) + (TCP_MSS - 1))/(TCP_MSS))
//#define TCP_SNDLOWAT                    (TCP_SND_BUF/2)
//#define TCP_LISTEN_BACKLOG              0
//#define TCP_DEFAULT_LISTEN_BACKLOG      0xff

#define MEMP_NUM_TCP_SEG         32 //see https://lists.gnu.org/archive/html/lwip-users/2011-03/msg00085.html

//*****************************************************************************
//
// ---------- API options ----------
//
//*****************************************************************************
//#define LWIP_EVENT_API                  0
//#define LWIP_CALLBACK_API               1

//*****************************************************************************
//
// ---------- Pbuf options ----------
//
//*****************************************************************************
#define PBUF_LINK_HLEN                  16          // default is 14
#define PBUF_POOL_BUFSIZE               512
                              // PBUF_POOL_BUFSIZE default is
                              // LWIP_MEM_ALIGN_SIZE(TCP_MSS+40+PBUF_LINK_HLEN)
#define ETH_PAD_SIZE                    0           // default is 0

//*****************************************************************************
//
// ---------- Network Interfaces options ----------
//
//*****************************************************************************
//#define LWIP_NETIF_HOSTNAME             0
//#define LWIP_NETIF_API                  0
//#define LWIP_NETIF_STATUS_CALLBACK      0
//#define LWIP_NETIF_LINK_CALLBACK        0
//#define LWIP_NETIF_HWADDRHINT           0

//*****************************************************************************
//
// ---------- LOOPIF options ----------
//
//*****************************************************************************
//#define LWIP_HAVE_LOOPIF                0
//#define LWIP_LOOPIF_MULTITHREADING      1

//*****************************************************************************
//
// ---------- Thread options ----------
//
//*****************************************************************************
//#define TCPIP_THREAD_NAME              "tcpip_thread"
//#define TCPIP_THREAD_STACKSIZE          0
//#define TCPIP_THREAD_PRIO               1
//#define TCPIP_MBOX_SIZE                 0
//#define SLIPIF_THREAD_NAME             "slipif_loop"
//#define SLIPIF_THREAD_STACKSIZE         0
//#define SLIPIF_THREAD_PRIO              1
//#define PPP_THREAD_NAME                "pppMain"
//#define PPP_THREAD_STACKSIZE            0
//#define PPP_THREAD_PRIO                 1
//#define DEFAULT_THREAD_NAME            "lwIP"
//#define DEFAULT_THREAD_STACKSIZE        0
//#define DEFAULT_THREAD_PRIO             1
//#define DEFAULT_RAW_RECVMBOX_SIZE       0
//#define DEFAULT_UDP_RECVMBOX_SIZE       0
//#define DEFAULT_TCP_RECVMBOX_SIZE       0
//#define DEFAULT_ACCEPTMBOX_SIZE         0

//*****************************************************************************
//
// ---------- Sequential layer options ----------
//
//*****************************************************************************
//#define LWIP_TCPIP_CORE_LOCKING         0
#define LWIP_NETCONN                    0           // default is 1

//*****************************************************************************
//
// ---------- Socket Options ----------
//
//*****************************************************************************
#define LWIP_SOCKET                     0           // default is 1
//#define LWIP_COMPAT_SOCKETS             1
//#define LWIP_POSIX_SOCKETS_IO_NAMES     1
#define LWIP_TCP_KEEPALIVE              1 //DEFAULT IS 0
//#define LWIP_SO_RCVTIMEO                0
//#define LWIP_SO_RCVBUF                  0
//#define SO_REUSE                        0

/**
 * LWIP_TCP_KEEPALIVE==1: Enable TCP_KEEPIDLE, TCP_KEEPINTVL and TCP_KEEPCNT
 * options processing. Note that TCP_KEEPIDLE and TCP_KEEPINTVL have to be set
 * in seconds. (does not require sockets.c, and will affect tcp.c)
 *
 * See https://lists.gnu.org/archive/html/lwip-devel/2007-03/msg00049.html for more detail

 *
 */

//*****************************************************************************
//
// ---------- Statistics options ----------
//
//*****************************************************************************
//#define LWIP_STATS                      1
//#define LWIP_STATS_DISPLAY              0
//#define LINK_STATS                      1
//#define ETHARP_STATS                    (LWIP_ARP)
//#define IP_STATS                        1
//#define IPFRAG_STATS                    (IP_REASSEMBLY || IP_FRAG)
//#define ICMP_STATS                      1
//#define IGMP_STATS                      (LWIP_IGMP)
//#define UDP_STATS                       (LWIP_UDP)
//#define TCP_STATS                       (LWIP_TCP)
//#define MEM_STATS                       1
//#define MEMP_STATS                      1
//#define SYS_STATS                       1

//*****************************************************************************
//
// ---------- PPP options ----------
//
//*****************************************************************************
//#define PPP_SUPPORT                     0
//#define PPPOE_SUPPORT                   0
//#define PPPOS_SUPPORT                   PPP_SUPPORT

#if PPP_SUPPORT
//#define NUM_PPP                         1
//#define PAP_SUPPORT                     0
//#define CHAP_SUPPORT                    0
//#define MSCHAP_SUPPORT                  0
//#define CBCP_SUPPORT                    0
//#define CCP_SUPPORT                     0
//#define VJ_SUPPORT                      0
//#define MD5_SUPPORT                     0
//#define FSM_DEFTIMEOUT                  6
//#define FSM_DEFMAXTERMREQS              2
//#define FSM_DEFMAXCONFREQS              10
//#define FSM_DEFMAXNAKLOOPS              5
//#define UPAP_DEFTIMEOUT                 6
//#define UPAP_DEFREQTIME                 30
//#define CHAP_DEFTIMEOUT                 6
//#define CHAP_DEFTRANSMITS               10
//#define LCP_ECHOINTERVAL                0
//#define LCP_MAXECHOFAILS                3
//#define PPP_MAXIDLEFLAG                 100

//#define PPP_MAXMTU                      1500
//#define PPP_DEFMRU                      296
#endif

//*****************************************************************************
//
// ---------- checksum options ----------
//
//*****************************************************************************
#define CHECKSUM_GEN_IP                 0
#define CHECKSUM_GEN_ICMP               0
#define CHECKSUM_GEN_UDP                0
#define CHECKSUM_GEN_TCP                0
#define CHECKSUM_CHECK_IP               0
#define CHECKSUM_CHECK_UDP              0
#define CHECKSUM_CHECK_TCP              0

//*****************************************************************************
//
// ---------- Debugging options ----------
//
//*****************************************************************************
#if 0
#define U8_F "c"
#define S8_F "c"
#define X8_F "x"
#define U16_F "u"
#define S16_F "d"
#define X16_F "x"
#define U32_F "u"
#define S32_F "d"
#define X32_F "x"
extern void UARTprintf(const char *pcString, ...);
#define LWIP_DEBUG
#endif

//#define LWIP_DBG_MIN_LEVEL              LWIP_DBG_LEVEL_OFF
#define LWIP_DBG_MIN_LEVEL              LWIP_DBG_LEVEL_OFF
//#define LWIP_DBG_MIN_LEVEL              LWIP_DBG_LEVEL_WARNING
//#define LWIP_DBG_MIN_LEVEL              LWIP_DBG_LEVEL_SERIOUS
//#define LWIP_DBG_MIN_LEVEL              LWIP_DBG_LEVEL_SEVERE

//#define LWIP_DBG_TYPES_ON               LWIP_DBG_ON
#define LWIP_DBG_TYPES_ON               (LWIP_DBG_ON|LWIP_DBG_TRACE|          \
                                         LWIP_DBG_STATE|LWIP_DBG_FRESH)

//#define ETHARP_DEBUG                    LWIP_DBG_ON     // default is OFF
//#define NETIF_DEBUG                     LWIP_DBG_ON     // default is OFF
//#define PBUF_DEBUG                      LWIP_DBG_OFF
//#define API_LIB_DEBUG                   LWIP_DBG_OFF
//#define API_MSG_DEBUG                   LWIP_DBG_OFF
//#define SOCKETS_DEBUG                   LWIP_DBG_OFF
//#define ICMP_DEBUG                      LWIP_DBG_OFF
//#define IGMP_DEBUG                      LWIP_DBG_OFF
//#define INET_DEBUG                      LWIP_DBG_OFF
//#define IP_DEBUG                        LWIP_DBG_ON     // default is OFF
//#define IP_REASS_DEBUG                  LWIP_DBG_OFF
//#define RAW_DEBUG                       LWIP_DBG_OFF
//#define MEM_DEBUG                       LWIP_DBG_OFF
//#define MEMP_DEBUG                      LWIP_DBG_OFF
//#define SYS_DEBUG                       LWIP_DBG_OFF
//#define TCP_DEBUG                       LWIP_DBG_OFF
//#define TCP_INPUT_DEBUG                 LWIP_DBG_OFF
//#define TCP_FR_DEBUG                    LWIP_DBG_OFF
//#define TCP_RTO_DEBUG                   LWIP_DBG_OFF
//#define TCP_CWND_DEBUG                  LWIP_DBG_OFF
//#define TCP_WND_DEBUG                   LWIP_DBG_OFF
//#define TCP_OUTPUT_DEBUG                LWIP_DBG_OFF
//#define TCP_RST_DEBUG                   LWIP_DBG_OFF
//#define TCP_QLEN_DEBUG                  LWIP_DBG_OFF
//#define UDP_DEBUG                       LWIP_DBG_ON     // default is OFF
//#define TCPIP_DEBUG                     LWIP_DBG_OFF
//#define PPP_DEBUG                       LWIP_DBG_OFF
//#define SLIP_DEBUG                      LWIP_DBG_OFF
//#define DHCP_DEBUG                      LWIP_DBG_ON     // default is OFF
//#define AUTOIP_DEBUG                    LWIP_DBG_OFF
//#define SNMP_MSG_DEBUG                  LWIP_DBG_OFF
//#define SNMP_MIB_DEBUG                  LWIP_DBG_OFF
//#define DNS_DEBUG                       LWIP_DBG_OFF

#endif /* __LWIPOPTS_H__ */
_______________________________________________
lwip-users mailing list
lwip-users@...
https://lists.nongnu.org/mailman/listinfo/lwip-users
Xun Chen | 16 Jun 16:54 2015

Two UDP kills DHCP?

Hi all,

I am picking up an old lwip project to add an extra function via a new 
UDP socket.

The original project runs on lwip 1.4.1 without RTOS. It has one UDP and 
one TCP sockets, simple HTTP support, and it acquires its IP via DHCP.

The orders are like

http_init;

udp_new
udp_bind
udp_recv

tcp_new
tcp_bind
tcp_accept

It still runs fine

So I begin to add new codes to support the second UDP socket

http_init;

udp_new
udp_bind
udp_recv

p_pcb=udp_new(); <<< new UDP socket

tcp_new
tcp_bind
tcp_accept

but this new line (which did't not return any error) will cause DHCP not 
working any more, it will not acquire an IP.

I assume something may be set up wrong in lwipopts.h, but I couldn't 
figure out what

Can anyone give me a pointer?

Thanks!
rohanm | 16 Jun 15:16 2015

netconn_connect function returns error '-12'.

Hi,

I am working on the code which connects to FTP server to access files.
I am successfully able to connect a socket from the client that is able to
Login.but when i try to send a file,FTP server making call to
netconn_connect function to connect back with the client.In this scenario
netconn_connect function returns '-12' value that is 'ERR_RST'.can you
please inform why might this be happening.

thanks
rohan.

--
View this message in context: http://lwip.100.n7.nabble.com/netconn-connect-function-returns-error-12-tp24593.html
Sent from the lwip-users mailing list archive at Nabble.com.

Gmane