Ignore:
File:
1 edited

Legend:

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

    re82b37e rb4edc96  
    11/*
    2  * Copyright (c) 2024 Jiri Svoboda
     2 * Copyright (c) 2021 Jiri Svoboda
    33 * All rights reserved.
    44 *
     
    234234        uint8_t *addr;
    235235        size_t size;
    236         eth_addr_str_t saddr;
    237236        errno_t rc;
    238237
     
    243242        }
    244243
    245         eth_addr_decode(addr, &nic->mac_addr);
    246         eth_addr_format(&nic->mac_addr, &saddr);
    247 
    248244        log_msg(LOG_DEFAULT, LVL_DEBUG, "ethip_nic_addr_changed(): "
    249             "new addr=%s", saddr.str);
     245            "new addr=%02x:%02x:%02x:%02x:%02x:%02x",
     246            addr[0], addr[1], addr[2], addr[3], addr[4], addr[5]);
     247
     248        memcpy(&nic->mac_addr, addr, sizeof(nic->mac_addr));
    250249
    251250        rc = iplink_ev_change_addr(&nic->iplink, &nic->mac_addr);
Note: See TracChangeset for help on using the changeset viewer.