Commit Graph

5 Commits

Author SHA1 Message Date
unclejack 05458f3920 protinfo: return value of evaluated expression 2016-12-13 10:57:44 -08: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
Vishvananda Ishaya 889b85d2e6 Move the linux specific code into protinfo_linux.go 2015-02-06 18:58:24 -08:00
Alexander Morozov 2e9d285a71 Change logic of setting protinfo attrs
Now interface is supposing that you setting protinfo attrs for link one
by one. But you can get all protinfo attrs with one call.

Signed-off-by: Alexander Morozov <lk4d4@docker.com>
2015-02-17 14:16:48 -08:00
Alexander Morozov 31e1715aea Add support for setting Protinfo fields
Added new `Protinfo` datastructure, which contains fields from
`IFLA_PROTINFO | NLA_F_NESTED`. It is not embedded to `LinkAttrs`
because we need to use `NLM_F_DUMP` requests to get that info.

Signed-off-by: Alexander Morozov <lk4d4@docker.com>
2015-02-10 13:55:35 -08:00