linux/esptun.c
static void tun_tx_packet(int fd, const uint8_t *esp_buffer, size_t size) {
    if (write(fd, esp_buffer, size) <= 0) {
        logprintf(WARNING, "warning: error writing to tun (%s)\n", strerror(errno));
    }
}
/** Send a packet to tun interface. */
Send a packet to tun interface.
Send a packet to tun interface .
static void tun_tx_packet(int fd, const uint8_t *esp_buffer, size_t size) {
    if (write(fd, esp_buffer, size) <= 0) {
        logprintf(WARNING, "warning: error writing to tun (%s)\n", strerror(errno));
    }
}
static void tun_tx_packet ( int fd , const uint8_t * esp_buffer , size_t size ) { if ( write ( fd , esp_buffer , size ) <= 0 ) { logprintf ( WARNING , " \n " , strerror ( errno ) ) ; } }
Send a packet to tun interface.
Send a packet to tun interface .