Lines Matching refs:res
51 struct flnl_result *res = nl_object_priv(obj); in result_free_data() local
53 if (res && res->fr_req) in result_free_data()
54 nl_object_put(OBJ_CAST(res->fr_req)); in result_free_data()
73 struct flnl_result *res; in result_msg_parser() local
78 res = flnl_result_alloc(); in result_msg_parser()
79 if (!res) in result_msg_parser()
82 res->ce_msgtype = n->nlmsg_type; in result_msg_parser()
84 res->fr_req = flnl_request_alloc(); in result_msg_parser()
85 if (!res->fr_req) in result_msg_parser()
92 err = flnl_request_set_addr(res->fr_req, addr); in result_msg_parser()
97 flnl_request_set_fwmark(res->fr_req, fr->fl_fwmark); in result_msg_parser()
98 flnl_request_set_tos(res->fr_req, fr->fl_tos); in result_msg_parser()
99 flnl_request_set_scope(res->fr_req, fr->fl_scope); in result_msg_parser()
100 flnl_request_set_table(res->fr_req, fr->tb_id_in); in result_msg_parser()
102 res->fr_table_id = fr->tb_id; in result_msg_parser()
103 res->fr_prefixlen = fr->prefixlen; in result_msg_parser()
104 res->fr_nh_sel = fr->nh_sel; in result_msg_parser()
105 res->fr_type = fr->type; in result_msg_parser()
106 res->fr_scope = fr->scope; in result_msg_parser()
107 res->fr_error = fr->err; in result_msg_parser()
109 err = pp->pp_cb((struct nl_object *) res, pp); in result_msg_parser()
119 flnl_result_put(res); in result_msg_parser()
125 struct flnl_result *res = (struct flnl_result *) obj; in result_dump_line() local
129 rtnl_route_table2str(res->fr_table_id, buf, sizeof(buf)), in result_dump_line()
130 res->fr_prefixlen, res->fr_nh_sel); in result_dump_line()
132 nl_rtntype2str(res->fr_type, buf, sizeof(buf))); in result_dump_line()
134 rtnl_scope2str(res->fr_scope, buf, sizeof(buf)), in result_dump_line()
135 strerror(-res->fr_error), res->fr_error); in result_dump_line()
159 void flnl_result_put(struct flnl_result *res) in flnl_result_put() argument
161 nl_object_put((struct nl_object *) res); in flnl_result_put()
283 int flnl_result_get_table_id(struct flnl_result *res) in flnl_result_get_table_id() argument
285 return res->fr_table_id; in flnl_result_get_table_id()
288 int flnl_result_get_prefixlen(struct flnl_result *res) in flnl_result_get_prefixlen() argument
290 return res->fr_prefixlen; in flnl_result_get_prefixlen()
293 int flnl_result_get_nexthop_sel(struct flnl_result *res) in flnl_result_get_nexthop_sel() argument
295 return res->fr_nh_sel; in flnl_result_get_nexthop_sel()
298 int flnl_result_get_type(struct flnl_result *res) in flnl_result_get_type() argument
300 return res->fr_type; in flnl_result_get_type()
303 int flnl_result_get_scope(struct flnl_result *res) in flnl_result_get_scope() argument
305 return res->fr_scope; in flnl_result_get_scope()
308 int flnl_result_get_error(struct flnl_result *res) in flnl_result_get_error() argument
310 return res->fr_error; in flnl_result_get_error()