aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/fib_semantics.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv4/fib_semantics.c')
-rw-r--r--net/ipv4/fib_semantics.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv4/fib_semantics.c b/net/ipv4/fib_semantics.c
index 453b24e5322c..eac5aec7772a 100644
--- a/net/ipv4/fib_semantics.c
+++ b/net/ipv4/fib_semantics.c
@@ -468,7 +468,7 @@ static int fib_get_nhs(struct fib_info *fi, struct rtnexthop *rtnh,
468 struct nlattr *nla, *attrs = rtnh_attrs(rtnh); 468 struct nlattr *nla, *attrs = rtnh_attrs(rtnh);
469 469
470 nla = nla_find(attrs, attrlen, RTA_GATEWAY); 470 nla = nla_find(attrs, attrlen, RTA_GATEWAY);
471 nexthop_nh->nh_gw = nla ? nla_get_be32(nla) : 0; 471 nexthop_nh->nh_gw = nla ? nla_get_in_addr(nla) : 0;
472#ifdef CONFIG_IP_ROUTE_CLASSID 472#ifdef CONFIG_IP_ROUTE_CLASSID
473 nla = nla_find(attrs, attrlen, RTA_FLOW); 473 nla = nla_find(attrs, attrlen, RTA_FLOW);
474 nexthop_nh->nh_tclassid = nla ? nla_get_u32(nla) : 0; 474 nexthop_nh->nh_tclassid = nla ? nla_get_u32(nla) : 0;
@@ -523,7 +523,7 @@ int fib_nh_match(struct fib_config *cfg, struct fib_info *fi)
523 struct nlattr *nla, *attrs = rtnh_attrs(rtnh); 523 struct nlattr *nla, *attrs = rtnh_attrs(rtnh);
524 524
525 nla = nla_find(attrs, attrlen, RTA_GATEWAY); 525 nla = nla_find(attrs, attrlen, RTA_GATEWAY);
526 if (nla && nla_get_be32(nla) != nh->nh_gw) 526 if (nla && nla_get_in_addr(nla) != nh->nh_gw)
527 return 1; 527 return 1;
528#ifdef CONFIG_IP_ROUTE_CLASSID 528#ifdef CONFIG_IP_ROUTE_CLASSID
529 nla = nla_find(attrs, attrlen, RTA_FLOW); 529 nla = nla_find(attrs, attrlen, RTA_FLOW);