Skip to content

Commit

Permalink
Updates to PR songgao#37
Browse files Browse the repository at this point in the history
  • Loading branch information
neilalexander committed Mar 1, 2018
1 parent 3817619 commit 509b830
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 13 deletions.
2 changes: 1 addition & 1 deletion ipv4_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"testing"
"time"

"./waterutil"
"github.com/songgao/water/waterutil"
)

const BUFFERSIZE = 1522
Expand Down
2 changes: 1 addition & 1 deletion params_bsd.go → params_openbsd.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build openbsd freebsd
// +build openbsd

package water

Expand Down
12 changes: 1 addition & 11 deletions syscalls_bsd.go → syscalls_openbsd.go
Original file line number Diff line number Diff line change
@@ -1,21 +1,11 @@
// +build openbsd freebsd
// +build openbsd

package water

import (
"os"
)

const bsdTUNSIFINFO = (0x80000000) | ((4 & 0x1fff) << 16) | uint32(byte('t'))<<8 | 91
const bsdTUNSIFMODE = (0x80000000) | ((4 & 0x1fff) << 16) | uint32(byte('t'))<<8 | 94

type tuninfo struct {
BaudRate int
MTU int16
Type uint8
Dummy uint8
}

func newTAP(config Config) (ifce *Interface, err error) {
if config.Name[:8] != "/dev/tap" {
panic("TUN/TAP name must be in format /dev/tunX or /dev/tapX")
Expand Down

0 comments on commit 509b830

Please sign in to comment.