inetd: only restart inetd services when neccessary

Do not restart a inetd service if the listening interface is changed.
Only bring down established connection which are no longer allowed,
i.e. do not touch already allowed established connections.

Signed-off-by: Jonas Johansson <jonasj76@gmail.com>
This commit is contained in:
Jonas Johansson committed 2018-05-03 08:57:19 +02:00
1 parent efb1d40ffd
commit f522a26125
4 files changed
+30 -13

No files matched your search

+1
View File
@@ -109,6 +109,7 @@ typedef struct svc {
/* For inetd services */
inetd_t inetd;
int stdin_fd;
char iifname[IF_NAMESIZE]; /* Ingress interface for connection */
/* Set for services we need to redirect stdout/stderr to syslog */
struct {