/systemd-251/src/basic/ |
D | ether-addr-util.h | 17 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()
|
D | ether-addr-util.c | 15 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/ |
D | test-ether-addr-util.c | 35 #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/ |
D | netlink-util.h | 77 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…
|
D | netlink-util.c | 67 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/ |
D | networkd-link.h | 60 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);
|
D | networkd-ipv4acd.c | 117 struct hw_addr_data hw_addr; in ipv4acd_check_mac() 122 hw_addr = (struct hw_addr_data) { in ipv4acd_check_mac()
|
D | networkd-ipv4ll.c | 157 struct hw_addr_data hw_addr; in ipv4ll_check_mac() 162 hw_addr = (struct hw_addr_data) { in ipv4ll_check_mac()
|
D | networkd-neighbor.h | 26 struct hw_addr_data ll_addr;
|
D | networkd-network-bus.c | 19 const struct hw_addr_data *p; in property_get_hw_addrs()
|
/systemd-251/src/network/netdev/ |
D | netdev.h | 14 #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);
|
D | netdev.c | 405 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()
|
D | veth.h | 12 struct hw_addr_data hw_addr_peer;
|
D | veth.c | 13 struct hw_addr_data hw_addr; in netdev_veth_fill_message_create()
|
/systemd-251/src/udev/net/ |
D | link-config.h | 39 struct hw_addr_data hw_addr; 40 struct hw_addr_data permanent_hw_addr; 52 struct hw_addr_data hw_addr;
|
D | link-config.c | 539 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/ |
D | netif-util.h | 21 const struct hw_addr_data *ib_hw_addr, 22 struct hw_addr_data *new_hw_addr);
|
D | net-condition.h | 33 const struct hw_addr_data *hw_addr, 34 const struct hw_addr_data *permanent_hw_addr,
|
D | netif-util.c | 131 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()
|
D | net-condition.c | 123 const struct hw_addr_data *hw_addr, in net_match_config() 124 const struct hw_addr_data *permanent_hw_addr, in net_match_config()
|
D | ethtool-util.h | 167 int ethtool_get_permanent_hw_addr(int *ethtool_fd, const char *ifname, struct hw_addr_data *ret);
|
D | json.h | 291 #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/ |
D | udev-netlink.h | 13 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/ |
D | dhcp6-internal.h | 39 struct hw_addr_data hw_addr;
|
/systemd-251/src/network/generator/ |
D | network-generator.h | 87 struct hw_addr_data mac;
|