/systemd-251/src/libsystemd/sd-netlink/ |
D | netlink-types-genl.c | 54 …BATADV_ATTR_MESH_ADDRESS] = { .type = NETLINK_TYPE_ETHER_ADDR, .size = ETH_ALEN }, 57 …BATADV_ATTR_HARD_ADDRESS] = { .type = NETLINK_TYPE_ETHER_ADDR, .size = ETH_ALEN }, 58 …BATADV_ATTR_ORIG_ADDRESS] = { .type = NETLINK_TYPE_ETHER_ADDR, .size = ETH_ALEN }, 65 …BATADV_ATTR_TT_ADDRESS] = { .type = NETLINK_TYPE_ETHER_ADDR, .size = ETH_ALEN }, 73 …BATADV_ATTR_NEIGH_ADDRESS] = { .type = NETLINK_TYPE_ETHER_ADDR, .size = ETH_ALEN }, 78 …BATADV_ATTR_ROUTER] = { .type = NETLINK_TYPE_ETHER_ADDR, .size = ETH_ALEN }, 80 …BATADV_ATTR_BLA_ADDRESS] = { .type = NETLINK_TYPE_ETHER_ADDR, .size = ETH_ALEN }, 82 …BATADV_ATTR_BLA_BACKBONE] = { .type = NETLINK_TYPE_ETHER_ADDR, .size = ETH_ALEN }, 85 …BATADV_ATTR_DAT_CACHE_HWADDRESS] = { .type = NETLINK_TYPE_ETHER_ADDR, .size = ETH_ALEN }, 188 [NL80211_ATTR_MAC] = { .type = NETLINK_TYPE_ETHER_ADDR, .size = ETH_ALEN },
|
D | netlink-types-rtnl.c | 95 [IFLA_BOND_AD_INFO_PARTNER_MAC] = { .type = NETLINK_TYPE_ETHER_ADDR, .size = ETH_ALEN }, 126 [IFLA_BOND_AD_ACTOR_SYSTEM] = { .type = NETLINK_TYPE_ETHER_ADDR, .size = ETH_ALEN }, 151 … [IFLA_BR_GROUP_ADDR] = { .type = NETLINK_TYPE_ETHER_ADDR, .size = ETH_ALEN }, 299 [IFLA_MACVLAN_MACADDR] = { .type = NETLINK_TYPE_ETHER_ADDR, .size = ETH_ALEN },
|
/systemd-251/src/basic/linux/ |
D | if_ether.h | 32 #define ETH_ALEN 6 /* Octets in one ethernet addr */ macro 170 unsigned char h_dest[ETH_ALEN]; /* destination eth addr */ 171 unsigned char h_source[ETH_ALEN]; /* source ether addr */
|
D | if_bonding.h | 128 __u8 partner_system[ETH_ALEN];
|
D | if_tun.h | 111 __u8 addr[0][ETH_ALEN];
|
D | if_bridge.h | 94 __u8 mac_addr[ETH_ALEN]; 687 unsigned char mac_addr[ETH_ALEN];
|
/systemd-251/src/libsystemd-network/ |
D | lldp-network.c | 33 .mr_alen = ETH_ALEN, in lldp_network_bind_raw_socket() 57 mreq.mr_address[ETH_ALEN - 1] = 0x03; in lldp_network_bind_raw_socket() 62 mreq.mr_address[ETH_ALEN - 1] = 0x0E; in lldp_network_bind_raw_socket()
|
D | arp-util.c | 74 .ll.sll_halen = ETH_ALEN, in arp_network_bind_raw_socket() 108 .ll.sll_halen = ETH_ALEN, in arp_send_packet() 114 .ea_hdr.ar_hln = ETH_ALEN, /* HLEN */ in arp_send_packet() 127 memcpy(&arp.arp_sha, ha, ETH_ALEN); in arp_send_packet()
|
D | dhcp-network.c | 61 …BPF_JUMP(BPF_JMP + BPF_JEQ + BPF_K, ETH_ALEN, 0, 8), /* A (the M… in _bind_raw_socket() 138 assert_return(mac_addr_len == ETH_ALEN, -EINVAL); in dhcp_network_bind_raw_socket() 139 memcpy(ð_mac, mac_addr, ETH_ALEN); in dhcp_network_bind_raw_socket() 140 dhcp_hlen = ETH_ALEN; in dhcp_network_bind_raw_socket() 143 expected_bcast_addr_len = ETH_ALEN; in dhcp_network_bind_raw_socket()
|
D | fuzz-dhcp-server.c | 35 lease->hlen = ETH_ALEN; in add_lease() 36 memcpy(lease->chaddr, chaddr, ETH_ALEN); in add_lease()
|
D | test-dhcp-client.c | 167 …assert_se(dhcp_identifier_set_iaid(42, mac_addr, ETH_ALEN, true, /* use_mac = */ true, &iaid) >= 0… in check_options() 220 assert_se(memcmp(discover->dhcp.chaddr, &mac_addr, ETH_ALEN) == 0); in dhcp_network_send_raw_socket() 285 … assert_se(sd_dhcp_client_set_mac(client, mac_addr, bcast_addr, ETH_ALEN, ARPHRD_ETHER) >= 0); in test_discover_message() 503 … assert_se(sd_dhcp_client_set_mac(client, mac_addr, bcast_addr, ETH_ALEN, ARPHRD_ETHER) >= 0); in test_addr_acq()
|
D | sd-lldp-tx.c | 368 memcpy(header->ether_dhost, lldp_multicast_addr + lldp_tx->mode, ETH_ALEN); in lldp_tx_create_packet() 369 memcpy(header->ether_shost, &lldp_tx->hwaddr, ETH_ALEN); in lldp_tx_create_packet() 467 .ll.sll_halen = ETH_ALEN, in lldp_tx_send_packet() 469 memcpy(sa.ll.sll_addr, lldp_multicast_addr + lldp_tx->mode, ETH_ALEN); in lldp_tx_send_packet()
|
D | dhcp-identifier.c | 78 assert_return(addr_len == ETH_ALEN, -EINVAL); in dhcp_identifier_set_duid_llt() 108 assert_return(addr_len == ETH_ALEN, -EINVAL); in dhcp_identifier_set_duid_ll()
|
D | test-lldp-rx.c | 117 assert_se(length == ETH_ALEN); in test_receive_basic_packet() 118 assert_se(!memcmp(data, "\x00\x01\x02\x03\x04\x05", ETH_ALEN)); in test_receive_basic_packet()
|
D | fuzz-dhcp-client.c | 67 … assert_se(sd_dhcp_client_set_mac(client, mac_addr, bcast_addr, ETH_ALEN, ARPHRD_ETHER) >= 0); in LLVMFuzzerTestOneInput()
|
D | sd-dhcp-client.c | 38 #define MAX_MAC_ADDR_LEN CONST_MAX(INFINIBAND_ALEN, ETH_ALEN) 55 uint8_t haddr[ETH_ALEN]; 332 assert_return(addr_len == ETH_ALEN, -EINVAL); in sd_dhcp_client_set_mac() 417 if ((type == ARPHRD_ETHER && data_len != ETH_ALEN) || in sd_dhcp_client_set_client_id() 1948 expected_hlen = ETH_ALEN; in client_receive_message_udp()
|
/systemd-251/src/network/ |
D | networkd-dhcp-server-static-lease.c | 89 assert(static_lease->client_id_size == ETH_ALEN + 1); in static_lease_verify() 199 c = new(uint8_t, ETH_ALEN + 1); in config_parse_dhcp_static_lease_hwaddr() 205 memcpy(c + 1, &hwaddr, ETH_ALEN); in config_parse_dhcp_static_lease_hwaddr() 208 lease->client_id_size = ETH_ALEN + 1; in config_parse_dhcp_static_lease_hwaddr()
|
D | networkd-ipv4acd.c | 123 .length = ETH_ALEN, in ipv4acd_check_mac() 144 if (link->hw_addr.length != ETH_ALEN || hw_addr_is_null(&link->hw_addr)) in ipv4acd_configure() 202 if (link->hw_addr.length != ETH_ALEN) in ipv4acd_update_mac()
|
D | networkd-ipv4ll.c | 163 .length = ETH_ALEN, in ipv4ll_check_mac() 215 if (link->hw_addr.length != ETH_ALEN) in ipv4ll_update_mac()
|
/systemd-251/src/basic/ |
D | ether-addr-util.c | 96 return memcmp(a, b, ETH_ALEN); in ether_addr_compare() 238 if (!IN_SET(len, 4, 16, ETH_ALEN, INFINIBAND_ALEN)) in parse_hw_addr_full() 257 r = parse_hw_addr_full(s, ETH_ALEN, &a); in parse_ether_addr()
|
D | arphrd-util.c | 32 return ETH_ALEN; in arphrd_to_hw_addr_len()
|
D | socket-util.h | 40 … uint8_t ll_buffer[offsetof(struct sockaddr_ll, sll_addr) + CONST_MAX(ETH_ALEN, INFINIBAND_ALEN)]; 210 _mac_len = MAX(_mac_len, (size_t) ETH_ALEN); \
|
D | ether-addr-util.h | 90 return memeqbyte(0xff, addr->ether_addr_octet, ETH_ALEN); in ether_addr_is_broadcast()
|
/systemd-251/src/network/netdev/ |
D | wlan.c | 86 if (!hw_addr_is_null(&netdev->hw_addr) && netdev->hw_addr.length == ETH_ALEN) { in wlan_fill_message()
|
/systemd-251/src/nspawn/ |
D | nspawn-network.c | 96 assert_cc(ETH_ALEN <= sizeof(result)); in generate_mac() 97 memcpy(mac->ether_addr_octet, &result, ETH_ALEN); in generate_mac()
|