Changeset c3b25985 in mainline for uspace/srv/net/ethip/ethip.c


Ignore:
Timestamp:
2014-08-05T21:43:50Z (10 years ago)
Author:
Agnieszka Tabaka <nufcia@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
ee95794
Parents:
1f1fa64
Message:

Add support for actual MAC change in networking stack.

File:
1 edited

Legend:

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

    r1f1fa64 rc3b25985  
    5858static int ethip_get_mtu(iplink_srv_t *srv, size_t *mtu);
    5959static int ethip_get_mac48(iplink_srv_t *srv, addr48_t *mac);
     60static int ethip_set_mac48(iplink_srv_t *srv, addr48_t *mac);
    6061static int ethip_addr_add(iplink_srv_t *srv, inet_addr_t *addr);
    6162static int ethip_addr_remove(iplink_srv_t *srv, inet_addr_t *addr);
     
    7071        .get_mtu = ethip_get_mtu,
    7172        .get_mac48 = ethip_get_mac48,
     73        .set_mac48 = ethip_set_mac48,
    7274        .addr_add = ethip_addr_add,
    7375        .addr_remove = ethip_addr_remove
     
    283285}
    284286
     287static int ethip_set_mac48(iplink_srv_t *srv, addr48_t *mac)
     288{
     289        log_msg(LOG_DEFAULT, LVL_DEBUG, "ethip_set_mac48()");
     290       
     291        ethip_nic_t *nic = (ethip_nic_t *) srv->arg;
     292        addr48(*mac, nic->mac_addr);
     293       
     294        return EOK;
     295}
     296
    285297static int ethip_addr_add(iplink_srv_t *srv, inet_addr_t *addr)
    286298{
Note: See TracChangeset for help on using the changeset viewer.