stun

simple point to point tunnel
git clone git://git.2f30.org/stun
Log | Files | Refs | README

commit c2a94f954fa87ba6daa3eb2a9d782a778b84df57
parent cbb100cc21f32be5fc6d99607251c6186a5f53c8
Author: sin <sin@2f30.org>
Date:   Tue, 22 Mar 2016 11:37:26 +0000

fix err to logerr conversion

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

diff --git a/stun.c b/stun.c @@ -195,11 +195,11 @@ opentun(char *tundev) ifr.ifr_flags |= IFF_UP | IFF_RUNNING | IFF_POINTOPOINT; ret = ioctl(s, SIOCSIFFLAGS, &ifr); if (ret < 0) - logerr(1, "failed to set SIOCSIFFLAGS on %s", tundev); + logerr("failed to set SIOCSIFFLAGS on %s", tundev); ifr.ifr_mtu = MTU; ret = ioctl(s, SIOCSIFMTU, &ifr); if (ret < 0) - logerr(1, "failed to set MTU on %s", tundev); + logerr("failed to set MTU on %s", tundev); close(s); return fd;