Re: [PATCH net] nexthop: Fix attribute checking for groups

2020-05-17 Thread David Miller
From: David Ahern Date: Sun, 17 May 2020 11:26:32 -0600 > From: David Ahern > > For nexthop groups, attributes after NHA_GROUP_TYPE are invalid, but > nh_check_attr_group starts checking at NHA_GROUP. The group type defaults > to multipath and the NHA_GROUP_TYPE is currently optional so this ha

[PATCH net] nexthop: Fix attribute checking for groups

2020-05-17 Thread David Ahern
From: David Ahern For nexthop groups, attributes after NHA_GROUP_TYPE are invalid, but nh_check_attr_group starts checking at NHA_GROUP. The group type defaults to multipath and the NHA_GROUP_TYPE is currently optional so this has slipped through so far. Fix the attribute checking to handle suppo