buglwIP - A Lightweight TCP/IP stack - Bugs: bug #1748, (struct stats_mem) &...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #1748: (struct stats_mem) & proj/unixsim/shell.c out of sync

Submitter:  michael tesch <tesch>
Submitted:  Tue 19 Nov 2002 01:31:39 AM UTC
   
 
Category:  Contrib Severity:  3 - Normal
Item Group:  Faulty Behaviour Status:  Fixed
Privacy:  Public Assigned to:  None
Open/Closed:  Closed Planned Release:  None
lwIP version:  None

Wed 18 Dec 2002 01:51:33 PM UTC, comment #1: 

We can either:
1)make me_size_t u32_t always and eat a bit more memory on systems with mem < 64K (8*number of mem structs bytes)
2)just print every stat struct separately in apps/shell.c

I favor 2) seeing that shell is already big anyway and not everybody uses it.
So patches are welcome :)

Jani Monoses <jani>
Group Member
Tue 19 Nov 2002 01:31:39 AM UTC, original submission:  

while (struct stats_mem) members should be mem_size_t
shell.c asssumes (incorrectly) that all stats are 16-bit
integers.  there is also some mis-alignment btw. the actual
stats structs and the string table in shell.c.

if you think it's a good solution to (in stats.c, within
an '#ifdef STATS' ?)
something like XXX_sprint_stats(char *stat_string)
or stat_sprint_XXX,
where XXX is {proto, mem, pbuf, syselem, sys}
i'd be glad to write and test them.  let me know.

michael tesch <tesch>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

 

Follow 4 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2006-06-15 christiaans CategoryNone Contrib
    Item GroupNone Faulty Behaviour
    StatusNone Fixed
    Open/ClosedOpen Closed

Back to the top

Powered by Savane 3.13-758e.
Corresponding source code