Re: [PATCH iptables] utils: nfsynproxy: fix build with musl libc

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Mar 02, 2017 at 09:35:07AM +0200, Baruch Siach wrote:
> The musl libc exposes some struct tcphdr field only when _GNU_SOURCE is
> defined. Fix the following build failure:
> 
> nfsynproxy.c: In function ‘parse_packet’:
> nfsynproxy.c:34:9: error: ‘const struct tcphdr’ has no member named ‘syn’
>   if (!th->syn || !th->ack)
>          ^
> nfsynproxy.c:34:21: error: ‘const struct tcphdr’ has no member named ‘ack’
>   if (!th->syn || !th->ack)
>                      ^
> nfsynproxy.c:42:8: error: ‘const struct tcphdr’ has no member named ‘res2’
>   if (th->res2 == 0x1)
>         ^
> nfsynproxy.c:45:13: error: ‘const struct tcphdr’ has no member named ‘doff’
>   length = th->doff * 4 - sizeof(*th);
>              ^

Applied, thanks.
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux