1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
|
From 29a499f1b19eecc79303c3f085be5fd94ea0fa7b Mon Sep 17 00:00:00 2001
From: Guillem Jover <guillem@hadrons.org>
Date: Mon, 6 Sep 2010 10:52:27 +0200
Subject: [PATCH 3/5] inetd: Change protocol semantics in inetd.conf
Readd parts of the original patch that got botched when applied
upstream.
* src/inetd.c (getconfigent) [IPV6]: Change default family to IPv4 for "tcp"
and "udp". Change "tcp6" and "udp6" to support IPv4 mapped addresses.
Fixes: commit a12021ee959a88b48cd16e947c671f8f59e29c9d
Origin: vendor, Debian
Forwarded: https://lists.gnu.org/archive/html/bug-inetutils/2018-01/msg00001.html
diff --git a/src/inetd.c b/src/inetd.c
index 52453fbd..e0da376d 100644
--- a/src/inetd.c
+++ b/src/inetd.c
@@ -1102,7 +1102,7 @@ getconfigent (FILE *fconfig, const char *file, size_t *line)
sep->se_proto = newstr (argv[INETD_PROTOCOL]);
#ifdef IPV6
- /* We default to IPv4. */
+ /* We default to IPv4. */
sep->se_family = AF_INET;
sep->se_v4mapped = 1;
@@ -1112,7 +1112,6 @@ getconfigent (FILE *fconfig, const char *file, size_t *line)
if (sep->se_proto[3] == '6')
{
sep->se_family = AF_INET6;
- sep->se_v4mapped = 0;
/* Check for tcp6only and udp6only. */
if (strcmp (&sep->se_proto[3], "6only") == 0)
sep->se_v4mapped = 0;
--
2.47.2
|