|
@@ -2297,13 +2297,14 @@ struct rtable *ip_route_output_key_hash(struct net *net, struct flowi4 *fl4,
|
|
const struct sk_buff *skb)
|
|
const struct sk_buff *skb)
|
|
{
|
|
{
|
|
__u8 tos = RT_FL_TOS(fl4);
|
|
__u8 tos = RT_FL_TOS(fl4);
|
|
- struct fib_result res;
|
|
|
|
|
|
+ struct fib_result res = {
|
|
|
|
+ .type = RTN_UNSPEC,
|
|
|
|
+ .fi = NULL,
|
|
|
|
+ .table = NULL,
|
|
|
|
+ .tclassid = 0,
|
|
|
|
+ };
|
|
struct rtable *rth;
|
|
struct rtable *rth;
|
|
|
|
|
|
- res.tclassid = 0;
|
|
|
|
- res.fi = NULL;
|
|
|
|
- res.table = NULL;
|
|
|
|
-
|
|
|
|
fl4->flowi4_iif = LOOPBACK_IFINDEX;
|
|
fl4->flowi4_iif = LOOPBACK_IFINDEX;
|
|
fl4->flowi4_tos = tos & IPTOS_RT_MASK;
|
|
fl4->flowi4_tos = tos & IPTOS_RT_MASK;
|
|
fl4->flowi4_scope = ((tos & RTO_ONLINK) ?
|
|
fl4->flowi4_scope = ((tos & RTO_ONLINK) ?
|