buglwIP - A Lightweight TCP/IP stack - Bugs: bug #45555, Loopif needs to set link up

 
 

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

bug #45555: Loopif needs to set link up

Submitted by:  Joel Cunningham <jcunningham>
Submitted on:  Wed 15 Jul 2015 04:22:57 PM UTC  
 
Category: Network driversSeverity: 3 - Normal
Item Group: Faulty BehaviourStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: ClosedPlanned Release: None
lwIP version: git head

Sun 26 Jul 2015 10:28:19 PM UTC, comment #1:

Indeed, patch applied, thank you Joel :)

Sylvain

Sylvain Rochet <gradator>
Project Member
Wed 15 Jul 2015 04:22:57 PM UTC, original submission:

When LWIP_HAVE_LOOPIF is enabled, I can't send any datagrams on it because the link state is down. ip4_route fails to select the loopback netif and returns the default netif instead. The default netif isn't on the same network segment as loopback address, so the datagram gets dropped

Historically, the loopback netif hasn't set the link state to up, but now that ip4_route and ip6_route are checking for link state (bug #43904 - ip_route() and ip6_route() must detect linkup status) we need to set the link state to up

I have attached a patch that sets the link state in netif_init()

Joel Cunningham <jcunningham>
Project Member

 

Attached Files

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by gradator (Posted a comment)
  • -unavailable- added by jcunningham (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 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 26 Jul 2015 10:28:19 PM UTCgradatorStatusNone=>Fixed
      Open/ClosedOpen=>Closed
    Wed 15 Jul 2015 04:22:57 PM UTCjcunninghamAttached File-=>Added 0001-Set-link-up-on-loopback-interface.patch, #34449

    Back to the top


    Powered by Savane 3.1-cleanup1