2015-09-25 09:28:19 +00:00
|
|
|
package netlink
|
|
|
|
|
2015-10-02 10:54:54 +00:00
|
|
|
// ideally golang.org/x/sys/unix would define IfReq but it only has
|
|
|
|
// IFNAMSIZ, hence this minimalistic implementation
|
|
|
|
const (
|
|
|
|
SizeOfIfReq = 40
|
|
|
|
IFNAMSIZ = 16
|
|
|
|
)
|
2015-09-25 09:28:19 +00:00
|
|
|
|
|
|
|
type ifReq struct {
|
2015-10-02 10:54:54 +00:00
|
|
|
Name [IFNAMSIZ]byte
|
2015-09-25 09:28:19 +00:00
|
|
|
Flags uint16
|
2015-10-02 10:54:54 +00:00
|
|
|
pad [SizeOfIfReq - IFNAMSIZ - 2]byte
|
2015-09-25 09:28:19 +00:00
|
|
|
}
|