Re: [lwip-users] LLDP Implementation for 1.4.1

2016-11-15 Thread Amit Ashara
Hello Simon,

Thanks for the list of to-do items. How do I open a patch tracker?

1. As for the heap allocation, it is being released after the packet is
transmitted.
2. Should I remove the opt.h and stats.h defines being integrated in the
lldp.c file?
3. The protocol values are required for LLDP and I checked the other file
for protocol definition and it was kept in ethernetif.h and hence I
followed the same structure. Where do you suggest I move the same?

On Mon, Nov 14, 2016 at 2:52 AM, Simon Goldschmidt  wrote:

> Amit Ashara wrote:
> > [..] The function that the receive performs is highly varied based on
> the context of the TLV.
>
> That's also true for transmission. E.g. going back to the profinet case,
> there are numerous other
> things to send. You'd need to find a way to make sending configurable to
> make it useful for
> the non-standard-IT case...
>
> Other than that:
> - please diff against newer sources (git master, 2.0.0)
> - indentation = 2 spaces, not 4
> - no need to change opt.h/stats.h, such deep integration is neither wanted
> nor needed for 3rd party protocols
> - don't use heap allocation just to fill in a TLV: this is for embedded
> systems, right?
> - separate protocol definitions from external interface of the component
> (not everything in one header)
> - keep private functions "static" in the C file
> - etc...?
>
> And last but not least, I have to repeate myself: if you want this to be
> integrated into core lwIP,
> open a patch tracker entry for it on savannah and put the sources there.
>
> Simon
>
> ___
> lwip-users mailing list
> lwip-users@nongnu.org
> https://lists.nongnu.org/mailman/listinfo/lwip-users
>
___
lwip-users mailing list
lwip-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lwip-users

[lwip-users] How to Free PBUF_POOL or initialize lwIP

2016-11-15 Thread Seongung Yun
i'm currently developing a tcp based client/server function.

Everytime I make a connection and disconnection to a server, PBUF_POOL uses
more memory and the 

monitoring counter increases as well.

Once, it reaches to the number of "avail", I can not make a connection any
more, because of there's any more pbuf_pool to allow.

I'd like to empty and free the pbuf_pool memory so it can connect/disconnect
no matter how many times i try do.

I tried 

pbuf_free
mem_free
memp_free

tcp_close and initlwip again (but it doesn't proceed from tcp_bind (ERR_USE 
  
-8/* Address in use.)

Was there anything I missed?

Thank you.








--
View this message in context: 
http://lwip.100.n7.nabble.com/How-to-Free-PBUF-POOL-or-initialize-lwIP-tp27778.html
Sent from the lwip-users mailing list archive at Nabble.com.

___
lwip-users mailing list
lwip-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lwip-users


[lwip-users] LWIP - For 10G traffic??

2016-11-15 Thread prasanth
Hi all, 
   *Does, LWIP can be used for processing 10G traffic or it can be used
only for 1G?? Please give your valuable suggestions!!*

Many Thanks!!



--
View this message in context: 
http://lwip.100.n7.nabble.com/LWIP-For-10G-traffic-tp27779.html
Sent from the lwip-users mailing list archive at Nabble.com.

___
lwip-users mailing list
lwip-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lwip-users