Commit Graph

135 Commits

Author SHA1 Message Date
Hubert Krauze
2f58676854 Create LinkSetNoMaster function 2015-12-09 12:25:42 +01:00
Vish Ishaya
a57a12c1b1 Merge pull request #67 from chantra/class_replace
Class replace/change
2015-11-17 11:21:57 -08:00
Vish Ishaya
c081f9bb20 Merge pull request #65 from eyakubovich/neigh-list-filtered
Pass linkIndex filter into kernel for NeighList
2015-11-17 11:20:44 -08:00
Vish Ishaya
3e8d52b0f9 Merge pull request #64 from chantra/tc_replace
Add support to replace/change qdisc
2015-11-17 11:20:18 -08:00
Vish Ishaya
7aac33f9ad Merge pull request #63 from krhubert/master
fix NeightSet functions
2015-11-17 11:18:28 -08:00
chantra
bc12fcdc7f Add ClassReplace and ClassChange
Along with unittests
2015-11-14 23:16:33 -05:00
chantra
19a1f20ae8 [class] refactor class functions to use a common classModify function
This prevents duplicated code and make adding other commands such as replace, change easier
2015-11-13 22:51:07 -05:00
Eugene Yakubovich
1b0df1a7d3 Pass linkIndex filter into kernel for NeighList
This turns out to be especially important as there
appears to be a bug in the kernel with bonding.
The bug causes an infinite amount of fdb entries
to be returned (it just cycle through the interfaces)
if no interface filter is set.
2015-11-12 17:21:14 -08:00
chantra
eeca6ddad9 [qdisc] refactor all commands to use qdiscModify function 2015-11-12 09:55:13 -05:00
chantra
e1c5c4e664 [qdisc] move building payload i its own function 2015-11-12 09:46:43 -05:00
chantra
b530ef5ad1 [qdisc] add support for replace/change 2015-11-11 23:57:32 -05:00
Hubert
37122b306c docs: replace NeighAdd with NeighSet 2015-11-10 14:38:50 +01:00
Hubert
4dca3fe96e fix: NeighSet don't replace neigh when it exists 2015-11-10 14:36:42 +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
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