@@ -201,7 +201,7 @@ static int dn_fib_check_nh(const struct rtmsg *r, struct dn_fib_info *fi, struct
201201 int err ;
202202
203203 if (nh -> nh_gw ) {
204- struct flowi fl ;
204+ struct flowidn fld ;
205205 struct dn_fib_res res ;
206206
207207 if (nh -> nh_flags & RTNH_F_ONLINK ) {
@@ -221,15 +221,15 @@ static int dn_fib_check_nh(const struct rtmsg *r, struct dn_fib_info *fi, struct
221221 return 0 ;
222222 }
223223
224- memset (& fl , 0 , sizeof (fl ));
225- fl . fld_dst = nh -> nh_gw ;
226- fl . flowi_oif = nh -> nh_oif ;
227- fl . fld_scope = r -> rtm_scope + 1 ;
224+ memset (& fld , 0 , sizeof (fld ));
225+ fld . daddr = nh -> nh_gw ;
226+ fld . flowidn_oif = nh -> nh_oif ;
227+ fld . flowidn_scope = r -> rtm_scope + 1 ;
228228
229- if (fl . fld_scope < RT_SCOPE_LINK )
230- fl . fld_scope = RT_SCOPE_LINK ;
229+ if (fld . flowidn_scope < RT_SCOPE_LINK )
230+ fld . flowidn_scope = RT_SCOPE_LINK ;
231231
232- if ((err = dn_fib_lookup (& fl , & res )) != 0 )
232+ if ((err = dn_fib_lookup (& fld , & res )) != 0 )
233233 return err ;
234234
235235 err = - EINVAL ;
@@ -404,7 +404,7 @@ struct dn_fib_info *dn_fib_create_info(const struct rtmsg *r, struct dn_kern_rta
404404 return NULL ;
405405}
406406
407- int dn_fib_semantic_match (int type , struct dn_fib_info * fi , const struct flowi * fl , struct dn_fib_res * res )
407+ int dn_fib_semantic_match (int type , struct dn_fib_info * fi , const struct flowidn * fld , struct dn_fib_res * res )
408408{
409409 int err = dn_fib_props [type ].error ;
410410
@@ -424,7 +424,8 @@ int dn_fib_semantic_match(int type, struct dn_fib_info *fi, const struct flowi *
424424 for_nexthops (fi ) {
425425 if (nh -> nh_flags & RTNH_F_DEAD )
426426 continue ;
427- if (!fl -> flowi_oif || fl -> flowi_oif == nh -> nh_oif )
427+ if (!fld -> flowidn_oif ||
428+ fld -> flowidn_oif == nh -> nh_oif )
428429 break ;
429430 }
430431 if (nhsel < fi -> fib_nhs ) {
@@ -445,7 +446,7 @@ int dn_fib_semantic_match(int type, struct dn_fib_info *fi, const struct flowi *
445446 return err ;
446447}
447448
448- void dn_fib_select_multipath (const struct flowi * fl , struct dn_fib_res * res )
449+ void dn_fib_select_multipath (const struct flowidn * fld , struct dn_fib_res * res )
449450{
450451 struct dn_fib_info * fi = res -> fi ;
451452 int w ;
0 commit comments