netlink/link_tuntap_linux.go
2015-09-25 10:28:19 +01:00

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
}