static void tap_set_sndbuf(TAPState *s, int sndbuf, Monitor *mon)

{

#ifdef TUNSETSNDBUF

    if (ioctl(s->fd, TUNSETSNDBUF, &sndbuf) == -1) {

        config_error(mon, "TUNSETSNDBUF ioctl failed: %s\n",

                     strerror(errno));

    }

#else

    config_error(mon, "No '-net tap,sndbuf=<nbytes>' support available\n");

#endif

}

static void tap_set_sndbuf(TAPState *s, int sndbuf, Monitor *mon)

{

#ifdef TUNSETSNDBUF

    if (ioctl(s->fd, TUNSETSNDBUF, &sndbuf) == -1) {

        config_error(mon, "TUNSETSNDBUF ioctl failed: %s\n",

                     strerror(errno));

    }

#else

    config_error(mon, "No '-net tap,sndbuf=<nbytes>' support available\n");

#endif

}

static void FUNC_0(TAPState *VAR_0, int VAR_1, Monitor *VAR_2)

{

#ifdef TUNSETSNDBUF

    if (ioctl(VAR_0->fd, TUNSETSNDBUF, &VAR_1) == -1) {

        config_error(VAR_2, "TUNSETSNDBUF ioctl failed: %VAR_0\n",

                     strerror(errno));

    }

#else

    config_error(VAR_2, "No '-net tap,VAR_1=<nbytes>' support available\n");

#endif

}

static void FUNC_0(TAPState *VAR_0, int VAR_1, Monitor *VAR_2)
{ #ifdef TUNSETSNDBUF
if (ioctl(VAR_0->fd, TUNSETSNDBUF, &VAR_1) == -1) { config_error(VAR_2, "TUNSETSNDBUF ioctl failed: %VAR_0\n",
strerror(errno)); } #else
config_error(VAR_2, "No '-net tap,VAR_1=<nbytes>' support available\n"); #endif
}