stun

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

commit b8452e94b39dbebc76fc2c1f0038e411e41a52dd
parent 7b55738bdfd2749ef4981f30e7ba287ca0ee8ce2
Author: sin <sin@2f30.org>
Date:   Mon May  2 17:39:06 +0100

Split a long line

Diffstat:
dev_linux.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/dev_linux.c b/dev_linux.c @@ -22,7 +22,8 @@ devopen(char *ifname) fatal("open %s", "/dev/net/tun"); memset(&ifr, 0, sizeof(ifr)); - ifr.ifr_flags = (netconfig.devtype == TUNDEV ? IFF_TUN : IFF_TAP) | IFF_NO_PI; + ifr.ifr_flags = (netconfig.devtype == TUNDEV ? IFF_TUN : IFF_TAP); + ifr.ifr_flags |= IFF_NO_PI; strncpy(ifr.ifr_name, ifname, IF_NAMESIZE); ifr.ifr_name[IF_NAMESIZE - 1] = '\0'; if (ioctl(fd, TUNSETIFF, &ifr) < 0)