- 07 Oct, 2011 5 commits
-
-
Thomas Jarosch authored
Detected by cppcheck. Signed-off-by: Thomas Jarosch <thomas.jarosch@intra2net.com>
-
Thomas Jarosch authored
Detected by cppcheck. Signed-off-by: Thomas Jarosch <thomas.jarosch@intra2net.com>
-
Jiri Benc authored
When changing ip6ip6 parameters (ip -6 tun change), ip passes zeroed struct ip6_tnl_parm to the kernel. The kernel then tries to change all of the tunnel parameters to the passed values, including zeroing of local and remote address. This fails (-EEXIST in net/ipv6/ip6_tunnel.c:ip6_tnl_ioctl). For other tunnel types, ip fetches the current parameters first and applies the required changes on top of them. This patch applies the same code as in ip/iptunnel.c to ip/ip6tunnel.c. See http://bugzilla.redhat.com/730627 for the original bug report. Signed-off-by: Jiri Benc <jbenc@redhat.com>
-
Thomas Jarosch authored
Detected by cppcheck. Signed-off-by: Thomas Jarosch <thomas.jarosch@intra2net.com>
-
Sridhar Samudrala authored
Add bridge as a supported type with 'ip link' in usage and all the missing types in 'ip' man page. Also fixed some typos. Signed-off-by: Sridhar Samudrala <sri@us.ibm.com>
-
- 06 Oct, 2011 3 commits
-
-
Petr Sabata authored
Signed-off-by: Petr Sabata <contyk@redhat.com>
-
Petr Sabata authored
Signed-off-by: Petr Sabata <contyk@redhat.com>
-
Petr Sabata authored
Signed-off-by: Petr Sabata <contyk@redhat.com>
-
- 31 Aug, 2011 15 commits
-
-
Stephen Hemminger authored
Add some documentation about ip neighbour table parameter command.
-
Dan McGee authored
-
Dan McGee authored
-
Dan McGee authored
remove unused basename logic, avoid dereference of possibly NULL variable
-
Dan McGee authored
would leak a file handle
-
Eric W. Biederman authored
Use O_EXCL so that we only create and mount a new network namespace if there is no chance an existing network namespace is present. Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
-
Eric W. Biederman authored
If libc has setns present use that version instead of rolling the syscall wrapper by hand. Dan McGee found the following compile error: gcc -D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall -I../include -DRESOLVE_HOSTNAMES -DLIBDIR=\"/usr/lib/\" -c -o ipnetns.o ipnetns.c ipnetns.c:31:12: error: static declaration of ‘setns’ follows non-static declaration /usr/include/bits/sched.h:93:12: note: previous declaration of ‘setns’ was here make[1]: *** [ipnetns.o] Error 1 Reported-by: Dan McGee <dan@archlinux.org> Tested-by: Dan McGee <dan@archlinux.org> Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
-
Stephen Hemminger authored
Update the automatically generated sanitized headers
-
Dan McGee authored
On Arch Linux, we still install the iptables shared libraries in /usr/lib/iptables/, even though the main library is installed to /usr/lib/libxtables.so. This change checks all available locations to correctly find the iptables library directory. Signed-off-by: Dan McGee <dan@archlinux.org>
-
Florian Westphal authored
when specifiying filters without 'protocol' keyword, tc will default to 'protocol all'. Unfortunately, this missed a byte-ordering conversion.
-
Dan McGee authored
This hasn't been updated since 2006.
-
Stephen Hemminger authored
and make type table const.
-
Florian Westphal authored
Document 'divisor' option and mention that external classifiers can be used.
-
Florian Westphal authored
-
Bin Li authored
Extra bracket
-
- 20 Jul, 2011 2 commits
-
-
Andreas Henriksson authored
$ ip route help 2>&1 | grep monitor ip route { add | del | change | append | replace | monitor } ROUTE $ ip route monitor Command "monitor" is unknown, try "ip route help". (I guess what was really intended is "ip monitor route", so just remove the argument from the help output.) Originally reported by martin f krafft at http://bugs.debian.org/537681 While at it, also drop all non-existant (route,link,netns) monitor arguments from the ip(8) man page. Signed-off-by: Andreas Henriksson <andreas@fatal.se>
-
Christoph Biedl authored
The "ip monitor" command does properly decode the "preferred" and "valid" lifetime records in router advertisements from netlink messages.
-
- 13 Jul, 2011 3 commits
-
-
Stephen Hemminger authored
Basic configuration support for QFQ. Still need to add manual page.
-
Stephen Hemminger authored
redo.
-
Eric W. Biederman authored
The goal of this code change is to implement a mechanism such that it is simple to work with a kernel that is using multiple network namespaces at once. This comes in handy for interacting with vpns where there may be rfc1918 address overlaps, and different policies default routes, name servers and the like. Configuration specific to a network namespace that would ordinarily be stored under /etc/ is stored under /etc/netns/<name>. For example if the dns server configuration is different for your vpn you would create a file /etc/netns/myvpn/resolv.conf. File descriptors that can be used to manipulate a network namespace can be created by opening /var/run/netns/<NAME>. This adds the following commands to iproute. ip netns add NAME ip netns delete NAME ip netns monitor ip netns list ip netns exec NAME cmd .... ip link set DEV netns NAME ip netns exec exists to cater the vast majority of programs that only know how to operate in a single network namespace. ip netns exec changes the default network namespace, creates a new mount namespace, remounts /sys and bind mounts netns specific configuration files to their standard locations. Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
-
- 11 Jul, 2011 7 commits
-
-
Stephen Hemminger authored
getline() returns -1 on EOF, need to not loose that by forcing result to size_t (unsigned). Reported-by: Petr Sabata
-
Stephen Hemminger authored
-
Stephen Hemminger authored
-
Andreas Henriksson authored
iptables/xtables apparently changed API again.... Now you need to pass and extra parameter (orig_opts) which was not needed before. Sprinkle some lovely pre-processor magic to be compatible with both older and new versions. In the beginning of times XTABLES_VERSION_CODE didn't exist. Then it was (0x10000 * major + 0x100 * minor + patch) when it was first introduced (according to git), but now it's at 6... Don't know what official iptables releases has defined it to over time. Lets just hope none of the older versions with is has the define higher then 6 is still around.... so only the "current" versioning scheme is supported.... lets see how long this lasts now. For the API change in xtables, see: http://git.netfilter.org/cgi-bin/gitweb.cgi?p=iptables.git;a=commitdiff;h=600f38db82548a683775fd89b6e136673e924097Signed-off-by: Andreas Henriksson <andreas@fatal.se>
-
Petr Sabata authored
This patch removes unreachable, useless code. Signed-off-by: Petr Sabata <contyk@redhat.com>
-
David Ward authored
The ip(8) man page and the "ip xfrm [ XFRM-OBJECT ] help" command output are updated to include missing options, fix errors, and improve grammar. There are no functional changes made. The documentation for the ip command has many different meanings for the same formatting symbols (which really needs to be fixed). This patch makes consistent use of brackets [ ] to indicate optional parameters, pipes | to mean "OR", braces { } to group things together, and dashes - instead of underscores _ inside of parameter names. The parameters are listed in the order in which they are parsed in the source code. There are several parameters and options that are still not mentioned or need to be described more thoroughly in the "COMMAND SYNTAX" section of the ip(8) man page. I would appreciate help from the developers with this. Signed-off-by: David Ward <david.ward@ll.mit.edu>
-
Gilles Espinasse authored
Signed-off-by: Gilles Espinasse <g.esp@free.fr>
-
- 29 Jun, 2011 5 commits
-
-
Stephen Hemminger authored
-
Stephen Hemminger authored
-
Stephen Hemminger authored
-
Stephen Hemminger authored
Don't ignore readlink failure.
-
Stephen Hemminger authored
-