Home
last modified time | relevance | path

Searched refs:ETH_ALEN (Results 1 – 25 of 40) sorted by relevance

12

/systemd-251/src/libsystemd/sd-netlink/
Dnetlink-types-genl.c54 …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 },
Dnetlink-types-rtnl.c95 [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/
Dif_ether.h32 #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 */
Dif_bonding.h128 __u8 partner_system[ETH_ALEN];
Dif_tun.h111 __u8 addr[0][ETH_ALEN];
Dif_bridge.h94 __u8 mac_addr[ETH_ALEN];
687 unsigned char mac_addr[ETH_ALEN];
/systemd-251/src/libsystemd-network/
Dlldp-network.c33 .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()
Darp-util.c74 .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()
Ddhcp-network.c61 …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(&eth_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()
Dfuzz-dhcp-server.c35 lease->hlen = ETH_ALEN; in add_lease()
36 memcpy(lease->chaddr, chaddr, ETH_ALEN); in add_lease()
Dtest-dhcp-client.c167 …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()
Dsd-lldp-tx.c368 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()
Ddhcp-identifier.c78 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()
Dtest-lldp-rx.c117 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()
Dfuzz-dhcp-client.c67 … assert_se(sd_dhcp_client_set_mac(client, mac_addr, bcast_addr, ETH_ALEN, ARPHRD_ETHER) >= 0); in LLVMFuzzerTestOneInput()
Dsd-dhcp-client.c38 #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/
Dnetworkd-dhcp-server-static-lease.c89 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()
Dnetworkd-ipv4acd.c123 .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()
Dnetworkd-ipv4ll.c163 .length = ETH_ALEN, in ipv4ll_check_mac()
215 if (link->hw_addr.length != ETH_ALEN) in ipv4ll_update_mac()
/systemd-251/src/basic/
Dether-addr-util.c96 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()
Darphrd-util.c32 return ETH_ALEN; in arphrd_to_hw_addr_len()
Dsocket-util.h40 … 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); \
Dether-addr-util.h90 return memeqbyte(0xff, addr->ether_addr_octet, ETH_ALEN); in ether_addr_is_broadcast()
/systemd-251/src/network/netdev/
Dwlan.c86 if (!hw_addr_is_null(&netdev->hw_addr) && netdev->hw_addr.length == ETH_ALEN) { in wlan_fill_message()
/systemd-251/src/nspawn/
Dnspawn-network.c96 assert_cc(ETH_ALEN <= sizeof(result)); in generate_mac()
97 memcpy(mac->ether_addr_octet, &result, ETH_ALEN); in generate_mac()

12