Changeset ebb1489 in mainline for uspace/srv/net/ethip/ethip_nic.c


Ignore:
Timestamp:
2024-10-13T08:23:40Z (8 weeks ago)
Author:
GitHub <noreply@…>
Children:
0472cf17
Parents:
2a0c827c (diff), b3b79981 (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.
git-author:
boba-buba <120932204+boba-buba@…> (2024-10-13 08:23:40)
git-committer:
GitHub <noreply@…> (2024-10-13 08:23:40)
Message:

Merge branch 'HelenOS:master' into topic/packet-capture

File:
1 edited

Legend:

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

    r2a0c827c rebb1489  
    11/*
    2  * Copyright (c) 2021 Jiri Svoboda
     2 * Copyright (c) 2024 Jiri Svoboda
    33 * All rights reserved.
    44 *
     
    234234        uint8_t *addr;
    235235        size_t size;
     236        eth_addr_str_t saddr;
    236237        errno_t rc;
    237238
     
    242243        }
    243244
     245        eth_addr_decode(addr, &nic->mac_addr);
     246        eth_addr_format(&nic->mac_addr, &saddr);
     247
    244248        log_msg(LOG_DEFAULT, LVL_DEBUG, "ethip_nic_addr_changed(): "
    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));
     249            "new addr=%s", saddr.str);
    249250
    250251        rc = iplink_ev_change_addr(&nic->iplink, &nic->mac_addr);
Note: See TracChangeset for help on using the changeset viewer.