- 06 Mar, 2013 3 commits
-
-
David Stevens authored
This is the iproute2 support allowing an administrator to specify alternate ports, vnis and outgoing interfaces for VXLAN device forwarding tables. Signed-Off-By: David L Stevens <dlstevens@us.ibm.com>
-
David Ward authored
Signed-off-by: David Ward <david.ward@ll.mit.edu> Acked-by: Patrick McHardy <kaber@trash.net>
-
David Ward authored
Reported-by: Andreas Henriksson <andreas@fatal.se> Signed-off-by: David Ward <david.ward@ll.mit.edu>
-
- 04 Mar, 2013 1 commit
-
-
Stephen Hemminger authored
Not all arch have sizeof(unsigned long long) == sizeof(__u64)
-
- 28 Feb, 2013 2 commits
-
-
Stephen Hemminger authored
Some platforms like ppc64 have unsigned long long as 128 bits, and the printf format string would cause errors. Resolve this by using unsigned long long where necessary (or unsigned long).
-
Stephen Hemminger authored
-
- 27 Feb, 2013 5 commits
-
-
Stephen Hemminger authored
Add casts to handle printf format when sizeof(unsigned long long) != sizeof(__u64)
-
Vijay Subramanian authored
Commit (5a650703 Makefile: make warnings into errors ) causes the following build error. gcc -Wall -Wstrict-prototypes -Werror -Wmissing-prototypes -Wmissing-declarations -Wold-style-definition -O2 -I../include -DRESOLVE_HOSTNAMES -DLIBDIR=\"/usr/lib\" -DCONFDIR=\"/etc/iproute2\" -D_GNU_SOURCE -DCONFIG_GACT -DCONFIG_GACT_PROB -DIPT_LIB_DIR=\"/lib/xtables\" -DYY_NO_INPUT -c -o m_ipt.o m_ipt.c cc1: warnings being treated as errors m_ipt.c:72: error: no previous prototype for 'xtables_register_target' m_ipt.c:361: error: no previous prototype for 'build_st' make[1]: *** [m_ipt.o] Error 1 This is fixed by adding the prototype in the header include/iptables.h I am not sure if this is due to something wrong on my build system but I am using current glibc 2.17. Signed-off-by: Vijay Subramanian <subramanian.vijay@gmail.com>
-
Hannes Frederic Sowa authored
The output format is the same as for tcp sockets but only the following fields are currently non-zero: sk_rcvbuf, sk_wmem_alloc and sk_sndbuf. Cc: Stephen Hemminger <stephen@networkplumber.org> Signed-off-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
-
Stephen Hemminger authored
-
Hannes Frederic Sowa authored
On sockets in listen state Send-Q reports the maximum backlog, otherwise it reports allocated socket write memory. Cc: Stephen Hemminger <stephen@networkplumber.org> Signed-off-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
-
- 21 Feb, 2013 2 commits
-
-
Stephen Hemminger authored
-
Kees van Reeuwijk authored
Clearer error messages for fifo and tbf qdiscs: - Say who is complaining - Don't just say a parameter is bad, show the offending parameter - Be clearer about duplicate parameters vs illegal pairs of parameters - Try to give multiple error messages rather than let the user discover the errors one by one - When there are parameter aliases, try to use the variant that was used, or at least mention them all Note that in the old version an empty parameter list to tbf would just cause an explain() message without a specific error message. By simply removing the relevant error check, the code now handles this error more gracefully by printing an error message for all mandatory parameters. It still prints the explain() message. Signed-off-by: Kees van Reeuwijk <reeuwijk@few.vu.nl>
-
- 19 Feb, 2013 2 commits
-
-
Lutz Jaenicke authored
Platforms have different alignment requirements which need to be fulfilled by the compiler. If the structure elements are already 4 byte (NLMGS_ALIGNTO) aligned by the compiler adding an explicit padding element (align_rta) is not allowed. Use __attribute__ ((aligned (NLMSG_ALIGNTO))) in order to achieve the required alignment. Experienced on ARM (xscale) with symptom netlink: 12 bytes leftover after parsing attributes Tested on: ARM (32bit Big Endian) PowerPC (32bit Big Endian) x86_64 (64bit Little Endian) Each with different aligment requirments. Signed-off-by: Lutz Jaenicke <ljaenicke@innominate.com>
-
- 12 Feb, 2013 4 commits
-
-
Stephen Hemminger authored
Fixes Debian bug #700434 Need to table id in filter to be unsigned to avoid conversion to -1 The documentation for "ip" suggests that, when using multiple routing tables, the table ID can be an arbitrary 32 bit number. I've been writing a script that calculates a table Id based on an IP addresses and sets up tables accordingly based on it. This seems to work for everything I've tried except "ip route flush". If you specify a table to flush with an ID over 2^31, it flushes all IPv4 routing tables. For example: Will delete all routing tables, including the default one. Needless to say, this is quite annoying. I think this is an upstream bug, but your opinions will be greatly appreciated.
-
Stephen Hemminger authored
Catches missing, dead code and also places where function should be static.
-
Stephen Hemminger authored
For lookup routines, make arguments const where possible.
-
Stephen Hemminger authored
-
- 11 Feb, 2013 6 commits
-
-
Kees van Reeuwijk authored
This patch improves many error messages as follows: - For incorrect parameters, show the value of the offending parameter, rather than just say that it is incorrect - Rephrased messages for clarity - Rephrased to more `mainstream' english Signed-off-by: Kees van Reeuwijk <reeuwijk@few.vu.nl>
-
Kees van Reeuwijk authored
Rephrasing for clarity. Signed-off-by: Kees van Reeuwijk <reeuwijk@few.vu.nl> --- libnetlink.3 | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-)
-
Kees van Reeuwijk authored
Since do_help() has to return an int to fit in the table of commands, it should actually return an int. This patch lets it do so. Signed-off-by: Kees van Reeuwijk <reeuwijk@few.vu.nl>
-
Kees van Reeuwijk authored
Improved man page as follows: - Use more `mainstream' english - Rephrased for clarity - Use standard notation for units Signed-off-by: Kees van Reeuwijk <reeuwijk@few.vu.nl>
-
Kees van Reeuwijk authored
Rephrasing for clarity. Note that in ip-rule.8 I rephrased a sentence to "The RPDB is scanned in order of decreasing priority." The original version talked about *in*creasing priority, but from the context that didn't make sense. Signed-off-by: Kees van Reeuwijk <reeuwijk@few.vu.nl>
-
Benjamin Poirier authored
On openSUSE 12.2 (at least) xtables.h is not installed in the system-wide include dir but in /usr/include/iptables-1.4.16.3/. This results in the following build failure: em_ipset.c:26:21: fatal error: xtables.h: No such file or directory Other includers of xtables.h already call out to pkg-config
-
- 05 Feb, 2013 2 commits
-
-
Stephen Hemminger authored
Don't put it on separate line, keep it on line with link address.
-
Nicolas Dichtel authored
This is useful to know the 'real' status of an interface (the flag IFF_PROMISC is exported by the kernel only when the user set it explicitly, for example it will not be exported when a tcpdump is running). This information will be displayed when '-details' is provided by the user. Example: $ ip -d l l tun10 6: tun10: <POINTOPOINT,NOARP,UP,LOWER_UP> mtu 1480 qdisc noqueue state UNKNOWN mode DEFAULT link/sit 10.16.0.249 peer 10.16.0.121 sit remote 10.16.0.121 local 10.16.0.249 ttl inherit pmtudisc 6rd-prefix 2002::/16 promiscuity 2 Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
-
- 04 Feb, 2013 11 commits
-
-
Johannes Naab authored
by fixing the parsing of command-line tokens Signed-off-by: Johannes Naab <jn@stusta.de>
-
Nicolas Dichtel authored
The optname was wrong. Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
-
David Ward authored
The 'inherit/STRING' or 'inherit/00..ff' syntax indicates that the TOS field of tunneled packets should be copied from the original IP header, but for non-IP packets the value STRING or 00..ff should be used instead. (This syntax is already used by 'ip tunnel show'.) Also clarify the man page and the command usage text (particularly that the TOS is not specified as a decimal number). Signed-off-by: David Ward <david.ward@ll.mit.edu>
-
Stephen Hemminger authored
There are much better API's to netlink now. Encourage users to look elsewhere.
-
Stephen Hemminger authored
Don't let contributions cause warnings.
-
Eric W. Biederman authored
Add command that go between network namespace names and process identifiers. The code builds and runs agains older kernels but only works on Linux 3.8+ kernels where I have fixed stat to work properly. Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
-
Eric W. Biederman authored
Document ip netns monitor. Add a few senteces describing each command. The manpage was looking very scrawny. Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
-
Eric W. Biederman authored
Sometimes "ip netns delete" fails because it can not delete the file a network namespace was mounted on. If this only happened when a network namespace was really in use this would be fine, but today it is possible to pin all network namespaces by simply having a long running process started with "ip netns exec". Every mount is copied when a network namespace is created so it is impossible to prevent the mounts from getting into other mount namespaces. Modify all mounts in the files and subdirectories of /var/run/netns to be shared mount points so that unmount events can propogate, making it unlikely that "ip netns delete" will fail because a directory is mounted in another mount namespace. Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
-
Eric W. Biederman authored
Report the name of the network namespace that could not be added. Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
-
Eric W. Biederman authored
Ben Hutchings pointed out that the return value of do_netns is passed to exit and the current convention of returning -1 for failure is inconsitent with that reality. Return EXIT_FAILURE instead of -1 and EXIT_SUCCESS instead of 0. To make it clear that the return codes are expected to be passed to exit. Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
-
Eric W. Biederman authored
Some systems are now following the advice in linux/Documentation/sharedsubtrees.txt and running with all mount points shared between all mount namespaces by default. After creating the mount namespace call mount on / with MS_SLAVE|MS_REC to modify all mounts in the new mount namespace to slave mounts if they are shared or private mounts otherwise. Guarnateeing that changes to the mount namespace created with "ip netns exec" don't propgate to other namespaces. Reported-by: Petr Šabata <contyk@redhat.com> Tested-by: Petr Šabata <contyk@redhat.com> Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
-
- 18 Jan, 2013 2 commits
-
-
Stephen Hemminger authored
-
Mike Frysinger authored
Clang doesn't support the gcc extension for embeddeding flexible arrays inside of structures. Use the slightly more portable alloca(). Signed-off-by: Mike Frysinger <vapier@gentoo.org>
-