/systemd/src/libsystemd-network/ |
H A D | dhcp-identifier.c | 59 int dhcp_identifier_set_iaid(int ifindex, uint8_t *mac, size_t mac_len, void *_id) { argument 90 id = siphash24(mac, mac_len, HASH_KEY.bytes);
|
H A D | lldp-port.h | 46 struct ether_addr mac; member in struct:lldp_port
|
H A D | lldp-tlv.h | 67 struct ether_addr mac; member in struct:sd_lldp_packet
|
H A D | sd-lldp.c | 454 uint8_t *mac, *port_id, type; local 477 r = sd_lldp_packet_read_chassis_id(p->packet, &type, &mac, &length); 482 mac[0], mac[1], mac[2], mac[3], mac[4], mac[5], type); 504 mac = port_id; 506 mac[ 689 sd_lldp_new(int ifindex, const char *ifname, const struct ether_addr *mac, sd_lldp **ret) argument [all...] |
/systemd/src/libsystemd/sd-netlink/ |
H A D | netlink-util.c | 55 const struct ether_addr *mac, unsigned mtu) { 62 if (!alias && !mac && mtu == 0) 81 if (mac) { 82 r = sd_netlink_message_append_ether_addr(message, IFLA_ADDRESS, mac); 54 rtnl_set_link_properties(sd_netlink **rtnl, int ifindex, const char *alias, const struct ether_addr *mac, unsigned mtu) argument
|
H A D | test-netlink.c | 53 const char *mac = "98:fe:94:3f:c6:18", *name = "test"; local 62 assert_se(sd_netlink_message_append_ether_addr(message, IFLA_ADDRESS, ether_aton(mac)) >= 0); 72 assert_se(streq(mac, ether_addr_to_string(&mac_out, buffer)));
|
/systemd/src/network/ |
H A D | test-network.c | 134 const struct ether_addr mac = {}; local 138 assert_se(network_get(manager, loopback, "lo", &mac, &network) == -ENOENT);
|
H A D | networkd-netdev.c | 124 free(netdev->mac); 411 _cleanup_free_ struct ether_addr *mac = NULL; local 420 mac = new0(struct ether_addr, 1); 421 if (!mac) 442 memcpy(mac->ether_addr_octet, &result, ETH_ALEN); 445 mac->ether_addr_octet[0] &= 0xfe; /* clear multicast bit */ 446 mac->ether_addr_octet[0] |= 0x02; /* set local assignment bit (IEEE802) */ 448 *ret = mac; 449 mac = NULL; 481 if (netdev->mac) { [all...] |
H A D | networkd-link.h | 69 struct ether_addr mac; member in struct:Link
|
H A D | networkd-netdev.h | 97 struct ether_addr *mac; member in struct:NetDev
|
H A D | networkctl.c | 260 static int ieee_oui(sd_hwdb *hwdb, struct ether_addr *mac, char **ret) { argument 270 if (!mac) 274 if (memcmp(mac, "\0\0\0", 3) == 0) 278 ETHER_ADDR_FORMAT_VAL(*mac)); 324 struct ether_addr mac = {}; local 385 r = sd_netlink_message_read_ether_addr(m, NDA_LLADDR, &mac); 389 r = ieee_oui(hwdb, &mac, gateway_description);
|
H A D | networkd-network.h | 137 struct ether_addr *mac; member in struct:Network 168 int network_get(Manager *manager, struct udev_device *device, const char *ifname, const struct ether_addr *mac, Network **ret);
|
H A D | networkd-link.c | 337 r = sd_netlink_message_read_ether_addr(message, IFLA_ADDRESS, &link->mac); 1379 if (link->network->mac) { 1380 r = sd_netlink_message_append_ether_addr(req, IFLA_ADDRESS, link->network->mac); 2112 r = sd_lldp_new(link->ifindex, link->ifname, &link->mac, &link->lldp); 2166 &link->mac, &network); 2567 struct ether_addr mac; local 2622 r = sd_netlink_message_read_ether_addr(m, IFLA_ADDRESS, &mac); 2624 if (memcmp(link->mac.ether_addr_octet, mac.ether_addr_octet, 2627 memcpy(link->mac [all...] |
/systemd/src/udev/net/ |
H A D | link-config.h | 64 struct ether_addr *mac; member in struct:link_config
|
H A D | link-config.c | 84 free(link->mac); 349 struct ether_addr *mac) { 353 random_bytes(mac->ether_addr_octet, ETH_ALEN); 362 memcpy(mac->ether_addr_octet, &result, ETH_ALEN); 366 mac->ether_addr_octet[0] &= 0xfe; /* clear multicast bit */ 367 mac->ether_addr_octet[0] |= 0x02; /* set local assignment bit (IEEE802) */ 377 struct ether_addr *mac = NULL; local 453 mac = &generated_mac; 464 mac = &generated_mac; 469 mac 348 get_mac(struct udev_device *device, bool want_random, struct ether_addr *mac) argument [all...] |
/systemd/src/nspawn/ |
H A D | nspawn-network.c | 44 struct ether_addr *mac, 78 memcpy(mac->ether_addr_octet, &result, ETH_ALEN); 81 mac->ether_addr_octet[0] &= 0xfe; /* clear multicast bit */ 82 mac->ether_addr_octet[0] |= 0x02; /* set local assignment bit (IEEE802) */ 368 struct ether_addr mac; local 375 r = generate_mac(machine_name, &mac, MACVLAN_HASH_KEY, idx++); 397 r = sd_netlink_message_append_ether_addr(m, IFLA_ADDRESS, &mac); 42 generate_mac( const char *machine_name, struct ether_addr *mac, sd_id128_t hash_key, uint64_t idx) argument
|
/systemd/src/udev/ |
H A D | udev-builtin-net_id.c | 121 uint8_t mac[6]; member in struct:netnames 468 names->mac[0] = a1; 469 names->mac[1] = a2; 470 names->mac[2] = a3; 471 names->mac[3] = a4; 472 names->mac[4] = a5; 473 names->mac[5] = a6; 485 if (memcmp(names->mac, "\0\0\0", 3) == 0) 487 xsprintf(str, "OUI:%02X%02X%02X%02X%02X%02X", names->mac[0], 488 names->mac[ [all...] |