]> rtime.felk.cvut.cz Git - pes-rpp/rpp-lwip.git/commitdiff
Fixed etharp unit test after changing struct etharp_hdr
authorgoldsimon <goldsimon>
Wed, 30 Mar 2011 18:47:20 +0000 (18:47 +0000)
committergoldsimon <goldsimon>
Wed, 30 Mar 2011 18:47:20 +0000 (18:47 +0000)
test/unit/etharp/test_etharp.c

index 7eedc764971459dd5104250771a78a95798d6fd1..207d73fdc1cb95946513aee4ca90f1e74fb42b3e 100644 (file)
@@ -90,7 +90,8 @@ create_arp_response(ip_addr_t *adr)
 
   etharphdr->hwtype = htons(/*HWTYPE_ETHERNET*/ 1);
   etharphdr->proto = htons(ETHTYPE_IP);
-  etharphdr->_hwlen_protolen = htons((ETHARP_HWADDR_LEN << 8) | sizeof(ip_addr_t));
+  etharphdr->hwlen = ETHARP_HWADDR_LEN;
+  etharphdr->protolen = sizeof(ip_addr_t);
   etharphdr->opcode = htons(ARP_REPLY);
 
   SMEMCPY(&etharphdr->sipaddr, adr, sizeof(ip_addr_t));