mirror of
https://github.com/vishvananda/netlink
synced 2024-12-28 17:52:28 +00:00
18 lines
267 B
Go
18 lines
267 B
Go
package netlink
|
|
|
|
/*
|
|
#include <sys/ioctl.h>
|
|
#include <sys/socket.h>
|
|
#include <linux/if.h>
|
|
#include <linux/if_tun.h>
|
|
|
|
#define IFREQ_SIZE sizeof(struct ifreq)
|
|
*/
|
|
import "C"
|
|
|
|
type ifReq struct {
|
|
Name [C.IFNAMSIZ]byte
|
|
Flags uint16
|
|
pad [C.IFREQ_SIZE-C.IFNAMSIZ-2]byte
|
|
}
|