buglwIP - A Lightweight TCP/IP stack - Bugs: bug #22916, Resetting SNMP data structures

 
 

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

bug #22916: Resetting SNMP data structures

Submitter:  Srinivas Gollakota <gollakota>
Submitted:  Mon 14 Apr 2008 06:20:19 PM UTC
   
 
Category:  ARP Severity:  3 - Normal
Item Group:  Faulty Behaviour Status:  Invalid
Privacy:  Public Assigned to:  None
Open/Closed:  Closed Planned Release:  None
lwIP version:  None

Mon 14 Apr 2008 07:23:26 PM UTC, comment #3: 

lwIP is actually very close to working.I guess i just need to reset some globals in SNMP to start afresh. By selectively disabling SNMP i'm able to restart lwIP. I just need the globals that are required at start as they are so many in SNMP.

-Srinivas.




Srinivas Gollakota <gollakota>
Mon 14 Apr 2008 07:06:27 PM UTC, comment #2: 

Sorry to turn you down on this, but I'm afraid lwIP really doesn't support restarting! It is designed for embedded devices, after all!

Please feel free to discuss ideas on the mailing list, but the absence of functions 'restarting' the stack is clearly no bug, but a feature!

-> 'graceful shutdown' is not supported: power off your device, turn off the netif or stop the process running lwIP (depending on where you run it).

Simon Goldschmidt <goldsimon>
Group administrator
Mon 14 Apr 2008 06:57:06 PM UTC, comment #1: 

As per Bill's advice tried to perform snmp_init in lwip_init().

I'm using released 1.3.0. Just tried with snmp_init() and it did'nt fixed the problem. As its not there in lwip_init() by default not sure if snmp_init() has some other purpose. I did'nt tried SNMP so far,just landed up in the snmp code whilst checking the restarting functionality.

-Srinivas.

Srinivas Gollakota <gollakota>
Mon 14 Apr 2008 06:20:19 PM UTC, original submission:  

I'm trying to implement shutdown of lwip sub-sytem and restart again. In the arch wrapper i'm releasing the semaphores, threads and memory and removing the network interfce netif_remove().

Whilst network interface is removed the SNMP tables/data structures appears to be not resetting to default.This leads to the corrupted linked list in snmp_insert_arpidx_tree().I tried to reset head,tail,count members of the arptree_root() but did'nt fixed the problem.

Could someone advice me the values that need to be reset with SNMP upon restart. With much broader scenario will be it good to have clean function associated with init's for graceful shutdown of lwip subsystem.

Thanks,
-Srinivas

Srinivas Gollakota <gollakota>

 

(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

 

Carbon-Copy List
  • -email is unavailable- added by goldsimon (Posted a comment)
  • -email is unavailable- added by gollakota (Submitted the item)
  •  

    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 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2008-04-14 goldsimon StatusNone Invalid
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-caa5.
    Corresponding source code