Home
last modified time | relevance | path

Searched refs:mac_addr (Results 1 – 20 of 20) sorted by relevance

/systemd-251/src/libsystemd-network/
Dtest-dhcp-client.c25 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()
Dsd-ipv4acd.c70 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()
Dsd-ndisc.c92 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()
Dtest-ipv4ll.c80 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()
Dfuzz-ndisc-rs.c40 struct ether_addr mac_addr = { in LLVMFuzzerTestOneInput() local
53 assert_se(sd_ndisc_set_mac(nd, &mac_addr) >= 0); in LLVMFuzzerTestOneInput()
Dfuzz-dhcp-client.c48 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()
Dsd-radv.c200 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()
Dtest-ndisc-rs.c20 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()
Dtest-ndisc-ra.c19 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()
Dsd-dhcp-client.c89 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 …]
Dndisc-internal.h27 struct ether_addr mac_addr; member
Ddhcp-network.c118 const uint8_t *mac_addr, in dhcp_network_bind_raw_socket() argument
139 memcpy(&eth_mac, mac_addr, ETH_ALEN); in dhcp_network_bind_raw_socket()
Dradv-internal.h86 struct ether_addr mac_addr; member
Ddhcp-internal.h36 const uint8_t *mac_addr, size_t mac_addr_len,
/systemd-251/src/network/netdev/
Dmacvlan.c32 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/
Dnetworkd-bridge-fdb.c134 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()
Dnetworkd-bridge-fdb.h36 struct ether_addr mac_addr; member
/systemd-251/src/basic/linux/
Dif_bridge.h94 __u8 mac_addr[ETH_ALEN]; member
687 unsigned char mac_addr[ETH_ALEN]; member
/systemd-251/src/systemd/
Dsd-radv.h53 int sd_radv_set_mac(sd_radv *ra, const struct ether_addr *mac_addr);
Dsd-ndisc.h83 int sd_ndisc_set_mac(sd_ndisc *nd, const struct ether_addr *mac_addr);