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

Submitted by:  michael tesch <tesch>
Submitted on:  Tue 19 Nov 2002 01:31:39 AM UTC  
 
Category: ContribSeverity: 3 - Normal
Item Group: Faulty BehaviourStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: ClosedPlanned 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>
Project 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>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 4 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Thu 15 Jun 2006 07:11:53 AM UTCchristiaansCategoryNone=>Contrib
  Item GroupNone=>Faulty Behaviour
  StatusNone=>Fixed
  Open/ClosedOpen=>Closed

Back to the top


Powered by Savane 3.1-cleanup1