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: https://git.netfilter.org/iptables/commit/include/libiptc/ipt_kernel_headers.h?id=0

[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 and , respectively. Signed-off-by: Felix Janda --- This patch is identical except for title and commit message to the one with title "Use PAT

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 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 neti

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 used

[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 while MAXPATHLEN has BSD origin and needs . PATH_MAX has already been in use in misc/lnstat.h. Signed-off-by: Felix Janda --- ip/ipnetns.c| 15 +++ lib/namespace.c | 11 ++- 2