Lines Matching refs:fr
75 struct fib_result_nl *fr; in result_msg_parser() local
89 fr = nlmsg_data(n); in result_msg_parser()
90 addr = nl_addr_build(AF_INET, &fr->fl_addr, 4); in result_msg_parser()
98 flnl_request_set_fwmark(res->fr_req, fr->fl_fwmark); in result_msg_parser()
99 flnl_request_set_tos(res->fr_req, fr->fl_tos); in result_msg_parser()
100 flnl_request_set_scope(res->fr_req, fr->fl_scope); in result_msg_parser()
101 flnl_request_set_table(res->fr_req, fr->tb_id_in); in result_msg_parser()
103 res->fr_table_id = fr->tb_id; in result_msg_parser()
104 res->fr_prefixlen = fr->prefixlen; in result_msg_parser()
105 res->fr_nh_sel = fr->nh_sel; in result_msg_parser()
106 res->fr_type = fr->type; in result_msg_parser()
107 res->fr_scope = fr->scope; in result_msg_parser()
108 res->fr_error = fr->err; in result_msg_parser()
215 struct fib_result_nl fr = {0}; in flnl_lookup_build_request() local
222 fr.fl_fwmark = fwmark != UINT_LEAST64_MAX ? fwmark : 0; in flnl_lookup_build_request()
223 fr.fl_tos = tos >= 0 ? tos : 0; in flnl_lookup_build_request()
224 fr.fl_scope = scope >= 0 ? scope : RT_SCOPE_UNIVERSE; in flnl_lookup_build_request()
225 fr.tb_id_in = table >= 0 ? table : RT_TABLE_UNSPEC; in flnl_lookup_build_request()
231 fr.fl_addr = *(uint32_t *) nl_addr_get_binary_addr(addr); in flnl_lookup_build_request()
237 if (nlmsg_append(msg, &fr, sizeof(fr), NLMSG_ALIGNTO) < 0) in flnl_lookup_build_request()