Changeset 0c2d9bb in mainline for uspace/srv/net/ethip/arp.c


Ignore:
Timestamp:
2013-12-25T22:54:29Z (10 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
b51cf2c
Parents:
f7a33de (diff), ac36aed (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.
Message:

merge mainline changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/net/ethip/arp.c

    rf7a33de r0c2d9bb  
    4040#include <inet/addr.h>
    4141#include <stdlib.h>
    42 #include <net/socket_codes.h>
    4342#include "arp.h"
    4443#include "atrans.h"
     
    7372       
    7473        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)
    7776                return;
    7877       
     
    9897    addr48_t mac_addr)
    9998{
     99        /* Broadcast address */
     100        if (ip_addr == addr32_broadcast_all_hosts) {
     101                addr48(addr48_broadcast, mac_addr);
     102                return EOK;
     103        }
     104
    100105        int rc = atrans_lookup(ip_addr, mac_addr);
    101106        if (rc == EOK)
Note: See TracChangeset for help on using the changeset viewer.