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

Submitter:  Joel Cunningham <jcunningham>
Submitted:  Wed 15 Jul 2015 04:22:57 PM UTC
   
 
Category:  Network drivers Severity:  3 - Normal
Item Group:  Faulty Behaviour Status:  Fixed
Privacy:  Public Assigned to:  None
Open/Closed:  Closed Planned 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>
Group 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>
Group Member

 

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

Attached Files

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Date Changed by Updated Field Previous Value => Replaced by
    2015-07-26 gradator StatusNone Fixed
        Open/ClosedOpen Closed
    2015-07-15 jcunningham Attached File- Added 0001-Set-link-up-on-loopback-interface.patch, #34449

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code