mirror of
https://github.com/fumiama/water.git
synced 2026-06-28 07:50:25 +08:00
Moved linux specific code to the syscalls_linux.go file. Also removed unneeded constants from the syscalls_other.go file.
This commit is contained in:
@@ -2,18 +2,10 @@
|
||||
|
||||
package water
|
||||
|
||||
const (
|
||||
cIFF_TUN = 0
|
||||
cIFF_TAP = 0
|
||||
cIFF_NO_PI = 0
|
||||
)
|
||||
|
||||
type ifReq struct {
|
||||
Name [0]byte
|
||||
Flags uint16
|
||||
pad [0]byte
|
||||
func newTAP(ifName string) (ifce *Interface, err error) {
|
||||
panic("water: tap interface not implemented on this platform")
|
||||
}
|
||||
|
||||
func createInterface(fd uintptr, ifName string, flags uint16) (createdIFName string, err error) {
|
||||
panic("water: createInterface not implemented on this platform")
|
||||
}
|
||||
func newTUN(ifName string) (ifce *Interface, err error) {
|
||||
panic("water: tap interface not implemented on this platform")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user