buglwIP - A Lightweight TCP/IP stack - Bugs: bug #43022, arp reply Target Protocol Address...

 
 

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

bug #43022: arp reply Target Protocol Address is corrupt

Submitted by:  Alec Davis <alecdavis>
Submitted on:  Tue 19 Aug 2014 08:53:04 AM UTC  
 
Category: ARPSeverity: 3 - Normal
Item Group: Faulty BehaviourStatus: Invalid
Privacy: PublicAssigned to: None
Open/Closed: ClosedPlanned Release: None
lwIP version: CVS Head

Tue 19 Aug 2014 02:03:56 PM UTC, comment #2:

CVS is not used any more, anyway...

Simon Goldschmidt <goldsimon>
Project Administrator
Tue 19 Aug 2014 09:07:52 AM UTC, comment #1:

This was just wrong. Please close.

Sorry for noise.

Alec Davis <alecdavis>
Tue 19 Aug 2014 08:53:04 AM UTC, original submission:

Using tcpdump captures;

The '810b 40e8' in the arp-reply should be 'c0a8 7cfe' being 192.168.124.254

19:29:21.599677 ARP, Ethernet (len 6), IPv4 (len 4), Request who-has 192.168.124.32 tell 192.168.124.254, length 28
0x0000: 0001 0800 0604 0001 000d 6133 e54e c0a8 ..........a3.N..
0x0010: 7cfe 0000 0000 0000 c0a8 7c20 |.........|.
19:29:21.612438 ARP, Ethernet (len 6), IPv4 (len 4), Reply 192.168.124.32 is-at ac:cf:23:23:5e:4c, length 46
0x0000: 0001 0800 0604 0002 accf 2323 5e4c c0a8 ..........##^L..
0x0010: 7c20 000d 6133 e54e <b>810b 40e8</b> fb90 f66d |...a3.N..@....m
0x0020: 01f2 8673 7f04 0000 0004 6b07 02ff ...s......k...

- ETHADDR16_COPY(&hdr->shwaddr, ethaddr);
- ETHADDR16_COPY(&ethhdr->src, ethaddr);
+ ETHADDR16_COPY(&hdr->shwaddr, &ethaddr);
+ ETHADDR16_COPY(&ethhdr->src, &ethaddr);

After patch;
20:17:19.535674 ARP, Ethernet (len 6), IPv4 (len 4), Request who-has 192.168.124.32 tell 192.168.124.254, length 28
0x0000: 0001 0800 0604 0001 000d 6133 e54e c0a8 ..........a3.N..
0x0010: 7cfe 0000 0000 0000 c0a8 7c20 |.........|.
20:17:19.537019 ARP, Ethernet (len 6), IPv4 (len 4), Reply 192.168.124.32 is-at 4b:82:01:20:c0:a8, length 112
0x0000: 0001 0800 0604 0002 4b82 0120 c0a8 c0a8 ........K.......
0x0010: 7c20 000d 6133 e54e c0a8 7cfe 0000 0000 |...a3.N..|.....

Alec Davis <alecdavis>

 

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 alecdavis (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
    Tue 19 Aug 2014 02:03:56 PM UTCgoldsimonStatusNone=>Invalid
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1