Re: [PATCH iproute2 1/2] Avoid in6_addr redefinition

2016-01-03 Thread Felix Janda
On 2015-11-19 22:32:50 GMT Stephen Hemminger wrote: > This header file comes from iptables. Please fix there, otherwise > on next time someone does merge from there it will break. It is already fixed in iptables:

[PATCH iproute2] Replace BSD MAXPATHLEN by POSIX PATH_MAX

2015-07-26 Thread Felix Janda
Prefer using the POSIX constant PATH_MAX instead of the legacy BSD derived MAXPATHLEN. The necessary includes for MAXPATHLEN and PATH_MAX are sys/param.h and limits.h, respectively. Signed-off-by: Felix Janda felix.ja...@posteo.de --- This patch is identical except for title and commit message

Re: iproute2: Make linux/in6.h a stub?

2015-04-29 Thread Felix Janda
Stephen Hemminger wrote: On Sat, 25 Apr 2015 22:54:11 +0200 Felix Janda felix.ja...@posteo.de wrote: Hello. Background: Current iproute2 does not build when the libc is musl instead of glibc. This is because of redefinition of in6_addr in netinet/in.h and linux/in6.h

iproute2: Make linux/in6.h a stub?

2015-04-25 Thread Felix Janda
Hello. Background: Current iproute2 does not build when the libc is musl instead of glibc. This is because of redefinition of in6_addr in netinet/in.h and linux/in6.h. There are workarounds in linux/libc-compat.h to make it somehow work for glibc. As I can see linux/in6.h is only indirectly

[PATCH iproute2] Use PATH_MAX instead of MAXPATHLEN

2015-04-25 Thread Felix Janda
They are equivalent but the former is more common. PATH_MAX is specified by POSIX and needs limits.h while MAXPATHLEN has BSD origin and needs sys/param.h. PATH_MAX has already been in use in misc/lnstat.h. Signed-off-by: Felix Janda felix.ja...@posteo.de --- ip/ipnetns.c| 15