/systemd-251/src/libsystemd-network/ |
D | test-dhcp-client.c | 25 static uint8_t mac_addr[] = {'A', 'B', 'C', '1', '2', '3'}; variable 142 assert_se(dhcp_identifier_set_iaid(42, mac_addr, sizeof(mac_addr), /* legacy = */ true, in test_dhcp_identifier_set_iaid() 144 assert_se(dhcp_identifier_set_iaid(42, mac_addr, sizeof(mac_addr), /* legacy = */ false, in test_dhcp_identifier_set_iaid() 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() 443 memcpy(&test_addr_acq_ack[56], &mac_addr, ETHER_ADDR_LEN); in test_addr_acq_recv_request() 474 memcpy(&test_addr_acq_offer[56], &mac_addr, ETHER_ADDR_LEN); in test_addr_acq_recv_discover() 503 … assert_se(sd_dhcp_client_set_mac(client, mac_addr, bcast_addr, ETH_ALEN, ARPHRD_ETHER) >= 0); in test_addr_acq()
|
D | sd-ipv4acd.c | 70 struct ether_addr mac_addr; member 239 r = arp_send_probe(acd->fd, acd->ifindex, &acd->address, &acd->mac_addr); in ipv4acd_on_timeout() 272 r = arp_send_announcement(acd->fd, acd->ifindex, &acd->address, &acd->mac_addr); in ipv4acd_on_timeout() 389 … r = arp_send_announcement(acd->fd, acd->ifindex, &acd->address, &acd->mac_addr); in ipv4acd_on_packet() 469 acd->mac_addr = *addr; in sd_ipv4acd_set_mac() 475 r = arp_update_filter(acd->fd, &acd->address, &acd->mac_addr); in sd_ipv4acd_set_mac() 544 r = arp_update_filter(acd->fd, &acd->address, &acd->mac_addr); in sd_ipv4acd_set_address() 582 assert_return(!ether_addr_is_null(&acd->mac_addr), -EINVAL); in sd_ipv4acd_start() 585 r = arp_network_bind_raw_socket(acd->ifindex, &acd->address, &acd->mac_addr); in sd_ipv4acd_start()
|
D | sd-ndisc.c | 92 int sd_ndisc_set_mac(sd_ndisc *nd, const struct ether_addr *mac_addr) { in sd_ndisc_set_mac() argument 95 if (mac_addr) in sd_ndisc_set_mac() 96 nd->mac_addr = *mac_addr; in sd_ndisc_set_mac() 98 zero(nd->mac_addr); in sd_ndisc_set_mac() 291 r = icmp6_send_router_solicitation(nd->fd, &nd->mac_addr); in ndisc_timeout()
|
D | test-ipv4ll.c | 80 struct ether_addr mac_addr = { in test_public_api_setters() local 111 assert_se(sd_ipv4ll_set_mac(ll, &mac_addr) == 0); in test_public_api_setters() 129 struct ether_addr mac_addr = { in test_basic_request() local 141 assert_se(sd_ipv4ll_set_mac(ll, &mac_addr) == 0); in test_basic_request()
|
D | fuzz-ndisc-rs.c | 40 struct ether_addr mac_addr = { in LLVMFuzzerTestOneInput() local 53 assert_se(sd_ndisc_set_mac(nd, &mac_addr) >= 0); in LLVMFuzzerTestOneInput()
|
D | fuzz-dhcp-client.c | 48 uint8_t mac_addr[] = {'A', 'B', 'C', '1', '2', '3'}; in LLVMFuzzerTestOneInput() local 67 … assert_se(sd_dhcp_client_set_mac(client, mac_addr, bcast_addr, ETH_ALEN, ARPHRD_ETHER) >= 0); in LLVMFuzzerTestOneInput()
|
D | sd-radv.c | 200 if (!ether_addr_is_null(&ra->mac_addr)) { in radv_send() 201 opt_mac.slladdr = ra->mac_addr; in radv_send() 484 int sd_radv_set_mac(sd_radv *ra, const struct ether_addr *mac_addr) { in sd_radv_set_mac() argument 490 if (mac_addr) in sd_radv_set_mac() 491 ra->mac_addr = *mac_addr; in sd_radv_set_mac() 493 zero(ra->mac_addr); in sd_radv_set_mac()
|
D | test-ndisc-rs.c | 20 static struct ether_addr mac_addr = { variable 274 assert_se(sd_ndisc_set_mac(nd, &mac_addr) >= 0); in TEST() 363 assert_se(sd_ndisc_set_mac(nd, &mac_addr) >= 0); in TEST()
|
D | test-ndisc-ra.c | 19 static struct ether_addr mac_addr = { variable 157 assert_se(sd_radv_set_mac(ra, &mac_addr) >= 0); in TEST() 298 assert_se(sd_radv_set_mac(ra, &mac_addr) >= 0); in TEST()
|
D | sd-dhcp-client.c | 89 uint8_t mac_addr[MAX_MAC_ADDR_LEN]; member 339 memcmp(&client->mac_addr, addr, addr_len) == 0 && in sd_dhcp_client_set_mac() 350 memcpy(&client->mac_addr, addr, addr_len); in sd_dhcp_client_set_mac() 478 r = dhcp_identifier_set_iaid(client->ifindex, client->mac_addr, in dhcp_client_set_iaid_duid_internal() 494 r = dhcp_identifier_set_duid(duid_type, client->mac_addr, client->mac_addr_len, in dhcp_client_set_iaid_duid_internal() 817 client->arp_type, client->mac_addr_len, client->mac_addr, in client_message_init() 854 … r = dhcp_identifier_set_iaid(client->ifindex, client->mac_addr, client->mac_addr_len, in client_message_init() 1433 client->mac_addr, client->mac_addr_len, in client_start_delayed() 1484 client->mac_addr, client->mac_addr_len, in client_timeout_t2() 1949 expected_chaddr = &client->mac_addr[0]; in client_receive_message_udp() [all …]
|
D | ndisc-internal.h | 27 struct ether_addr mac_addr; member
|
D | dhcp-network.c | 118 const uint8_t *mac_addr, in dhcp_network_bind_raw_socket() argument 139 memcpy(ð_mac, mac_addr, ETH_ALEN); in dhcp_network_bind_raw_socket()
|
D | radv-internal.h | 86 struct ether_addr mac_addr; member
|
D | dhcp-internal.h | 36 const uint8_t *mac_addr, size_t mac_addr_len,
|
/systemd-251/src/network/netdev/ |
D | macvlan.c | 32 const struct ether_addr *mac_addr; in netdev_macvlan_fill_message_create() local 42 SET_FOREACH(mac_addr, m->match_source_mac) { in netdev_macvlan_fill_message_create() 43 … r = sd_netlink_message_append_ether_addr(req, IFLA_MACVLAN_MACADDR, mac_addr); in netdev_macvlan_fill_message_create()
|
/systemd-251/src/network/ |
D | networkd-bridge-fdb.c | 134 r = sd_netlink_message_append_data(req, NDA_LLADDR, &fdb->mac_addr, sizeof(fdb->mac_addr)); in bridge_fdb_configure_message() 298 r = parse_ether_addr(rvalue, &fdb->mac_addr); in config_parse_fdb_hwaddr()
|
D | networkd-bridge-fdb.h | 36 struct ether_addr mac_addr; member
|
/systemd-251/src/basic/linux/ |
D | if_bridge.h | 94 __u8 mac_addr[ETH_ALEN]; member 687 unsigned char mac_addr[ETH_ALEN]; member
|
/systemd-251/src/systemd/ |
D | sd-radv.h | 53 int sd_radv_set_mac(sd_radv *ra, const struct ether_addr *mac_addr);
|
D | sd-ndisc.h | 83 int sd_ndisc_set_mac(sd_ndisc *nd, const struct ether_addr *mac_addr);
|