aboutsummaryrefslogtreecommitdiff
path: root/unix/types_illumos.go
diff options
context:
space:
mode:
Diffstat (limited to 'unix/types_illumos.go')
-rw-r--r--unix/types_illumos.go49
1 files changed, 0 insertions, 49 deletions
diff --git a/unix/types_illumos.go b/unix/types_illumos.go
deleted file mode 100644
index d47ab63..0000000
--- a/unix/types_illumos.go
+++ /dev/null
@@ -1,49 +0,0 @@
-// Copyright 2021 The Go Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
-
-//go:build ignore
-// +build ignore
-
-/*
-Input to cgo -godefs. See README.md
-*/
-
-package unix
-
-/*
-#include <net/if.h>
-#include <sys/sockio.h>
-#include <sys/stropts.h>
-
-// Many illumos distributions ship a 3rd party tun/tap driver
-// from https://github.com/kaizawa/tuntap
-// It supports a pair of IOCTLs defined at
-// https://github.com/kaizawa/tuntap/blob/master/if_tun.h#L91-L93
-#define TUNNEWPPA (('T'<<16) | 0x0001)
-#define TUNSETPPA (('T'<<16) | 0x0002)
-*/
-import "C"
-
-const (
- TUNNEWPPA = C.TUNNEWPPA
- TUNSETPPA = C.TUNSETPPA
-
- // sys/stropts.h:
- I_STR = C.I_STR
- I_POP = C.I_POP
- I_PUSH = C.I_PUSH
- I_LINK = C.I_LINK
- I_UNLINK = C.I_UNLINK
- I_PLINK = C.I_PLINK
- I_PUNLINK = C.I_PUNLINK
-
- // sys/sockio.h:
- IF_UNITSEL = C.IF_UNITSEL
-)
-
-type strbuf C.struct_strbuf
-
-type Strioctl C.struct_strioctl
-
-type Lifreq C.struct_lifreq