/systemd/src/network/ |
H A D | networkd-fdb.c | 35 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 D | networkd-fdb.h | 31 struct ether_addr *mac_addr; member in struct:FdbEntry
|
/systemd/src/libsystemd-network/ |
H A D | test-ipv4ll.c | 105 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 D | sd-ipv4acd.c | 92 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 D | sd-ndisc.c | 79 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 D | test-ndisc-rs.c | 27 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 D | dhcp-internal.h | 34 uint32_t xid, const uint8_t *mac_addr,
|
H A D | dhcp-network.c | 35 uint32_t xid, const uint8_t *mac_addr, 127 uint32_t xid, const uint8_t *mac_addr, 144 memcpy(ð_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 D | test-lldp.c | 43 static struct ether_addr mac_addr = { variable in typeref:struct:ether_addr 56 memcpy(ðer.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 D | test-dhcp-client.c | 35 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 D | test-dhcp6-client.c | 38 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 D | sd-dhcp-client.c | 65 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 D | sd-dhcp6-client.c | 49 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 D | sd-ndisc.h | 53 int sd_ndisc_set_mac(sd_ndisc *nd, const struct ether_addr *mac_addr);
|