lwip-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-devel] [bug #43022] arp reply Target Protocol Address is corrupt


From: Alec Davis
Subject: [lwip-devel] [bug #43022] arp reply Target Protocol Address is corrupt
Date: Tue, 19 Aug 2014 08:53:06 +0000
User-agent: Mozilla/5.0 (Windows NT 6.3; WOW64; Trident/7.0; rv:11.0) like Gecko

URL:
  <http://savannah.nongnu.org/bugs/?43022>

                 Summary: arp reply Target Protocol Address is corrupt
                 Project: lwIP - A Lightweight TCP/IP stack
            Submitted by: alecdavis
            Submitted on: Tue 19 Aug 2014 08:53:04 AM GMT
                Category: ARP
                Severity: 3 - Normal
              Item Group: Faulty Behaviour
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: 
            lwIP version: CVS Head

    _______________________________________________________

Details:

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 
|address@hidden
        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..|.....







    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?43022>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]