Changeset 0773396 in mainline for uspace/srv/net/ethip/arp.c
- Timestamp:
- 2013-12-25T13:05:25Z (10 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- bc54126c
- Parents:
- f4a47e52 (diff), 6946f23 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/ethip/arp.c
rf4a47e52 r0773396 40 40 #include <inet/addr.h> 41 41 #include <stdlib.h> 42 #include <net/socket_codes.h>43 42 #include "arp.h" 44 43 #include "atrans.h" … … 73 72 74 73 addr32_t laddr_v4; 75 uint16_t laddr_af= inet_addr_get(&laddr->addr, &laddr_v4, NULL);76 if (laddr_ af != AF_INET)74 ip_ver_t laddr_ver = inet_addr_get(&laddr->addr, &laddr_v4, NULL); 75 if (laddr_ver != ip_v4) 77 76 return; 78 77 … … 98 97 addr48_t mac_addr) 99 98 { 99 /* Broadcast address */ 100 if (ip_addr == addr32_broadcast_all_hosts) { 101 addr48(addr48_broadcast, mac_addr); 102 return EOK; 103 } 104 100 105 int rc = atrans_lookup(ip_addr, mac_addr); 101 106 if (rc == EOK)
Note:
See TracChangeset
for help on using the changeset viewer.