Lines Matching refs:rlink
28 struct rtnl_link *rlink = NULL;
59 err = rtnl_link_get_kernel(handle, 0, if_name, &rlink);
66 if_idx = rtnl_link_get_ifindex(rlink);
67 rtnl_link_put(rlink);
68 rlink = NULL;
70 err = rtnl_link_get_kernel(handle, 0, vlan_if_name, &rlink);
73 rtnl_link_put(rlink);
74 rlink = NULL;
81 rlink = rtnl_link_alloc();
82 if (!rlink) {
87 err = rtnl_link_set_type(rlink, "vlan");
94 rtnl_link_set_link(rlink, if_idx);
95 rtnl_link_set_name(rlink, vlan_if_name);
97 err = rtnl_link_vlan_set_id(rlink, vid);
104 err = rtnl_link_add(handle, rlink, NLM_F_CREATE);
116 if (rlink)
117 rtnl_link_put(rlink);
128 struct rtnl_link *rlink = NULL;
145 err = rtnl_link_get_kernel(handle, 0, if_name, &rlink);
153 err = rtnl_link_delete(handle, rlink);
163 if (rlink)
164 rtnl_link_put(rlink);