Lines Matching defs:fd
107 * fill in the header for the tun fd
468 void send_tun(int fd, clat_packet out, int iov_len) {
469 writev(fd, out, iov_len);
473 void send_rawv6(int fd, clat_packet out, int iov_len) __attribute__((weak));
475 void send_rawv6(int fd, clat_packet out, int iov_len) {
489 sendmsg(fd, &msg, 0);
493 * takes a packet, translates it, and writes it to fd
494 * fd - fd to write translated packet to
499 void translate_packet(int fd, int to_ipv6, const uint8_t *packet, size_t packetsize) {
526 send_rawv6(fd, out, iov_len);
533 send_tun(fd, out, iov_len);