Searched refs:mac_addr (Results 1 - 14 of 14) sorted by relevance

/systemd/src/network/
H A Dnetworkd-fdb.c35 struct ether_addr *mac_addr = NULL; local
51 mac_addr = new0(struct ether_addr, 1);
52 if (!mac_addr)
59 /* free previously allocated space for mac_addr. */
60 free(mac_addr);
66 fdb_entry->mac_addr = mac_addr;
123 r = sd_netlink_message_append_ether_addr(req, NDA_LLADDR, fdb_entry->mac_addr);
156 free(fdb_entry->mac_addr);
190 &fdb_entry->mac_addr
[all...]
H A Dnetworkd-fdb.h31 struct ether_addr *mac_addr; member in struct:FdbEntry
/systemd/src/libsystemd-network/
H A Dtest-ipv4ll.c105 struct ether_addr mac_addr = { local
136 assert_se(sd_ipv4ll_set_mac(ll, &mac_addr) == 0);
155 struct ether_addr mac_addr = { local
167 assert_se(sd_ipv4ll_set_mac(ll, &mac_addr) == 0);
H A Dsd-ipv4acd.c92 struct ether_addr mac_addr; member in struct:sd_ipv4acd
264 r = arp_send_probe(ll->fd, ll->index, ll->address, &ll->mac_addr);
301 r = arp_send_announcement(ll->fd, ll->index, ll->address, &ll->mac_addr);
373 r = arp_send_announcement(ll->fd, ll->index, ll->address, &ll->mac_addr);
418 memcpy(&ll->mac_addr, addr, ETH_ALEN);
492 assert_return(!ether_addr_is_nul(&ll->mac_addr), -EINVAL);
497 r = arp_network_bind_raw_socket(ll->index, ll->address, &ll->mac_addr);
H A Dsd-ndisc.c79 struct ether_addr mac_addr; member in struct:sd_ndisc
157 int sd_ndisc_set_mac(sd_ndisc *nd, const struct ether_addr *mac_addr) { argument
160 if (mac_addr)
161 memcpy(&nd->mac_addr, mac_addr, sizeof(nd->mac_addr));
163 zero(nd->mac_addr);
617 r = icmp6_send_router_solicitation(nd->fd, &nd->mac_addr);
H A Dtest-ndisc-rs.c27 static struct ether_addr mac_addr = { variable in typeref:struct:ether_addr
134 assert_se(sd_ndisc_set_mac(nd, &mac_addr) >= 0);
H A Ddhcp-internal.h34 uint32_t xid, const uint8_t *mac_addr,
H A Ddhcp-network.c35 uint32_t xid, const uint8_t *mac_addr,
127 uint32_t xid, const uint8_t *mac_addr,
144 memcpy(&eth_mac, mac_addr, ETH_ALEN);
153 return _bind_raw_socket(ifindex, link, xid, mac_addr, mac_addr_len,
34 _bind_raw_socket(int ifindex, union sockaddr_union *link, uint32_t xid, const uint8_t *mac_addr, size_t mac_addr_len, const uint8_t *bcast_addr, const struct ether_addr *eth_mac, uint16_t arp_type, uint8_t dhcp_hlen) argument
126 dhcp_network_bind_raw_socket(int ifindex, union sockaddr_union *link, uint32_t xid, const uint8_t *mac_addr, size_t mac_addr_len, uint16_t arp_type) argument
H A Dtest-lldp.c43 static struct ether_addr mac_addr = { variable in typeref:struct:ether_addr
56 memcpy(&ether.ether_shost, &mac_addr, ETHER_ADDR_LEN);
65 assert_se(tlv_packet_append_bytes(m, &mac_addr, ETHER_ADDR_LEN) >= 0);
123 assert_se(memcmp(p, &mac_addr.ether_addr_octet, ETHER_ADDR_LEN) == 0);
262 r = sd_lldp_new(42, "dummy", &mac_addr, lldp);
H A Dtest-dhcp-client.c35 static uint8_t mac_addr[] = {'A', 'B', 'C', '1', '2', '3'}; variable
130 assert_se(dhcp_identifier_set_iaid(42, mac_addr, ETH_ALEN, &iaid) >= 0);
183 assert_se(memcmp(discover->dhcp.chaddr, &mac_addr, ETH_ALEN) == 0);
247 assert_se(sd_dhcp_client_set_mac(client, mac_addr, ETH_ALEN, ARPHRD_ETHER) >= 0);
401 memcpy(&test_addr_acq_ack[56], &mac_addr, ETHER_ADDR_LEN);
432 memcpy(&test_addr_acq_offer[56], &mac_addr, ETHER_ADDR_LEN);
462 assert_se(sd_dhcp_client_set_mac(client, mac_addr, ETH_ALEN, ARPHRD_ETHER) >= 0);
H A Dtest-dhcp6-client.c38 static struct ether_addr mac_addr = { variable in typeref:struct:ether_addr
67 assert_se(sd_dhcp6_client_set_mac(client, (const uint8_t *) &mac_addr,
68 sizeof (mac_addr),
716 assert_se(sd_dhcp6_client_set_mac(client, (const uint8_t *) &mac_addr,
717 sizeof (mac_addr),
H A Dsd-dhcp-client.c65 uint8_t mac_addr[MAX_MAC_ADDR_LEN]; member in struct:sd_dhcp_client
217 memcmp(&client->mac_addr, addr, addr_len) == 0)
227 memcpy(&client->mac_addr, addr, addr_len);
470 memcpy(&packet->dhcp.chaddr, &client->mac_addr, ETH_ALEN);
478 r = dhcp_identifier_set_iaid(client->index, client->mac_addr, client->mac_addr_len, &client->client_id.ns.iaid);
1012 client->xid, client->mac_addr,
1061 client->xid, client->mac_addr,
1576 expected_chaddr = (const struct ether_addr *) &client->mac_addr;
H A Dsd-dhcp6-client.c49 uint8_t mac_addr[MAX_MAC_ADDR_LEN]; member in struct:sd_dhcp6_client
165 memcmp(&client->mac_addr, addr, addr_len) == 0)
168 memcpy(&client->mac_addr, addr, addr_len);
665 r = dhcp_identifier_set_iaid(client->index, client->mac_addr, client->mac_addr_len, &client->ia_na.id);
/systemd/src/systemd/
H A Dsd-ndisc.h53 int sd_ndisc_set_mac(sd_ndisc *nd, const struct ether_addr *mac_addr);

Completed in 32 milliseconds