[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-devel] [patch #6483] Stats module improvement

From: Simon Goldschmidt
Subject: [lwip-devel] [patch #6483] Stats module improvement
Date: Thu, 19 Jun 2008 18:05:32 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9) Gecko/2008052906 Firefox/3.0

Follow-up Comment #1, patch #6483 (project lwip):

I propose a number of changes in attached patch files.

Some changes to stats.h:
- remove rexmit member in struct stats_proto
- introduce defines like TCP_STATS_DISPLAY() to display stats for a specific
protocol (or mem, heap, sys...)
- introduce defines for SYS/MEM/MEMP (used #if's and directly accessed struct

and in stats.c:
- added functions to display memp and sys (for the macros)
- stats_display() uses the macros defined in stats.h

Additionally, I change the format of the defines. Previously, the code using
them looked like this:


I removed the 'udp.'-part, which is redundant:


I attach a patch file for stats.h/.c each and a patch file for the complete
src directory (because of the last change).

(file #15873, file #15874, file #15875)

Additional Item Attachment:

File name: stats.h.patch                  Size:5 KB
File name: stats.c.patch                  Size:3 KB
File name: stats_complete.patch           Size:47 KB


Reply to this item at:


  Nachricht geschickt von/durch Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]