Yuan Sun
4fdec5a8e1
correct comment errors for netlink_linux.go
...
Signed-off-by: Yuan Sun <sunyuan3@huawei.com>
2015-03-20 07:55:11 +08:00
Alexander Morozov
ebefcddc3c
Use netlink to set hairpin mode
...
Signed-off-by: Alexander Morozov <lk4d4@docker.com>
2015-02-12 18:40:54 -08:00
Jessica Frazelle
312f997de6
Allow non local mac-address.
...
Docker-DCO-1.1-Signed-off-by: Jessica Frazelle <jess@docker.com> (github: jfrazelle)
2014-12-22 22:42:49 -08:00
Michael Crosby
b02b0b037b
Merge pull request #278 from milosgajdos83/macvtap
...
Introducing macvtap device to netlink package
2014-12-02 15:16:51 -08:00
Milos Gajdos
7075dd2cc2
Introducing macvtap device to netlink package
...
Small refactoring of MacVlan calls. Adds tests, too.
Signed-off-by: Milos Gajdos <milosgajdos83@gmail.com> (github: milosgajdos83)
2014-11-21 15:44:15 +00:00
unclejack
209b1c1f99
netlink: add NetworkSetTxQueueLen to set qlen
...
Signed-off-by: Cristian Staretu <cristian.staretu@gmail.com>
2014-11-21 01:24:15 +02:00
Mrunal Patel
6f7adc79c8
Fix the return code check for ParseIP.
...
Signed-off-by: Mrunal Patel <mrunalp@gmail.com> (github: mrunalp)
2014-11-10 13:33:29 -05:00
Mrunal Patel
e4563c9bd3
Merge pull request #250 from zhgwenming/master
...
Make AddRoute() works with a provided source ip address.
2014-11-06 10:06:19 -08:00
Patrick Hemmer
2d4a713602
enable hairpin mode on virtual interface bridge port
...
This is to support being able to DNAT/MASQ traffic from a container back into itself (dotcloud/docker#4442 )
Docker-DCO-1.1-Signed-off-by: Patrick Hemmer <patrick.hemmer@gmail.com> (github: phemmer)
2014-11-03 23:11:37 -05:00
Albert Zhang
7caee2a772
Use RTA_PREFSRC instead of RTA_SRC to make AddRoute() works with a provided source ip address.
...
Docker-DCO-1.1-Signed-off-by: Albert Zhang <zhgwenming@gmail.com> (github: zhgwenming)
2014-11-01 19:47:09 +08:00
Ye Yin
4ca4048d98
Adds a tx_queuelen setting for veth in the network configuration and defaults it to 0.
...
Signed-off-by: Ye Yin <hustcat@gmail.com>
2014-10-10 13:29:46 -04:00
Michael Crosby
255989b835
Introduce more entropy in veth name generation
...
The current 4 chars are not enough, bumped to 7
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2014-10-02 21:56:48 +00:00
Milos Gajdos
d90daa0cf7
Added VLAN and MAC VLAN device support to netlink
...
You can now create VLAN and MAC VLAN devices using netlink.
I've also added tests for both VLAN and MAC VLAN stuff.
Signed-off-by: Milos Gajdos <milosgajdos83@gmail.com> (github: milosgajdos83)
2014-09-27 04:15:34 +01:00
Milos Gajdos
267ba8f753
Refactored SetNs funcs. Implemented ChangeName.
...
I've refactored NetworkSetNsPid and NetworkSetNsFd following
what we already have in place for Add/Del Ip and Add/Del Link.
I've reimplemented NetworkChangeName function which is now
using netlink for changing the interface name. I added tests too.
I've moved the original syscall implementation at the bottom
to keep it together with the other non-netlink functions.
Signed-off-by: Milos Gajdos <milosgajdos83@gmail.com> (github: milosgajdos83)
2014-09-27 02:27:32 +01:00
Milos Gajdos
4fe2c7a4db
Refactored and added more tests.Cleaned up netlink.
...
I've added more tests. We now have almost 55% coverage.
I've also reorganized netlink_linux codebase and moved
the non-RTNETLINK functions at the bottom. I've also
added some comments to some functions.
Docker-DCO-1.1-Signed-off-by: Milos Gajdos <milosgajdos83@gmail.com> (github: milosgajdos83)
2014-09-20 03:11:26 +01:00
Lewis Marshall
80a574ab49
netlink: Add NetworkSetMacAddress
...
Signed-off-by: Lewis Marshall <lewis@lmars.net>
2014-09-18 02:15:32 +01:00
Jonathan Rudenberg
9fb21a605a
netlink: Add uint32Attr helper
...
Signed-off-by: Jonathan Rudenberg <jonathan@titanous.com>
2014-09-16 09:59:15 -04:00
Jonathan Rudenberg
65842f749b
netlink: Extract message checks into reusable method
...
Signed-off-by: Jonathan Rudenberg <jonathan@titanous.com>
2014-09-15 14:18:17 -04:00
Jonathan Rudenberg
6e4334a68e
netlink: Cache native endianness during init
...
Signed-off-by: Jonathan Rudenberg <jonathan@titanous.com>
2014-09-14 20:40:41 -04:00
Milos Gajdos
356d006895
This is a modification of erikh/netlink-remove-address PR
...
This is a modification of original PR by @erikh (R118)
to keep the netlink codebase more consistent and my OCD
under control :-)
Docker-DCO-1.1-Signed-off-by: Milos Gajdos <milosgajdos83@gmail.com> (github: milosgajdos83)
2014-08-08 02:55:02 +01:00
Milos Gajdos
c5f4d90da5
Fixed rtnetlink attributes packaging into netlink message.
...
I've also added NetworkLinkDel() function which allows deleting
of the existing network links.
Docker-DCO-1.1-Signed-off-by: Milos Gajdos <milosgajdos83@gmail.com> (github: milosgajdos83)
2014-08-06 01:08:21 +01:00
Dhammika Pathirana
c391368000
Null-term ioctl ifr_name strings
...
Docker-DCO-1.1-Signed-off-by: Dhammika Pathirana <dhammika@gmail.com> (github: dhammika)
2014-07-23 22:26:58 -07:00
Michael Crosby
00c55b3966
Merge pull request #46 from dhammika/44-delete-bridge
...
Add netlink hooks to delete a bridge dev #44
2014-07-21 11:29:24 -07:00
Tianon Gravi
6fca833e4d
Fix 386 and arm cross-compile
...
Docker-DCO-1.1-Signed-off-by: Andrew Page <admwiggin@gmail.com> (github: tianon)
2014-07-18 16:08:54 -06:00
Tianon Gravi
1cdf742a82
Update a few build tags to be more generic, add a couple more SETNS constants, and update Travis with a bunch of fixes/tweaks (including removing the nonfunctional cross-compile stuff for now)
...
Docker-DCO-1.1-Signed-off-by: Andrew Page <admwiggin@gmail.com> (github: tianon)
2014-07-17 02:24:49 -06:00
Dhammika Pathirana
a3a4da3822
Add code review updates
...
Docker-DCO-1.1-Signed-off-by: Dhammika Pathirana <dhammika@gmail.com> (github: dhammika)
2014-07-10 23:26:27 -07:00
Dhammika Pathirana
2d69029a83
Add netlink hooks to delete a bridge dev
...
Signed-off-by: Dhammika Pathirana <dhammika@gmail.com>
Docker-DCO-1.1-Signed-off-by: Dhammika Pathirana <dhammika@gmail.com> (github: dhammika)
2014-07-10 23:26:27 -07:00
Michael Crosby
3b1acc34fb
Move libcontainer deps into libcontainer
...
Docker-DCO-1.1-Signed-off-by: Michael Crosby <michael@crosbymichael.com> (github: crosbymichael)
2014-06-09 15:52:12 -07:00