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
Vish Ishaya
9168c87284
Merge pull request #53 from dcbw/addr-trim-whitespace
...
Trim whitespace from Addr.String()
2015-10-27 17:51:36 -07:00
Vish Ishaya
09c697082a
Merge pull request #58 from chantra/rtattr_data_children
...
[nl] Fix RtAttr.Serialize to serialize both Data and Children
2015-10-27 17:51:08 -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
Dan Williams
b8bd116f5e
Trim whitespace from Addr.String()
...
If the address has no label, there's extra whitespace at the end.
2015-10-15 08:26:22 -05:00
Vish Ishaya
8e810149a2
Merge pull request #52 from aakso/master
...
Add support for setting nexthop flags for routes
2015-10-10 14:18:58 -07:00
Vish Ishaya
e0c4607c07
Merge pull request #50 from chantra/fw_filter
...
Add FW filter support
2015-10-10 14:17:26 -07:00
Vish Ishaya
c48a5503c0
Merge pull request #51 from clearlinux/tuntap
...
Add basic support for TUN/TAP link type and creation.
2015-10-10 14:16:40 -07:00
Anton Aksola
a2c125fb6c
Add support for setting nexthop flags for routes
...
There are few nexthop flags that are usable in some scenarios: onlink
and pervasive. This patch allows to set, clear and list them.
2015-10-09 11:17:13 +03:00
chantra
b1536bf12c
Address comments
...
* fix package import order
* use int instead of int32 for Filter FW Attrs
2015-10-04 22:34:06 -07:00
Dimitri John Ledkov
2838743155
Drop cgo usage for ifReq structure.
...
Signed-off-by: Dimitri John Ledkov <dimitri.j.ledkov@intel.com>
2015-10-02 11:54:54 +01:00
Dimitri John Ledkov
11eac9d2ec
gofmt fixes
...
Signed-off-by: Dimitri John Ledkov <dimitri.j.ledkov@intel.com>
2015-10-01 10:09:22 +01:00
Dimitri John Ledkov
de4cc349a5
Add basic support for TUN/TAP link type and creation.
2015-09-25 10:28:19 +01:00
chantra
824d7a16e5
Add FW filter support
2015-09-18 18:51:33 -07:00
Vish Ishaya
ecf47fd573
Merge pull request #46 from bboreham/subscribe
...
Async updates on links and routes
2015-09-15 10:05:05 -07:00
Vish Ishaya
9660e75f4f
Merge pull request #48 from chantra/htb_qdisc
...
Htb Qdisc and Class
2015-09-15 10:01:00 -07:00
Vish Ishaya
38bfcf6ee1
Merge pull request #47 from fmzhen/fmz-dev
...
Fix typo
2015-09-15 10:00:43 -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
fmzhen
c0038eeedc
Fix typo
...
Fix typo
Signed-off-by: Mingzhen Feng <fmzhen@zju.edu.cn>
2015-09-07 14:35:08 +08: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
723a27852f
protocol in the filter header is big endian
2015-08-19 18:43:22 -07:00
Vishvananda Ishaya
25d051e40e
add prio qdisc
2015-08-19 18:22:02 -07:00
Vishvananda Ishaya
7b3d58b87e
skip qdiscs from other interfaces
2015-08-19 16:51:48 -07:00
Vishvananda Ishaya
acc8a28738
Add basic support for redirect filter
2015-08-19 16:02:04 -07:00
Bryan Boreham
88f55bc25d
Unit tests for LinkSubscribe and RouteSubscribe
2015-08-19 16:31:39 +01:00
Bryan Boreham
69942a0c81
Subscribe for async updates on links and routes
2015-08-19 15:42:33 +01:00
Bryan Boreham
dfc070d6fa
Don't expose deserializeRoute
2015-08-19 15:41:41 +01:00
Bryan Boreham
80dddfa1b9
Factor out common code to decode a binary netlink message into a Route struct
2015-08-19 11:38:52 +01:00
Vishvananda Ishaya
a6d6ef6a6a
support basic tbf qdisc
2015-08-18 14:07:01 -07:00
Vishvananda Ishaya
687e6f0b07
add link ifb and fix macvtap
2015-08-18 14:06:35 -07:00
Vishvananda Ishaya
c9399c7e3d
beginning of handling for qdiscs
2015-08-18 03:16:54 -07:00
Vishvananda Ishaya
6d78150380
rename Generic to GenericLink and add missing macvtap
2015-08-18 03:16:06 -07:00
Vishvananda Ishaya
b8d3e51d2a
actually ignore routes from other interfaces
2015-08-17 17:37:46 -07:00
Vishvananda Ishaya
01bbbda86c
set macvtap properly on parse
2015-08-15 10:16:04 -07:00
Vish Ishaya
cee28b0a8d
Merge pull request #42 from ppalucki/master
...
macvtap support
2015-08-15 10:13:37 -07:00
Vish Ishaya
4b5dce31de
Merge pull request #43 from tgraf/master
...
Support for IFLA_VXLAN_GBP flag
2015-08-14 17:19:24 -07:00
Vish Ishaya
30a1225fef
Merge pull request #44 from mrjana/link
...
Do not set nlmsghdr data values in ifinfomsg fields
2015-08-14 17:18:15 -07:00
Jana Radhakrishnan
5dd6b277e6
Do not set nlmsghdr data values in ifinfomsg fields
...
Currently the netlink link_linux.go sets all sorts of nlmsghdr
values like RTM_NETLINK/RTM_SETLINK, NLM_F_REQUEST and IFLA_*
values ifinfomsg.if_type, ifinfomsg.if_flags and ifinfomsg.if_change.
This is totally incorrect since they are meant to send through to
the kernel interface specific information and not generic netlink
data. Because of this the kernel is treating them for their
expected meaning and more than likely causing a lot of unintentional
consequences.
Signed-off-by: Jana Radhakrishnan <mrjana@docker.com>
2015-08-14 16:07:03 -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
Pawel Palucki
828e2240d3
macvtap support
2015-07-27 17:48:59 +02:00