]> Cypherpunks.ru repositories - govpn.git/blob - tap_linux.go
FreeBSD TAP support
[govpn.git] / tap_linux.go
1 // +build linux
2 /*
3 govpn -- high-performance secure virtual private network daemon
4 Copyright (C) 2014 Sergey Matveev <stargrave@stargrave.org>
5 */
6 package main
7
8 import (
9         "github.com/chon219/water"
10 )
11
12 func NewTAP(string ifaceName) TAP {
13         iface, err := water.NewTAP(ifaceName)
14         if err != nil {
15                 panic(err)
16         }
17         return iface
18 }