On 12/12/2018 04:20 AM, Stanislav Fomichev wrote:
> For some reason, my older GCC (< 4.8) isn't smart enough to optimize the
> !__builtin_constant_p() branch in bpf_htons, I see:
>   error: implicit declaration of function '__builtin_bswap16'
> 
> Let's use __bpf_constant_htons as suggested by Daniel Borkmann.
> 
> I tried to use simple htons, but it produces the following:
>   test_progs.c:54:17: error: braced-group within expression allowed only
>   inside a function
>     .eth.h_proto = htons(ETH_P_IP),
> 
> Signed-off-by: Stanislav Fomichev <s...@google.com>

Applied, thanks!

Reply via email to