diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-10-15 01:47:28 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-10-15 01:47:28 +0100 |
commit | f208e35deefe1ee6fe6722cec9ad8cc12e92e638 (patch) | |
tree | f63456d14b948e3a902ace235a9961865728faaf /net-misc/dhcp/files/dhcp-4.4.3-always-accept-4.patch | |
parent | 4392d53af7ce45ccfe6eb14146479ef0e2bd790a (diff) |
gentoo auto-resync : 15:10:2022 - 01:47:28
Diffstat (limited to 'net-misc/dhcp/files/dhcp-4.4.3-always-accept-4.patch')
-rw-r--r-- | net-misc/dhcp/files/dhcp-4.4.3-always-accept-4.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/net-misc/dhcp/files/dhcp-4.4.3-always-accept-4.patch b/net-misc/dhcp/files/dhcp-4.4.3-always-accept-4.patch new file mode 100644 index 000000000000..bbb25eb194bd --- /dev/null +++ b/net-misc/dhcp/files/dhcp-4.4.3-always-accept-4.patch @@ -0,0 +1,29 @@ +https://bugs.gentoo.org/437108 + +Always accept the -4 option even if we don't have IPv6 support enabled. +The relay code does this already. + +--- dhcp-4.4.0/client/dhclient.c ++++ dhcp-4.4.0/client/dhclient.c +@@ -353,8 +353,8 @@ + if (!strcmp(argv[i], "-r")) { + release_mode = 1; + /* no_daemon = 1; */ +-#ifdef DHCPv6 + } else if (!strcmp(argv[i], "-4")) { ++#ifdef DHCPv6 + if (local_family_set && local_family != AF_INET) + log_fatal("Client can only do v4 or v6, not " + "both."); +--- dhcp-4.4.0/server/dhcpd.c ++++ dhcp-4.4.0/server/dhcpd.c +@@ -495,8 +495,8 @@ + } else if (!strcmp (argv [i], "-q")) { + quiet = 1; + quiet_interface_discovery = 1; +-#ifdef DHCPv6 + } else if (!strcmp(argv[i], "-4")) { ++#ifdef DHCPv6 + if (local_family_set && (local_family != AF_INET)) { + log_fatal("Server cannot run in both IPv4 and " + "IPv6 mode at the same time."); |