Home
last modified time | relevance | path

Searched refs:ether_addr (Results 1 – 25 of 58) sorted by relevance

123

/systemd-251/src/basic/
Dether-addr-util.h20 struct ether_addr ether;
32 int parse_ether_addr(const char *s, struct ether_addr *ret);
72 char* ether_addr_to_string(const struct ether_addr *addr, char buffer[ETHER_ADDR_TO_STRING_MAX]);
73 int ether_addr_to_string_alloc(const struct ether_addr *addr, char **ret);
77 int ether_addr_compare(const struct ether_addr *a, const struct ether_addr *b);
78 static inline bool ether_addr_equal(const struct ether_addr *a, const struct ether_addr *b) { in ether_addr_equal()
82 #define ETHER_ADDR_NULL ((const struct ether_addr){})
84 static inline bool ether_addr_is_null(const struct ether_addr *addr) { in ether_addr_is_null()
88 static inline bool ether_addr_is_broadcast(const struct ether_addr *addr) { in ether_addr_is_broadcast()
93 static inline bool ether_addr_is_multicast(const struct ether_addr *addr) { in ether_addr_is_multicast()
[all …]
Dether-addr-util.c60 char* ether_addr_to_string(const struct ether_addr *addr, char buffer[ETHER_ADDR_TO_STRING_MAX]) { in ether_addr_to_string()
79 int ether_addr_to_string_alloc(const struct ether_addr *addr, char **ret) { in ether_addr_to_string_alloc()
95 int ether_addr_compare(const struct ether_addr *a, const struct ether_addr *b) { in ether_addr_compare()
99 static void ether_addr_hash_func(const struct ether_addr *p, struct siphash *state) { in ether_addr_hash_func()
100 siphash24_compress(p, sizeof(struct ether_addr), state); in ether_addr_hash_func()
103 DEFINE_HASH_OPS(ether_addr_hash_ops, struct ether_addr, ether_addr_hash_func, ether_addr_compare);
104 DEFINE_HASH_OPS_WITH_KEY_DESTRUCTOR(ether_addr_hash_ops_free, struct ether_addr, ether_addr_hash_fu…
250 int parse_ether_addr(const char *s, struct ether_addr *ret) { in parse_ether_addr()
/systemd-251/src/libsystemd-network/
Darp-util.h14 int arp_update_filter(int fd, const struct in_addr *a, const struct ether_addr *mac);
15 int arp_network_bind_raw_socket(int ifindex, const struct in_addr *a, const struct ether_addr *mac);
21 const struct ether_addr *ha,
27 const struct ether_addr *ha) { in arp_send_probe()
34 const struct ether_addr *ha) { in arp_send_announcement()
Dicmp6-util.c111 int icmp6_send_router_solicitation(int s, const struct ether_addr *ether_addr) { in icmp6_send_router_solicitation() argument
119 struct ether_addr rs_opt_mac; in icmp6_send_router_solicitation()
137 assert(ether_addr); in icmp6_send_router_solicitation()
139 rs.rs_opt_mac = *ether_addr; in icmp6_send_router_solicitation()
Dtest-ipv4ll.c49 const struct ether_addr *ha, in arp_send_packet()
65 int arp_update_filter(int fd, const struct in_addr *a, const struct ether_addr *eth_mac) { in arp_update_filter()
69 int arp_network_bind_raw_socket(int ifindex, const struct in_addr *a, const struct ether_addr *eth_… in arp_network_bind_raw_socket()
80 struct ether_addr mac_addr = { in test_public_api_setters()
129 struct ether_addr mac_addr = { in test_basic_request()
Dfuzz-ndisc-rs.c35 int icmp6_send_router_solicitation(int s, const struct ether_addr *ether_addr) { in icmp6_send_router_solicitation() argument
40 struct ether_addr mac_addr = { in LLVMFuzzerTestOneInput()
Darp-util.c17 int arp_update_filter(int fd, const struct in_addr *a, const struct ether_addr *mac) { in arp_update_filter()
29 …BPF_JUMP(BPF_JMP + BPF_JEQ + BPF_K, sizeof(struct ether_addr), 1, 0), /* length == sizeof… in arp_update_filter()
69 int arp_network_bind_raw_socket(int ifindex, const struct in_addr *a, const struct ether_addr *mac)… in arp_network_bind_raw_socket()
101 const struct ether_addr *ha, in arp_send_packet()
Dicmp6-util.h22 int icmp6_send_router_solicitation(int s, const struct ether_addr *ether_addr);
Dsd-ipv4ll.c37 struct ether_addr mac;
67 static int ipv4ll_check_mac(sd_ipv4acd *acd, const struct ether_addr *mac, void *userdata);
142 int sd_ipv4ll_set_mac(sd_ipv4ll *ll, const struct ether_addr *addr) { in sd_ipv4ll_set_mac()
371 static int ipv4ll_check_mac(sd_ipv4acd *acd, const struct ether_addr *mac, void *userdata) { in ipv4ll_check_mac()
Dlldp-neighbor.h33 struct ether_addr source_address;
34 struct ether_addr destination_address;
Dtest-acd.c37 static int client_run(int ifindex, const struct in_addr *pa, const struct ether_addr *ha, sd_event … in client_run()
64 struct ether_addr ha; in test_acd()
Dtest-ipv4ll-manual.c45 static int client_run(int ifindex, const char *seed_str, const struct ether_addr *ha, sd_event *e) { in client_run()
78 struct ether_addr ha; in test_ll()
Dtest-ndisc-rs.c20 static struct ether_addr mac_addr = {
219 int icmp6_send_router_solicitation(int s, const struct ether_addr *ether_addr) { in icmp6_send_router_solicitation() argument
Dtest-ndisc-ra.c19 static struct ether_addr mac_addr = {
222 int icmp6_send_router_solicitation(int s, const struct ether_addr *ether_addr) { in icmp6_send_router_solicitation() argument
Dlldp-neighbor.c195 memcpy(&n->source_address, h.ether_shost, sizeof(struct ether_addr)); in lldp_neighbor_parse()
196 memcpy(&n->destination_address, h.ether_dhost, sizeof(struct ether_addr)); in lldp_neighbor_parse()
364 int sd_lldp_neighbor_get_source_address(sd_lldp_neighbor *n, struct ether_addr* address) { in sd_lldp_neighbor_get_source_address()
372 int sd_lldp_neighbor_get_destination_address(sd_lldp_neighbor *n, struct ether_addr* address) { in sd_lldp_neighbor_get_destination_address()
407 struct ether_addr a; in format_mac_address()
Dsd-ipv4acd.c70 struct ether_addr mac_addr;
330 …acd->check_mac_callback(acd, (const struct ether_addr*) arp->arp_sha, acd->check_mac_userdata) > 0) in ipv4acd_arp_conflict()
462 int sd_ipv4acd_set_mac(sd_ipv4acd *acd, const struct ether_addr *addr) { in sd_ipv4acd_set_mac()
/systemd-251/src/network/
Dtest-networkd-conf.c56 static void test_config_parse_ether_addr_one(const char *rvalue, int ret, const struct ether_addr* … in test_config_parse_ether_addr_one()
57 struct ether_addr *actual = NULL; in test_config_parse_ether_addr_one()
71 static void test_config_parse_ether_addrs_one(const char *rvalue, const struct ether_addr* list, si… in test_config_parse_ether_addrs_one()
78 _cleanup_free_ struct ether_addr *q = NULL; in test_config_parse_ether_addrs_one()
107 const struct ether_addr t[] = { in TEST()
Dnetworkd-wifi.c209 struct ether_addr bssid; in manager_genl_process_nl80211_mlme()
235 struct ether_addr bssid; in manager_genl_process_nl80211_mlme()
/systemd-251/src/systemd/
Dsd-lldp-rx.h67 int sd_lldp_rx_set_filter_address(sd_lldp_rx *lldp_rx, const struct ether_addr *address);
76 int sd_lldp_neighbor_get_source_address(sd_lldp_neighbor *n, struct ether_addr* address);
77 int sd_lldp_neighbor_get_destination_address(sd_lldp_neighbor *n, struct ether_addr* address);
Dsd-ipv4acd.h39 typedef int (*sd_ipv4acd_check_mac_callback_t)(sd_ipv4acd *acd, const struct ether_addr *mac, void …
46 int sd_ipv4acd_set_mac(sd_ipv4acd *acd, const struct ether_addr *addr);
Dsd-ipv4ll.h39 typedef int (*sd_ipv4ll_check_mac_callback_t)(sd_ipv4ll *ll, const struct ether_addr *mac, void *us…
46 int sd_ipv4ll_set_mac(sd_ipv4ll *ll, const struct ether_addr *addr);
/systemd-251/src/nspawn/
Dnspawn-network.c63 struct ether_addr *mac, in generate_mac()
134 const struct ether_addr *mac_host, in add_veth()
136 const struct ether_addr *mac_container) { in add_veth()
243 struct ether_addr mac_host, mac_container; in setup_veth()
304 struct ether_addr mac_host, mac_container; in setup_veth_extra()
545 struct ether_addr mac; in setup_macvlan()
/systemd-251/src/test/
Dtest-ether-addr-util.c8 struct ether_addr a; in TEST()
26 a = (struct ether_addr) { { 0x01, 0x23, 0x34, 0x56, 0x78, 0x9a } }; in TEST()
/systemd-251/src/shared/
Dwifi-util.h12 int wifi_get_station(sd_netlink *genl, int ifindex, struct ether_addr *ret_bssid);
Dnet-condition.h42 const struct ether_addr *bssid);

123