Commit Graph

104 Commits

Author SHA1 Message Date
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
Vish Ishaya
ea0402b9db Merge pull request #41 from brahmaroutu/big_endian_error
fixing issue with setting big endian
2015-07-15 20:07:42 -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
Vish Ishaya
20397a1388 Merge pull request #39 from LK4D4/minor_docs_change
Fix LinkSetDown comment
2015-06-19 15:56:06 -07:00
Alexander Morozov
607cdbafd6 Fix LinkSetDown comment
Signed-off-by: Alexander Morozov <lk4d4@docker.com>
2015-06-19 13:53:18 -07:00
Vish Ishaya
b1aa0245ac Merge pull request #37 from LK4D4/fix_golint
Fix some style issues as suggested by golint
2015-06-18 18:04:35 -07: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
Vish Ishaya
a4c08863d8 Merge pull request #35 from LK4D4/linkattrs_constructor
Add LinkAttrs constructor NewLinkAttrs
2015-06-15 16:23:30 -07:00
Alexander Morozov
a174c585ec Add info about NewLinkAttrs to readme
Signed-off-by: Alexander Morozov <lk4d4@docker.com>
2015-06-13 21:01:03 -07:00
Alexander Morozov
72a1f403a3 Add LinkAttrs constructor NewLinkAttrs
It looks little awkward, but should be enough for people who care about
defaults from kernel.

Fix #26

Also fixed bug with setting TxQLen for main device. It was never set
before.

Signed-off-by: Alexander Morozov <lk4d4@docker.com>
2015-06-13 20:49:51 -07:00
Vish Ishaya
991a7a2fa7 Merge pull request #30 from marek-polewski/master
Stop discarding flags in RTM_SETLINK
2015-05-13 13:52:36 -07:00
Vish Ishaya
38ead3b2a3 Merge pull request #34 from eyakubovich/local-addr
prefer IFA_LOCAL address when dumping addresses
2015-05-13 13:51:56 -07:00
Vish Ishaya
1d89ce496a Merge pull request #33 from jonboulle/master
Fix typo in docstring, LinkSetNsPid -> LinkSetNsFd
2015-05-13 13:51:30 -07:00
Vish Ishaya
715e692d14 Merge pull request #32 from mattthias/master_fix_spelling
Fix minor spelling error: Rename function Recieve to Receive.
2015-05-13 13:51:00 -07:00
Eugene Yakubovich
efb2ec546f prefer IFA_LOCAL address when dumping addresses
IFA_LOCAL and IFA_ADDRESS are the same for bcast interfaces,
however for point-to-point links, IFA_ADDRESS is the remote
address while IFA_LOCAL is the interface address.
2015-05-09 18:37:25 -07:00
Jonathan Boulle
231f3aa8aa Fix typo in docstring, LinkSetNsPid -> LinkSetNsFd 2015-05-01 15:26:43 -07:00
Matthias Schmitz
fbbbc69580 Fix minor spelling error: Rename function Recieve to Receive. 2015-04-18 23:34:45 +02:00
Marek Polewski
0207b6b633 Using Change = nl.DEFAULT_CHANGE = 0xffffff in RTM_SETLINK will discard some flags from the interface ( NOARP DYNAMIC etc) 2015-03-09 12:31:23 +01:00
Eugene Yakubovich
ae3e7dba57 added support for MACVLAN mode 2015-02-26 13:21:26 -08:00