buglwIP - A Lightweight TCP/IP stack - Bugs: bug #64145, ICMP reply error when using bridge

 
 

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

bug #64145: ICMP reply error when using bridge

Submitter:  daniel.yang <ccnu>
Submitted:  Thu 04 May 2023 06:55:34 AM UTC
   
 
Category:  IPv4 Severity:  3 - Normal
Item Group:  Faulty Behaviour Status:  Invalid
Privacy:  Public Assigned to:  goldsimon
Open/Closed:  Closed Planned Release:  None
lwIP version:  2.1.3

Thu 11 May 2023 06:11:27 AM UTC, comment #1: 

Bridge ports cannot have an IP address. Only the bridge has an IP address. Bridge ports are only used at a network layer below IP.

Closing as invalid.

Simon Goldschmidt <goldsimon>
Group administrator
Thu 04 May 2023 06:55:34 AM UTC, original submission:  

    when I use lwIP netif implementing an IEEE 802.1D MAC Bridge,I add two portif eth0(192.168.1.6) and eth1(192.168.1.7),also I set address and mac to bridge as host netif(192.168.1.5).
    But,when I ping host(192.168.1.5) from eth1(192.168.1.7),I get no reply.Then I debuged and found the issue point at function icmp_input(icmp.c#198) and bridgeif_send_to_port(bridgeif.c #257).
    In this case, icmp request from eth1(input pbuf->if_idx = netif->num + 1,here is 1,default is 0),but in function icmp_input,it reuse the input pbuf rather than alloc new one,so this pbuf->if_idx = netif->num + 1 = 1.Then function bridgeif_send_to_port use the pbuf->if_idx to prevent sending out to rx port(if (netif_get_index(portif) != p->if_idx)),at this time,icmp reply would never be forward to eth1,so icmp error.
    icmp replied success when I added statement(p->if_idx = 0) at icmp.c#248 before ip4_output_if.

daniel.yang <ccnu>

 

(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 ccnu (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
    2023-05-11 goldsimon StatusNone Invalid
        Assigned toNone goldsimon
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code