Home | History | Annotate | Download | only in ap

Lines Matching refs:rlink

37 	struct rtnl_link *rlink = NULL;
79 if ((rlink = rtnl_link_get_by_name(cache, vlan_if_name))) {
81 rtnl_link_put(rlink);
82 rlink = NULL;
89 rlink = rtnl_link_alloc();
90 if (!rlink) {
95 if (rtnl_link_set_type(rlink, "vlan") < 0) {
100 rtnl_link_set_link(rlink, if_idx);
101 rtnl_link_set_name(rlink, vlan_if_name);
103 if (rtnl_link_vlan_set_id(rlink, vid) < 0) {
108 if (rtnl_link_add(handle, rlink, NLM_F_CREATE) < 0) {
118 if (rlink)
119 rtnl_link_put(rlink);
133 struct rtnl_link *rlink = NULL;
154 if (!(rlink = rtnl_link_get_by_name(cache, if_name))) {
161 if (rtnl_link_delete(handle, rlink) < 0) {
170 if (rlink)
171 rtnl_link_put(rlink);