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

Submitted by:  Srinivas Gollakota <gollakota>
Submitted on:  Mon 14 Apr 2008 06:20:19 PM UTC  
 
Category: ARPSeverity: 3 - Normal
Item Group: Faulty BehaviourStatus: Invalid
Privacy: PublicAssigned to: None
Open/Closed: ClosedPlanned 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>
Project 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>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

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

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 14 Apr 2008 07:06:27 PM UTCgoldsimonStatusNone=>Invalid
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1