Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
forked fromtorvalds/linux

Commit68e2ffd

Browse files
dsaherndavem330
authored andcommitted
net/ipv6: Handle onlink flag with multipath routes
For multipath routes the ONLINK flag can be specified per nexthop inrtnh_flags or globally in rtm_flags. Update ip6_route_multipath_addto consider the ONLINK setting coming from rtnh_flags. Each loop overnexthops the config for the sibling route is initialized to the globalconfig and then per nexthop settings overlayed. The flag is 'or'ed intofib6_config to handle the ONLINK flag coming from either rtm_flags orrtnh_flags.Fixes:fc1e64e ("net/ipv6: Add support for onlink flag")Signed-off-by: David Ahern <dsahern@gmail.com>Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent6d06673 commit68e2ffd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

‎net/ipv6/route.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4112,6 +4112,7 @@ static int ip6_route_multipath_add(struct fib6_config *cfg,
41124112
r_cfg.fc_encap_type=nla_get_u16(nla);
41134113
}
41144114

4115+
r_cfg.fc_flags |= (rtnh->rtnh_flags&RTNH_F_ONLINK);
41154116
rt=ip6_route_info_create(&r_cfg,extack);
41164117
if (IS_ERR(rt)) {
41174118
err=PTR_ERR(rt);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp