Commit Graph

5 Commits

Author SHA1 Message Date
Tobias Klauser 8f32382eaa Use IfaCacheinfo and IFA_* consts from golang.org/x/sys/unix
Use the IfaCacheinfo type and the IFA_* consts from
golang.org/x/sys/unix instead of locally duplicating them.
2020-01-27 15:51:47 -08:00
Ian Bishop 0e3b74dbe2 replace syscall with golang.org/x/sys/unix 2017-10-26 09:45:08 -07:00
Toke Høiland-Jørgensen 69df5c75fb addr: Parse address lifetime information from IFA_CACHEINFO attr
This adds parsing of the preferred and valid lifetime information from the
netlink IFA_CACHEINFO attribute. They are stored as PreferedLft and ValidLft in
the Addr struct if found.

Signed-off-by: Toke Høiland-Jørgensen <toke@toke.dk>
2017-04-12 11:24:37 -07:00
Eugene Yakubovich ffab401087 gofmt: style violations have crept up 2014-10-28 17:22:52 -07:00
Vishvananda Ishaya 1a26b9f251 Move all low level calls into nl subpackage 2014-09-18 19:04:48 -07:00