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

Submitter:  Alec Davis <alecdavis>
Submitted:  Tue 19 Aug 2014 08:53:04 AM UTC
   
 
Category:  ARP Severity:  3 - Normal
Item Group:  Faulty Behaviour Status:  Invalid
Privacy:  Public Assigned to:  None
Open/Closed:  Closed Planned 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>
Group 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>

 

(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 alecdavis (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 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2014-08-19 goldsimon StatusNone Invalid
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code