buglwIP - A Lightweight TCP/IP stack - Bugs: bug #56281, arp header process modify back to...

 
 

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

bug #56281: arp header process modify back to previous version in etharp_input

Submitter:  Simon Kószó <koszsim>
Submitted:  Tue 07 May 2019 10:56:54 AM UTC
   
 
Category:  ARP Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Faulty Behaviour
Status:  Invalid Privacy:  Public
Assigned to:  goldsimon Open/Closed:  Closed
Planned Release:  None lwIP version:  2.0.3

Discussion

Thu 30 Jan 2020 10:11:06 PM UTC, comment #1: 

No, what you do is not correct. There must be something wrong in the input path of your driver/application that makes this workaround necessary.

I'm sorry, but from comparing the sources of 1.4.1 to 2.0.3, I can't just see what's wrong.

Simon Goldschmidt <goldsimon>
Group administrator
Tue 07 May 2019 10:56:54 AM UTC, original submission:  

I just wanted to tell how I "fixed" the receiveing of ARP packet in my application. I am quiet starter with lwIP so probably I did something badly when I called etharp_input(). Does anybody can help me to figure out the reason?

I upgraded lwIP from 1.4.1 to 2.0.3. When I finally could build the code and download the program to the target I noticed that it does not respond to ping command. Having debugged the program and compared the code with 1.4.1, I could fix the problem with modifying the code in etharp_input function:

I wrote this statement in line 650 in src/core/ipv4/etharp.c:
hdr = (struct etharp_hdr )((u8_t)p->payload + SIZEOF_ETH_HDR);
instead of this statement:
hdr = (struct etharp_hdr *)p->payload;

Now my program works well in my target.

Thank you if someone try to figure out the possible reason.

Simon Kószó <koszsim>

 

Attached Files

This item currently has no attached files.

 

Dependencies

This item does not depend on any other items.

No items depend on this one.

 

Mail Notification Carbon-Copy List

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

    Votes

    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.

     

    History

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2020-01-30 goldsimon StatusNone Invalid
        Assigned toNone goldsimon
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.16-2753.
    Corresponding source code