Commit Graph

39 Commits

Author SHA1 Message Date
Manohar Castelino
40ccc37ce5 Resolved upstream merge conflicts 2015-12-10 09:36:26 -08:00
Vish Ishaya
8c46a90072 Merge pull request #78 from marek-polewski/bond
add bond interface support
2015-12-09 21:21:57 -08:00
Hubert Krauze
487b33a083 Support Rule tun id 2015-12-09 14:14:24 +01:00
marek-polewski
656c395788 add bond interface support 2015-12-09 13:33:45 +01:00
Manohar Castelino
f8776950ce Added support for creating gretap.
Equivalent to ip link add <name> type gretap local <localIP> remote <remoteIP> key <key>
2015-12-08 16:37:03 -08:00
Marek Polewski
7d55ffec7d Add missing rule related syscalls const 2015-11-26 11:58:26 +01:00
Vish Ishaya
00326095f5 Merge pull request #55 from chantra/netem_qdisc
[netem] minimalist support for netem
2015-11-05 09:27:25 -08:00
Vish Ishaya
56b302fe8b Merge pull request #61 from safchain/getfd
Add an accessor to the fd of the netlink socket
2015-11-05 09:26:58 -08:00
Sylvain Afchain
add4a8a814 Add an accessor to the fd of the netlink socket
Giving a such access could be usefull in order to use
the socket in a non-blocking way. This is especially useful
when using it in a network namespace since the namespace can be
deleted and one can be blocked in a Receive operation.
2015-11-05 11:28:57 +01:00
chantra
322c7826d2 [netem] add support for reordering/corruption/correlation
Note: This requires #58 to be merged in order to properly work.
2015-10-28 00:22:47 -07:00
chantra
9b7c60d6bd [netem] minimalist support for netem
Support for tc_netem_qopt options, e.g: latency, limit, loss, gap, duplicate and jitter
2015-10-28 00:22:47 -07:00
chantra
0e48f7d3e5 [nl] Fix RtAttr.Serialize to serialize both Data and Children
The function was only serializing the Data if it was not nil.
It was correctly setting the size of the payload as RtAttr.Len correctly
accounted for it. This resulted in the children payload being zeroed.

Fixes #57
2015-10-24 16:12:25 -07:00
chantra
824d7a16e5 Add FW filter support 2015-09-18 18:51:33 -07:00
chantra
dbd81d7480 Add TestTcHtbCoptDeserializeSerialize 2015-09-11 17:32:54 -07:00
chantra
8ef4616a76 Add TestTcTbfQoptDeserializeSerialize 2015-09-11 12:52:20 -07:00
chantra
ac253c54c7 Add TestTcRateSpecDeserializeSerialize 2015-09-11 10:24:53 -07:00
chantra
ef0cd12f0c Add TC Class support 2015-09-10 22:50:54 -07:00
chantra
2a6a59d231 Enable HTB classful qdisc 2015-09-05 00:13:17 -07:00
Vishvananda Ishaya
1e2e08e8a2 proper values for filter actions 2015-08-19 18:49:04 -07:00
Vishvananda Ishaya
acc8a28738 Add basic support for redirect filter 2015-08-19 16:02:04 -07:00
Vishvananda Ishaya
a6d6ef6a6a support basic tbf qdisc 2015-08-18 14:07:01 -07:00
Vishvananda Ishaya
c9399c7e3d beginning of handling for qdiscs 2015-08-18 03:16:54 -07:00
Thomas Graf
c24b290c8f Support for IFLA_VXLAN_GBP flag
Signed-off-by: Thomas Graf <tgraf@suug.ch>
2015-07-31 13:48:03 +02:00
Vishvananda Ishaya
329b40d4e3 fix formatting 2015-07-27 23:58:44 -07:00
Vishvananda Ishaya
27f66da7b4 allow RouteDel to work on kernel routes 2015-07-27 09:32:07 -07:00
root
9cff812148 fixing issue with setting big endian
Signed-off-by: Srini Brahmaroutu <srbrahma@us.ibm.com>
2015-07-10 18:48:26 +00:00
Alexander Morozov
12f4097df1 Fix some style issues as suggested by golint
Signed-off-by: Alexander Morozov <lk4d4@docker.com>
2015-06-18 17:41:46 -07:00
Matthias Schmitz
fbbbc69580 Fix minor spelling error: Rename function Recieve to Receive. 2015-04-18 23:34:45 +02:00
Eugene Yakubovich
ae3e7dba57 added support for MACVLAN mode 2015-02-26 13:21:26 -08:00
Alexander Morozov
8bde0c8190 Use more accustomed way to define enums
Signed-off-by: Alexander Morozov <lk4d4@docker.com>
2015-02-12 11:16:19 -08:00
Alexander Morozov
e29807a4d5 Fix go vet errors
Signed-off-by: Alexander Morozov <lk4d4@docker.com>
2015-02-12 11:00:59 -08:00
Alexander Morozov
d710fe886a IPVlan support
Signed-off-by: Alexander Morozov <lk4d4@docker.com>
2015-02-11 14:18:57 -08:00
Alexander Morozov
8ec30991b3 Add constansts for bridge configuration
Signed-off-by: Alexander Morozov <lk4d4@docker.com>
2015-02-09 12:41:31 -08:00
Dave Tucker
80a80badbd Implement basic route get functionality
This provides the basic functionality of the iproute2 `route get`
command. It allows you to query netlink for the route to a destination
IP.Net

While implementing I noticed that the `s.Receive()` function was hanging
after the netlink response was recieved, so I added an additional clause
to break from the loop and return the decoded message if the NLM_F_MULTI
flag is not set.

Signed-off-by: Dave Tucker <dave@dtucker.co.uk>
2015-01-11 18:15:59 +00:00
Eugene Yakubovich
ffab401087 gofmt: style violations have crept up 2014-10-28 17:22:52 -07:00
Eugene Yakubovich
33e8718673 arp and vxlan support added 2014-10-13 11:04:09 -07:00
Vishvananda Ishaya
14677ef60e add missing file 2014-09-22 22:36:00 -07:00
Vishvananda Ishaya
116d8f6e86 Optimize byte order handling 2014-09-22 08:38:23 -07:00
Vishvananda Ishaya
1a26b9f251 Move all low level calls into nl subpackage 2014-09-18 19:04:48 -07:00