Changeset 15d0046 in mainline for uspace/srv/net/ethip/ethip.c


Ignore:
Timestamp:
2014-09-12T13:22:33Z (10 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
9b20126
Parents:
8db09e4 (diff), 105d8d6 (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/ethip.c

    r8db09e4 r15d0046  
    4444#include <stdio.h>
    4545#include <stdlib.h>
     46#include <task.h>
    4647#include "arp.h"
    4748#include "ethip.h"
     
    5859static int ethip_get_mtu(iplink_srv_t *srv, size_t *mtu);
    5960static int ethip_get_mac48(iplink_srv_t *srv, addr48_t *mac);
     61static int ethip_set_mac48(iplink_srv_t *srv, addr48_t *mac);
    6062static int ethip_addr_add(iplink_srv_t *srv, inet_addr_t *addr);
    6163static int ethip_addr_remove(iplink_srv_t *srv, inet_addr_t *addr);
     
    7072        .get_mtu = ethip_get_mtu,
    7173        .get_mac48 = ethip_get_mac48,
     74        .set_mac48 = ethip_set_mac48,
    7275        .addr_add = ethip_addr_add,
    7376        .addr_remove = ethip_addr_remove
     
    283286}
    284287
     288static int ethip_set_mac48(iplink_srv_t *srv, addr48_t *mac)
     289{
     290        log_msg(LOG_DEFAULT, LVL_DEBUG, "ethip_set_mac48()");
     291       
     292        ethip_nic_t *nic = (ethip_nic_t *) srv->arg;
     293        addr48(*mac, nic->mac_addr);
     294       
     295        return EOK;
     296}
     297
    285298static int ethip_addr_add(iplink_srv_t *srv, inet_addr_t *addr)
    286299{
Note: See TracChangeset for help on using the changeset viewer.