D | tunslip6.c | 80 int devopen(const char *dev, int flags); 681 devopen_readlink(const char *dev, int flags) in devopen_readlink() argument 683 int fd = open(dev, flags); in devopen_readlink() 689 i = readlink(dev, buf, buf_size); in devopen_readlink() 703 devopen(const char *dev, int flags) in devopen() argument 705 if (dev[0] != '/') { in devopen() 708 strncat(t, dev, sizeof(t) - 5); in devopen() 711 return devopen_readlink(dev, flags); in devopen() 720 tun_alloc(char *dev, int tap, int make) in tun_alloc() argument 726 return devopen(dev, O_RDWR); in tun_alloc() [all …]
|