On Tue, Nov 30, 2021 at 12:50:53AM +0100, Florian Westphal wrote: > This should store the index of the protocol template, but > x[i] - x[0] is always i, so remove the divide. Also add test case. This should read '&x[i] - &x[0]'. > Fixes: 01fbc1574b9e ("exthdr: add parse and build userdata interface") > Signed-off-by: Florian Westphal <fw@xxxxxxxxx> Acked-by: Phil Sutter <phil@xxxxxx>