Searched refs:SRC_TO_TARGET (Results 1 – 1 of 1) sorted by relevance
1112 SRC_TO_TARGET = 0, enumerator1135 direction = FD_ISSET(src_fd, &rfds) ? SRC_TO_TARGET : TARGET_TO_SRC; in tun_relay_loop()1137 nread = read(direction == SRC_TO_TARGET ? src_fd : target_fd, buf, sizeof(buf)); in tun_relay_loop()1143 nwrite = write(direction == SRC_TO_TARGET ? target_fd : src_fd, buf, nread); in tun_relay_loop()