Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wgcfg: new package #11

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Prev Previous commit
Next Next commit
tun: remove unused isUp method
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
  • Loading branch information
bradfitz authored and crawshaw committed Mar 30, 2020
commit 900ae645d16b2cd813e494f4e9593b299ed8b50a
6 changes: 0 additions & 6 deletions tun/tun_linux.go
Original file line number Diff line number Diff line change
@@ -12,7 +12,6 @@ import (
"bytes"
"errors"
"fmt"
"net"
"os"
"sync"
"syscall"
@@ -164,11 +163,6 @@ func (tun *NativeTun) routineNetlinkListener() {
}
}

func (tun *NativeTun) isUp() (bool, error) {
inter, err := net.InterfaceByName(tun.name)
return inter.Flags&net.FlagUp != 0, err
}

func getIFIndex(name string) (int32, error) {
fd, err := unix.Socket(
unix.AF_INET,