passt: Drop PASST_LEGACY_NO_OPTIONS sections
...nobody uses those builds anymore. Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
This commit is contained in:
parent
337f55166f
commit
5e0c75d609
4 changed files with 0 additions and 25 deletions
12
conf.c
12
conf.c
|
@ -1281,18 +1281,6 @@ void conf(struct ctx *c, int argc, char **argv)
|
||||||
if (!*c->pasta_ifn)
|
if (!*c->pasta_ifn)
|
||||||
if_indextoname(c->ifi, c->pasta_ifn);
|
if_indextoname(c->ifi, c->pasta_ifn);
|
||||||
|
|
||||||
#ifdef PASST_LEGACY_NO_OPTIONS
|
|
||||||
if (c->mode == MODE_PASST) {
|
|
||||||
c->foreground = 1;
|
|
||||||
c->stderr = 1;
|
|
||||||
|
|
||||||
if (!tcp_tap) {
|
|
||||||
memset(c->tcp.port_to_tap, 0xff,
|
|
||||||
PORT_EPHEMERAL_MIN / 8);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
c->tcp.ns_detect_ports = c->udp.ns_detect_ports = 0;
|
c->tcp.ns_detect_ports = c->udp.ns_detect_ports = 0;
|
||||||
c->tcp.init_detect_ports = c->udp.init_detect_ports = 0;
|
c->tcp.init_detect_ports = c->udp.init_detect_ports = 0;
|
||||||
|
|
||||||
|
|
|
@ -66,7 +66,3 @@ scp *.deb *.rpm "${USER_HOST}:${BIN}/avx2/"
|
||||||
ssh "${USER_HOST}" "mv ${LATEST} ${AWAY}"
|
ssh "${USER_HOST}" "mv ${LATEST} ${AWAY}"
|
||||||
ssh "${USER_HOST}" "mv ${TEMP} ${LATEST}"
|
ssh "${USER_HOST}" "mv ${TEMP} ${LATEST}"
|
||||||
ssh "${USER_HOST}" "rm -rf ${AWAY}"
|
ssh "${USER_HOST}" "rm -rf ${AWAY}"
|
||||||
|
|
||||||
# Legacy, for KubeVirt tests
|
|
||||||
# CFLAGS="-DPASST_LEGACY_NO_OPTIONS -static" make avx2
|
|
||||||
# scp passt qrap "${USER_HOST}:${BUILDS}/static/"
|
|
||||||
|
|
2
passt.c
2
passt.c
|
@ -309,9 +309,7 @@ int main(int argc, char **argv)
|
||||||
struct sigaction sa;
|
struct sigaction sa;
|
||||||
char *log_name;
|
char *log_name;
|
||||||
|
|
||||||
#ifndef PASST_LEGACY_NO_OPTIONS
|
|
||||||
check_root();
|
check_root();
|
||||||
#endif
|
|
||||||
drop_caps();
|
drop_caps();
|
||||||
|
|
||||||
c.pasta_userns_fd = c.pasta_netns_fd = c.fd_tap = c.fd_tap_listen = -1;
|
c.pasta_userns_fd = c.pasta_netns_fd = c.fd_tap = c.fd_tap_listen = -1;
|
||||||
|
|
7
tap.c
7
tap.c
|
@ -818,13 +818,6 @@ static void tap_sock_unix_init(struct ctx *c)
|
||||||
}
|
}
|
||||||
|
|
||||||
info("UNIX domain socket bound at %s\n", addr.sun_path);
|
info("UNIX domain socket bound at %s\n", addr.sun_path);
|
||||||
#ifdef PASST_LEGACY_NO_OPTIONS
|
|
||||||
/*
|
|
||||||
* syscalls:passt chmod
|
|
||||||
*/
|
|
||||||
chmod(addr.sun_path,
|
|
||||||
S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
listen(fd, 0);
|
listen(fd, 0);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue