Skip to content

Commit 4c98045

Browse files
Martindavem330
authored andcommitted
bareudp: Fixed multiproto mode configuration
Code to handle multiproto configuration is missing. Fixes: 4b5f672 ("net: Special handling for IP & MPLS") Signed-off-by: Martin <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent e807fa3 commit 4c98045

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/net/bareudp.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -572,6 +572,9 @@ static int bareudp2info(struct nlattr *data[], struct bareudp_conf *conf,
572572
if (data[IFLA_BAREUDP_SRCPORT_MIN])
573573
conf->sport_min = nla_get_u16(data[IFLA_BAREUDP_SRCPORT_MIN]);
574574

575+
if (data[IFLA_BAREUDP_MULTIPROTO_MODE])
576+
conf->multi_proto_mode = true;
577+
575578
return 0;
576579
}
577580

0 commit comments

Comments
 (0)