Lines Matching refs:res
126 #define FIB_RES_NH(res) ((res).fi->fib_nh[(res).nh_sel])
132 #define FIB_RES_NH(res) ((res).fi->fib_nh[0])
138 #define FIB_RES_PREFSRC(res) ((res).fi->fib_prefsrc ? : __fib_res_prefsrc(&res))
139 #define FIB_RES_GW(res) (FIB_RES_NH(res).nh_gw)
140 #define FIB_RES_DEV(res) (FIB_RES_NH(res).nh_dev)
141 #define FIB_RES_OIF(res) (FIB_RES_NH(res).nh_oif)
151 struct fib_result *res);
159 struct fib_result *res);
183 struct fib_result *res)
188 if (!fib_table_lookup(table, flp, res))
192 if (!fib_table_lookup(table, flp, res))
202 extern u32 fib_rules_tclass(struct fib_result *res);
205 extern int fib_lookup(struct net *n, struct flowi *flp, struct fib_result *res);
219 struct fib_result *res);
226 extern __be32 __fib_res_prefsrc(struct fib_result *res);
227 extern void fib_select_multipath(const struct flowi *flp, struct fib_result *res);
233 static inline void fib_combine_itag(u32 *itag, struct fib_result *res)
239 *itag = FIB_RES_NH(*res).nh_tclassid<<16;
241 rtag = fib_rules_tclass(res);
257 static inline void fib_res_put(struct fib_result *res)
259 if (res->fi)
260 fib_info_put(res->fi);
262 if (res->r)
263 fib_rule_put(res->r);