Home
last modified time | relevance | path

Searched refs:hw_addr_data (Results 1 – 25 of 34) sorted by relevance

12

/systemd-251/src/basic/
Dether-addr-util.h17 struct hw_addr_data { struct
28 int parse_hw_addr_full(const char *s, size_t expected_len, struct hw_addr_data *ret); argument
29 static inline int parse_hw_addr(const char *s, struct hw_addr_data *ret) { in parse_hw_addr()
40 const struct hw_addr_data *addr,
43 static inline char *hw_addr_to_string(const struct hw_addr_data *addr, char buffer[static HW_ADDR_T… in hw_addr_to_string()
53 #define HW_ADDR_NULL ((const struct hw_addr_data){})
55 void hw_addr_hash_func(const struct hw_addr_data *p, struct siphash *state);
56 int hw_addr_compare(const struct hw_addr_data *a, const struct hw_addr_data *b);
57 static inline bool hw_addr_equal(const struct hw_addr_data *a, const struct hw_addr_data *b) { in hw_addr_equal()
60 static inline bool hw_addr_is_null(const struct hw_addr_data *addr) { in hw_addr_is_null()
Dether-addr-util.c15 const struct hw_addr_data *addr, in hw_addr_to_string_full()
36 int hw_addr_compare(const struct hw_addr_data *a, const struct hw_addr_data *b) { in hw_addr_compare()
49 void hw_addr_hash_func(const struct hw_addr_data *p, struct siphash *state) { in hw_addr_hash_func()
57 DEFINE_HASH_OPS(hw_addr_hash_ops, struct hw_addr_data, hw_addr_hash_func, hw_addr_compare);
58 DEFINE_HASH_OPS_WITH_KEY_DESTRUCTOR(hw_addr_hash_ops_free, struct hw_addr_data, hw_addr_hash_func, …
164 int parse_hw_addr_full(const char *s, size_t expected_len, struct hw_addr_data *ret) { in parse_hw_addr_full()
251 struct hw_addr_data a; in parse_ether_addr()
/systemd-251/src/test/
Dtest-ether-addr-util.c35 #define INFINIBAD_ADDR_1 ((const struct hw_addr_data){ .length = 20, .infiniband = {1,2,3,4,5,6,7,8…
38 const char *s = HW_ADDR_TO_STR(&(const struct hw_addr_data){6}); in TEST()
42 HW_ADDR_TO_STR(&(const struct hw_addr_data){6}), in TEST()
43 HW_ADDR_TO_STR(&(const struct hw_addr_data){6})); in TEST()
45 HW_ADDR_TO_STR(&(const struct hw_addr_data){6}), in TEST()
47 HW_ADDR_TO_STR(&(const struct hw_addr_data){6})); in TEST()
54 HW_ADDR_TO_STR(&(const struct hw_addr_data){20}), "", in TEST()
56 HW_ADDR_TO_STR(&(const struct hw_addr_data){20})); in TEST()
60 if ((p = HW_ADDR_TO_STR(&(const struct hw_addr_data){6}))) in TEST()
65 struct hw_addr_data h; in test_parse_hw_addr_full_one()
/systemd-251/src/libsystemd/sd-netlink/
Dnetlink-util.h77 const struct hw_addr_data *hw_addr,
98 struct hw_addr_data *ret_hw_addr,
99 struct hw_addr_data *ret_permanent_hw_addr);
134 …essage_append_hw_addr(sd_netlink_message *m, unsigned short type, const struct hw_addr_data *data);
138 int netlink_message_read_hw_addr(sd_netlink_message *m, unsigned short type, struct hw_addr_data *d…
Dnetlink-util.c67 const struct hw_addr_data *hw_addr, in rtnl_set_link_properties()
370 struct hw_addr_data *ret_hw_addr, in rtnl_get_link_info()
371 struct hw_addr_data *ret_permanent_hw_addr) { in rtnl_get_link_info()
374 struct hw_addr_data addr = HW_ADDR_NULL, perm_addr = HW_ADDR_NULL; in rtnl_get_link_info()
/systemd-251/src/network/
Dnetworkd-link.h60 struct hw_addr_data hw_addr;
61 struct hw_addr_data bcast_addr;
62 struct hw_addr_data permanent_hw_addr;
63 struct hw_addr_data requested_hw_addr;
209 int link_get_by_hw_addr(Manager *m, const struct hw_addr_data *hw_addr, Link **ret);
Dnetworkd-ipv4acd.c117 struct hw_addr_data hw_addr; in ipv4acd_check_mac()
122 hw_addr = (struct hw_addr_data) { in ipv4acd_check_mac()
Dnetworkd-ipv4ll.c157 struct hw_addr_data hw_addr; in ipv4ll_check_mac()
162 hw_addr = (struct hw_addr_data) { in ipv4ll_check_mac()
Dnetworkd-neighbor.h26 struct hw_addr_data ll_addr;
Dnetworkd-network-bus.c19 const struct hw_addr_data *p; in property_get_hw_addrs()
/systemd-251/src/network/netdev/
Dnetdev.h14 #define HW_ADDR_NONE ((struct hw_addr_data) { .length = 1, })
126 struct hw_addr_data hw_addr;
209 const struct hw_addr_data *hw_addr, struct hw_addr_data *ret);
Dnetdev.c405 const struct hw_addr_data *hw_addr, in netdev_generate_hw_addr()
406 struct hw_addr_data *ret) { in netdev_generate_hw_addr()
408 struct hw_addr_data a = HW_ADDR_NULL; in netdev_generate_hw_addr()
492 struct hw_addr_data hw_addr; in netdev_create_message()
921 struct hw_addr_data *hw_addr = data; in config_parse_netdev_hw_addr()
Dveth.h12 struct hw_addr_data hw_addr_peer;
Dveth.c13 struct hw_addr_data hw_addr; in netdev_veth_fill_message_create()
/systemd-251/src/udev/net/
Dlink-config.h39 struct hw_addr_data hw_addr;
40 struct hw_addr_data permanent_hw_addr;
52 struct hw_addr_data hw_addr;
Dlink-config.c539 static bool hw_addr_is_valid(Link *link, const struct hw_addr_data *hw_addr) { in hw_addr_is_valid()
559 static int link_generate_new_hw_addr(Link *link, struct hw_addr_data *ret) { in link_generate_new_hw_addr()
560 struct hw_addr_data hw_addr = HW_ADDR_NULL; in link_generate_new_hw_addr()
605 hw_addr = (struct hw_addr_data) { in link_generate_new_hw_addr()
672 struct hw_addr_data hw_addr = {}; in link_apply_rtnl_settings()
/systemd-251/src/shared/
Dnetif-util.h21 const struct hw_addr_data *ib_hw_addr,
22 struct hw_addr_data *new_hw_addr);
Dnet-condition.h33 const struct hw_addr_data *hw_addr,
34 const struct hw_addr_data *permanent_hw_addr,
Dnetif-util.c131 const struct hw_addr_data *ib_hw_addr, /* current or parent HW address */ in net_verify_hardware_address()
132 struct hw_addr_data *new_hw_addr) { in net_verify_hardware_address()
Dnet-condition.c123 const struct hw_addr_data *hw_addr, in net_match_config()
124 const struct hw_addr_data *permanent_hw_addr, in net_match_config()
Dethtool-util.h167 int ethtool_get_permanent_hw_addr(int *ethtool_fd, const char *ifname, struct hw_addr_data *ret);
Djson.h291 #define JSON_BUILD_HW_ADDR(v) _JSON_BUILD_HW_ADDR, (const struct hw_addr_data*) { v }
326 …e, v) _JSON_BUILD_PAIR_HW_ADDR_NON_NULL, (const char*) { name }, (const struct hw_addr_data*) { v }
/systemd-251/src/udev/
Dudev-netlink.h13 struct hw_addr_data hw_addr; /* IFLA_ADDRESS (address, addr_len) */
14 struct hw_addr_data broadcast; /* IFLA_BROADCAST (broadcast) */
/systemd-251/src/libsystemd-network/
Ddhcp6-internal.h39 struct hw_addr_data hw_addr;
/systemd-251/src/network/generator/
Dnetwork-generator.h87 struct hw_addr_data mac;

12