warp-vpn

point to point VPN implementation
git clone git://git.2f30.org/warp-vpn
Log | Files | Refs | README

commit a23323bdc549ce578e86d86cdb9745738e7bf52c
parent 18fb5c78c16624cac4e10a10806bd91b750ff16c
Author: sin <sin@2f30.org>
Date:   Tue, 22 Mar 2016 14:52:18 +0000

assume the if is up

Diffstat:
Mstun.c | 7-------
1 file changed, 0 insertions(+), 7 deletions(-)

diff --git a/stun.c b/stun.c @@ -194,13 +194,6 @@ opentun(char *tundev) s = socket(AF_INET, SOCK_STREAM, 0); if (s < 0) logerr("failed to create socket"); - ret = ioctl(s, SIOCGIFFLAGS, &ifr); - if (ret < 0) - logerr("failed to set SIOCGIFFLAGS on %s", tundev); - ifr.ifr_flags |= IFF_UP | IFF_RUNNING; - ret = ioctl(s, SIOCSIFFLAGS, &ifr); - if (ret < 0) - logerr("failed to set SIOCSIFFLAGS on %s", tundev); ifr.ifr_mtu = MTU; ret = ioctl(s, SIOCSIFMTU, &ifr); if (ret < 0)