Lines Matching refs:inetd
336 "--inetd [name] ['wait'|'nowait'] : Run as an inetd or xinetd server.\n"
1487 SHOW_INT (inetd);
1835 * Sanity check on daemon/inetd modes
1838 if (options->daemon && options->inetd)
1839 msg (M_USAGE, "only one of --daemon or --inetd may be specified");
1841 if (options->inetd && (ce->local || ce->remote))
1842 msg (M_USAGE, "--local or --remote cannot be used with --inetd");
1844 if (options->inetd && ce->proto == PROTO_TCPv4_CLIENT)
1845 msg (M_USAGE, "--proto tcp-client cannot be used with --inetd");
1847 if (options->inetd == INETD_NOWAIT && ce->proto != PROTO_TCPv4_SERVER)
1848 msg (M_USAGE, "--inetd nowait can only be used with --proto tcp-server");
1850 if (options->inetd == INETD_NOWAIT
1855 msg (M_USAGE, "--inetd nowait can only be used in TLS mode");
1857 if (options->inetd == INETD_NOWAIT && dev != DEV_TYPE_TAP)
1858 msg (M_USAGE, "--inetd nowait only makes sense in --dev tap mode");
2039 if (options->inetd)
2040 msg (M_USAGE, "--inetd cannot be used with --mode server");
2422 if (options->inetd == INETD_NOWAIT)
4579 else if (streq (p[0], "inetd"))
4582 if (!options->inetd)
4586 const char *opterr = "when --inetd is used with two parameters, one of them must be 'wait' or 'nowait' and the other must be a daemon name to use for system logging";
4588 options->inetd = -1;
4596 if (options->inetd != -1)
4602 options->inetd = INETD_WAIT;
4606 if (options->inetd != -1)
4612 options->inetd = INETD_NOWAIT;
4627 if (options->inetd == -1)
4628 options->inetd = INETD_WAIT;