Lines Matching full:link

2  * lib/route/link/vlan.c	VLAN Link Info
26 #include <netlink/route/link/info-api.h>
27 #include <netlink/route/link/vlan.h>
71 static int vlan_alloc(struct rtnl_link *link) in vlan_alloc() argument
78 link->l_info = vi; in vlan_alloc()
83 static int vlan_parse(struct rtnl_link *link, struct nlattr *data, in vlan_parse() argument
90 NL_DBG(3, "Parsing VLAN link info"); in vlan_parse()
95 if ((err = vlan_alloc(link)) < 0) in vlan_parse()
98 vi = link->l_info; in vlan_parse()
169 static void vlan_free(struct rtnl_link *link) in vlan_free() argument
171 struct vlan_info *vi = link->l_info; in vlan_free()
179 link->l_info = NULL; in vlan_free()
182 static void vlan_dump_line(struct rtnl_link *link, struct nl_dump_params *p) in vlan_dump_line() argument
184 struct vlan_info *vi = link->l_info; in vlan_dump_line()
189 static void vlan_dump_details(struct rtnl_link *link, struct nl_dump_params *p) in vlan_dump_details() argument
191 struct vlan_info *vi = link->l_info; in vlan_dump_details()
259 static int vlan_put_attrs(struct nl_msg *msg, struct rtnl_link *link) in vlan_put_attrs() argument
261 struct vlan_info *vi = link->l_info; in vlan_put_attrs()
337 int rtnl_link_vlan_set_id(struct rtnl_link *link, int id) in rtnl_link_vlan_set_id() argument
339 struct vlan_info *vi = link->l_info; in rtnl_link_vlan_set_id()
341 if (link->l_info_ops != &vlan_info_ops || !link->l_info_ops) in rtnl_link_vlan_set_id()
350 int rtnl_link_vlan_get_id(struct rtnl_link *link) in rtnl_link_vlan_get_id() argument
352 struct vlan_info *vi = link->l_info; in rtnl_link_vlan_get_id()
354 if (link->l_info_ops != &vlan_info_ops || !link->l_info_ops) in rtnl_link_vlan_get_id()
363 int rtnl_link_vlan_set_flags(struct rtnl_link *link, unsigned int flags) in rtnl_link_vlan_set_flags() argument
365 struct vlan_info *vi = link->l_info; in rtnl_link_vlan_set_flags()
367 if (link->l_info_ops != &vlan_info_ops || !link->l_info_ops) in rtnl_link_vlan_set_flags()
377 int rtnl_link_vlan_unset_flags(struct rtnl_link *link, unsigned int flags) in rtnl_link_vlan_unset_flags() argument
379 struct vlan_info *vi = link->l_info; in rtnl_link_vlan_unset_flags()
381 if (link->l_info_ops != &vlan_info_ops || !link->l_info_ops) in rtnl_link_vlan_unset_flags()
391 unsigned int rtnl_link_vlan_get_flags(struct rtnl_link *link) in rtnl_link_vlan_get_flags() argument
393 struct vlan_info *vi = link->l_info; in rtnl_link_vlan_get_flags()
395 if (link->l_info_ops != &vlan_info_ops || !link->l_info_ops) in rtnl_link_vlan_get_flags()
401 int rtnl_link_vlan_set_ingress_map(struct rtnl_link *link, int from, in rtnl_link_vlan_set_ingress_map() argument
404 struct vlan_info *vi = link->l_info; in rtnl_link_vlan_set_ingress_map()
406 if (link->l_info_ops != &vlan_info_ops || !link->l_info_ops) in rtnl_link_vlan_set_ingress_map()
418 uint32_t *rtnl_link_vlan_get_ingress_map(struct rtnl_link *link) in rtnl_link_vlan_get_ingress_map() argument
420 struct vlan_info *vi = link->l_info; in rtnl_link_vlan_get_ingress_map()
422 if (link->l_info_ops != &vlan_info_ops || !link->l_info_ops) in rtnl_link_vlan_get_ingress_map()
431 int rtnl_link_vlan_set_egress_map(struct rtnl_link *link, uint32_t from, int to) in rtnl_link_vlan_set_egress_map() argument
433 struct vlan_info *vi = link->l_info; in rtnl_link_vlan_set_egress_map()
435 if (link->l_info_ops != &vlan_info_ops || !link->l_info_ops) in rtnl_link_vlan_set_egress_map()
461 struct vlan_map *rtnl_link_vlan_get_egress_map(struct rtnl_link *link, in rtnl_link_vlan_get_egress_map() argument
464 struct vlan_info *vi = link->l_info; in rtnl_link_vlan_get_egress_map()
466 if (link->l_info_ops != &vlan_info_ops || !link->l_info_ops) in rtnl_link_vlan_get_egress_map()