]> Cypherpunks.ru repositories - govpn.git/blob - tap_linux.go
03a842f50dd72c748a064d2177afde0e587c256a
[govpn.git] / tap_linux.go
1 // +build linux
2
3 /*
4 govpn -- high-performance secure virtual private network daemon
5 Copyright (C) 2014 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 }