Lines Matching refs:res
159 #define FIB_RES_NH(res) ((res).fi->fib_nh[(res).nh_sel]) argument
161 #define FIB_RES_NH(res) ((res).fi->fib_nh[0]) argument
172 #define FIB_RES_SADDR(net, res) \ argument
173 ((FIB_RES_NH(res).nh_saddr_genid == \
175 FIB_RES_NH(res).nh_saddr : \
176 fib_info_update_nh_saddr((net), &FIB_RES_NH(res)))
177 #define FIB_RES_GW(res) (FIB_RES_NH(res).nh_gw) argument
178 #define FIB_RES_DEV(res) (FIB_RES_NH(res).nh_dev) argument
179 #define FIB_RES_OIF(res) (FIB_RES_NH(res).nh_oif) argument
181 #define FIB_RES_PREFSRC(net, res) ((res).fi->fib_prefsrc ? : \ argument
182 FIB_RES_SADDR(net, res))
195 struct fib_result *res, int fib_flags);
230 struct fib_result *res) in fib_lookup() argument
238 if (tb && !fib_table_lookup(tb, flp, res, FIB_LOOKUP_NOREF)) in fib_lookup()
253 int __fib_lookup(struct net *net, struct flowi4 *flp, struct fib_result *res);
256 struct fib_result *res) in fib_lookup() argument
262 return __fib_lookup(net, flp, res); in fib_lookup()
266 res->tclassid = 0; in fib_lookup()
270 if (tb && !fib_table_lookup(tb, flp, res, FIB_LOOKUP_NOREF)) in fib_lookup()
274 if (tb && !fib_table_lookup(tb, flp, res, FIB_LOOKUP_NOREF)) in fib_lookup()
292 void fib_select_default(struct fib_result *res);
312 void fib_select_multipath(struct fib_result *res);
318 static inline void fib_combine_itag(u32 *itag, const struct fib_result *res) in fib_combine_itag() argument
324 *itag = FIB_RES_NH(*res).nh_tclassid<<16; in fib_combine_itag()
326 rtag = res->tclassid; in fib_combine_itag()