- 06 Mar, 2013 7 commits
-
-
Vlad Yasevich authored
Add the vlan command documentation to bridge man page. Signed-off-by: Vlad Yasevich <vyasevic@redhat.com>
-
Vlad Yasevich authored
Recent kernel patches added support for VLAN filtering on the bridge. This functionality allows one to turn a basic bridge into a VLAN bridge, where VLANs dicatate packet forwarding and header transformation. To configure the VLANs on the bridge and its ports a new command is added to the 'bridge' utility. # bridge vlan add dev eth0 vid 10 pvid untagged brdev # bridge vlan add # bridge vlan delete dev eth0 vid 10 # bridge vlan show This command supports the following flags: master - peform the operation on the software bridge device. This is the default behavior. self - perform the operation on the hardware associated with the port. This flag is required when the device is the bridge device and the configuration is desired on the bridge device itself (not one of the ports). pvid - Set the PVID (port vlan id) for a given port. Any untagged frames arriving on the port will be assigned to this vlan. untagged - Sets the egress policy of for a given vlan. Default port egress policy is tagged. Set this flag if you wish traffic associated with this VLAN to exit the port untagged. Signed-off-by: Vlad Yasevich <vyasevic@redhat.com>
-
Vlad Yasevich authored
Provide the ability to set and show vlans on FDB entries. Signed-off-by: Vlad Yasevich <vyasevic@redhat.com>
-
Stephen Hemminger authored
This reverts commit 90ad5ae7.
-
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 9 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>
-