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