Lines Matching defs:link
69 static struct rtnl_link_af_ops *af_lookup_and_alloc(struct rtnl_link *link, in af_lookup_and_alloc()
87 static int af_free(struct rtnl_link *link, struct rtnl_link_af_ops *ops, in af_free()
98 static int af_clone(struct rtnl_link *link, struct rtnl_link_af_ops *ops, in af_clone()
110 static int af_fill(struct rtnl_link *link, struct rtnl_link_af_ops *ops, in af_fill()
131 static int af_dump_line(struct rtnl_link *link, struct rtnl_link_af_ops *ops, in af_dump_line()
142 static int af_dump_details(struct rtnl_link *link, struct rtnl_link_af_ops *ops, in af_dump_details()
153 static int af_dump_stats(struct rtnl_link *link, struct rtnl_link_af_ops *ops, in af_dump_stats()
164 static int do_foreach_af(struct rtnl_link *link, in do_foreach_af()
190 static void release_link_info(struct rtnl_link *link) in release_link_info()
208 struct rtnl_link *link = nl_object_priv(c); in link_free_data() local
304 int rtnl_link_info_parse(struct rtnl_link *link, struct nlattr **tb) in rtnl_link_info_parse()
481 struct rtnl_link *link; in link_msg_parser() local
652 struct rtnl_link *link = (struct rtnl_link *) obj; in link_dump_line() local
706 struct rtnl_link *link = (struct rtnl_link *) obj; in link_dump_details() local
768 struct rtnl_link *link = (struct rtnl_link *) obj; in link_dump_stats() local
881 struct rtnl_link *link = (struct rtnl_link *) obj; in link_keygen() local
1055 struct rtnl_link *link; in rtnl_link_get() local
1088 struct rtnl_link *link; in rtnl_link_get_by_name() local
1211 struct rtnl_link *link = rtnl_link_get(cache, ifindex); in rtnl_link_i2name() local
1234 struct rtnl_link *link; in rtnl_link_name2i() local
1247 int rtnl_link_fill_info(struct nl_msg *msg, struct rtnl_link *link) in rtnl_link_fill_info()
1304 struct rtnl_link *link, int flags, struct nl_msg **result) in build_link_msg()
1376 int rtnl_link_build_add_request(struct rtnl_link *link, int flags, in rtnl_link_build_add_request()
1405 int rtnl_link_add(struct nl_sock *sk, struct rtnl_link *link, int flags) in rtnl_link_add()
1550 int rtnl_link_build_delete_request(const struct rtnl_link *link, in rtnl_link_build_delete_request()
1604 int rtnl_link_delete(struct nl_sock *sk, const struct rtnl_link *link) in rtnl_link_delete()
1637 void rtnl_link_put(struct rtnl_link *link) in rtnl_link_put()
1656 void rtnl_link_set_name(struct rtnl_link *link, const char *name) in rtnl_link_set_name()
1670 char *rtnl_link_get_name(struct rtnl_link *link) in rtnl_link_get_name()
1680 void rtnl_link_set_group(struct rtnl_link *link, uint32_t group) in rtnl_link_set_group()
1692 uint32_t rtnl_link_get_group(struct rtnl_link *link) in rtnl_link_get_group()
1697 static inline void __assign_addr(struct rtnl_link *link, struct nl_addr **pos, in __assign_addr()
1720 void rtnl_link_set_addr(struct rtnl_link *link, struct nl_addr *addr) in rtnl_link_set_addr()
1734 struct nl_addr *rtnl_link_get_addr(struct rtnl_link *link) in rtnl_link_get_addr()
1751 void rtnl_link_set_broadcast(struct rtnl_link *link, struct nl_addr *addr) in rtnl_link_set_broadcast()
1765 struct nl_addr *rtnl_link_get_broadcast(struct rtnl_link *link) in rtnl_link_get_broadcast()
1778 void rtnl_link_set_flags(struct rtnl_link *link, unsigned int flags) in rtnl_link_set_flags()
1793 void rtnl_link_unset_flags(struct rtnl_link *link, unsigned int flags) in rtnl_link_unset_flags()
1809 unsigned int rtnl_link_get_flags(struct rtnl_link *link) in rtnl_link_get_flags()
1819 void rtnl_link_set_family(struct rtnl_link *link, int family) in rtnl_link_set_family()
1840 int rtnl_link_get_family(struct rtnl_link *link) in rtnl_link_get_family()
1854 void rtnl_link_set_arptype(struct rtnl_link *link, unsigned int arptype) in rtnl_link_set_arptype()
1868 unsigned int rtnl_link_get_arptype(struct rtnl_link *link) in rtnl_link_get_arptype()
1884 void rtnl_link_set_ifindex(struct rtnl_link *link, int ifindex) in rtnl_link_set_ifindex()
1899 int rtnl_link_get_ifindex(struct rtnl_link *link) in rtnl_link_get_ifindex()
1912 void rtnl_link_set_mtu(struct rtnl_link *link, unsigned int mtu) in rtnl_link_set_mtu()
1926 unsigned int rtnl_link_get_mtu(struct rtnl_link *link) in rtnl_link_get_mtu()
1941 void rtnl_link_set_txqlen(struct rtnl_link *link, unsigned int txqlen) in rtnl_link_set_txqlen()
1957 unsigned int rtnl_link_get_txqlen(struct rtnl_link *link) in rtnl_link_get_txqlen()
1962 void rtnl_link_set_link(struct rtnl_link *link, int ifindex) in rtnl_link_set_link()
1968 int rtnl_link_get_link(struct rtnl_link *link) in rtnl_link_get_link()
1980 void rtnl_link_set_master(struct rtnl_link *link, int ifindex) in rtnl_link_set_master()
1993 int rtnl_link_get_master(struct rtnl_link *link) in rtnl_link_get_master()
2005 void rtnl_link_set_carrier(struct rtnl_link *link, uint8_t status) in rtnl_link_set_carrier()
2018 uint8_t rtnl_link_get_carrier(struct rtnl_link *link) in rtnl_link_get_carrier()
2031 void rtnl_link_set_operstate(struct rtnl_link *link, uint8_t status) in rtnl_link_set_operstate()
2045 uint8_t rtnl_link_get_operstate(struct rtnl_link *link) in rtnl_link_get_operstate()
2058 void rtnl_link_set_linkmode(struct rtnl_link *link, uint8_t mode) in rtnl_link_set_linkmode()
2072 uint8_t rtnl_link_get_linkmode(struct rtnl_link *link) in rtnl_link_get_linkmode()
2085 const char *rtnl_link_get_ifalias(struct rtnl_link *link) in rtnl_link_get_ifalias()
2102 void rtnl_link_set_ifalias(struct rtnl_link *link, const char *alias) in rtnl_link_set_ifalias()
2128 void rtnl_link_set_qdisc(struct rtnl_link *link, const char *name) in rtnl_link_set_qdisc()
2142 char *rtnl_link_get_qdisc(struct rtnl_link *link) in rtnl_link_get_qdisc()
2155 int rtnl_link_get_num_vf(struct rtnl_link *link, uint32_t *num_vf) in rtnl_link_get_num_vf()
2171 uint64_t rtnl_link_get_stat(struct rtnl_link *link, rtnl_link_stat_id_t id) in rtnl_link_get_stat()
2190 int rtnl_link_set_stat(struct rtnl_link *link, rtnl_link_stat_id_t id, in rtnl_link_set_stat()
2213 int rtnl_link_set_type(struct rtnl_link *link, const char *type) in rtnl_link_set_type()
2256 char *rtnl_link_get_type(struct rtnl_link *link) in rtnl_link_get_type()
2270 void rtnl_link_set_promiscuity(struct rtnl_link *link, uint32_t count) in rtnl_link_set_promiscuity()
2283 uint32_t rtnl_link_get_promiscuity(struct rtnl_link *link) in rtnl_link_get_promiscuity()
2302 void rtnl_link_set_num_tx_queues(struct rtnl_link *link, uint32_t nqueues) in rtnl_link_set_num_tx_queues()
2314 uint32_t rtnl_link_get_num_tx_queues(struct rtnl_link *link) in rtnl_link_get_num_tx_queues()
2333 void rtnl_link_set_num_rx_queues(struct rtnl_link *link, uint32_t nqueues) in rtnl_link_set_num_rx_queues()
2345 uint32_t rtnl_link_get_num_rx_queues(struct rtnl_link *link) in rtnl_link_get_num_rx_queues()
2356 struct nl_data *rtnl_link_get_phys_port_id(struct rtnl_link *link) in rtnl_link_get_phys_port_id()
2361 void rtnl_link_set_ns_fd(struct rtnl_link *link, int fd) in rtnl_link_set_ns_fd()
2367 int rtnl_link_get_ns_fd(struct rtnl_link *link) in rtnl_link_get_ns_fd()
2372 void rtnl_link_set_ns_pid(struct rtnl_link *link, pid_t pid) in rtnl_link_set_ns_pid()
2378 pid_t rtnl_link_get_ns_pid(struct rtnl_link *link) in rtnl_link_get_ns_pid()
2405 struct rtnl_link *link; in rtnl_link_enslave_ifindex() local
2684 int rtnl_link_set_info_type(struct rtnl_link *link, const char *type) in rtnl_link_set_info_type()
2692 char *rtnl_link_get_info_type(struct rtnl_link *link) in rtnl_link_get_info_type()
2700 void rtnl_link_set_weight(struct rtnl_link *link, unsigned int weight) in rtnl_link_set_weight()
2709 unsigned int rtnl_link_get_weight(struct rtnl_link *link) in rtnl_link_get_weight()