Compare commits
No commits in common. "ac24e418d9bc988ecf114c464701b35934948178" and "904ebcb2004858d4646550036c7db426d48e17d5" have entirely different histories.
ac24e418d9
...
904ebcb200
|
@ -369,8 +369,6 @@ mouse:usb:v046dpc068:name:Logitech G500:
|
||||||
|
|
||||||
# Logitech G502 Proteus Spectrum
|
# Logitech G502 Proteus Spectrum
|
||||||
mouse:usb:v046dpc332:name:Logitech Gaming Mouse G502:
|
mouse:usb:v046dpc332:name:Logitech Gaming Mouse G502:
|
||||||
# Logitech G502 HERO SE
|
|
||||||
mouse:usb:v046dpc08b:name:Logitech G502 HERO SE:
|
|
||||||
MOUSE_DPI=1200@1000 *2400@1000 3200@1000 6400@1000
|
MOUSE_DPI=1200@1000 *2400@1000 3200@1000 6400@1000
|
||||||
|
|
||||||
# Logitech G700 Laser Mouse (Wired)
|
# Logitech G700 Laser Mouse (Wired)
|
||||||
|
|
|
@ -1824,11 +1824,11 @@
|
||||||
<varlistentry>
|
<varlistentry>
|
||||||
<term><varname>DHCPv6Client=</varname></term>
|
<term><varname>DHCPv6Client=</varname></term>
|
||||||
<listitem>
|
<listitem>
|
||||||
<para>Takes a boolean, or the special value <literal>always</literal>. When true (the default), the DHCPv6 client will be started when the
|
<para>Takes a boolean. When true (the default), the DHCPv6 client will be started when the
|
||||||
RA has the managed or other information flag. If set to <literal>always</literal>, the DHCPv6 client will be started even if there is no
|
RA has the managed or other information flag.</para>
|
||||||
managed or other information flag in the RA.</para>
|
|
||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
|
||||||
</variablelist>
|
</variablelist>
|
||||||
</refsect1>
|
</refsect1>
|
||||||
|
|
||||||
|
|
|
@ -485,10 +485,8 @@ int detect_container(void) {
|
||||||
const char *pf = procfs_file_alloca(ptrace_pid, "comm");
|
const char *pf = procfs_file_alloca(ptrace_pid, "comm");
|
||||||
_cleanup_free_ char *ptrace_comm = NULL;
|
_cleanup_free_ char *ptrace_comm = NULL;
|
||||||
r = read_one_line_file(pf, &ptrace_comm);
|
r = read_one_line_file(pf, &ptrace_comm);
|
||||||
if (r >= 0 && startswith(ptrace_comm, "proot")) {
|
if (r >= 0 && startswith(ptrace_comm, "proot"))
|
||||||
r = VIRTUALIZATION_PROOT;
|
return VIRTUALIZATION_PROOT;
|
||||||
goto finish;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,6 @@
|
||||||
#include "networkd-manager.h"
|
#include "networkd-manager.h"
|
||||||
#include "networkd-ndisc.h"
|
#include "networkd-ndisc.h"
|
||||||
#include "networkd-route.h"
|
#include "networkd-route.h"
|
||||||
#include "string-table.h"
|
|
||||||
#include "string-util.h"
|
#include "string-util.h"
|
||||||
#include "strv.h"
|
#include "strv.h"
|
||||||
|
|
||||||
|
@ -795,14 +794,10 @@ static int ndisc_router_handler(Link *link, sd_ndisc_router *rt) {
|
||||||
if (r < 0)
|
if (r < 0)
|
||||||
return log_link_warning_errno(link, r, "Failed to get RA flags: %m");
|
return log_link_warning_errno(link, r, "Failed to get RA flags: %m");
|
||||||
|
|
||||||
if ((flags & (ND_RA_FLAG_MANAGED | ND_RA_FLAG_OTHER) && link->network->ipv6_accept_ra_start_dhcp6_client)) {
|
if (flags & (ND_RA_FLAG_MANAGED | ND_RA_FLAG_OTHER) &&
|
||||||
|
link->network->ipv6_accept_ra_start_dhcp6_client) {
|
||||||
if (link->network->ipv6_accept_ra_start_dhcp6_client == IPV6_ACCEPT_RA_START_DHCP6_CLIENT_ALWAYS)
|
/* (re)start DHCPv6 client in stateful or stateless mode according to RA flags */
|
||||||
r = dhcp6_request_address(link, false);
|
r = dhcp6_request_address(link, !(flags & ND_RA_FLAG_MANAGED));
|
||||||
else
|
|
||||||
/* (re)start DHCPv6 client in stateful or stateless mode according to RA flags */
|
|
||||||
r = dhcp6_request_address(link, !(flags & ND_RA_FLAG_MANAGED));
|
|
||||||
|
|
||||||
if (r < 0 && r != -EBUSY)
|
if (r < 0 && r != -EBUSY)
|
||||||
log_link_warning_errno(link, r, "Could not acquire DHCPv6 lease on NDisc request: %m");
|
log_link_warning_errno(link, r, "Could not acquire DHCPv6 lease on NDisc request: %m");
|
||||||
else {
|
else {
|
||||||
|
@ -1070,13 +1065,3 @@ int config_parse_address_generation_type(
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
DEFINE_CONFIG_PARSE_ENUM(config_parse_ipv6_accept_ra_start_dhcp6_client, ipv6_accept_ra_start_dhcp6_client, IPv6AcceptRAStartDHCP6Client,
|
|
||||||
"Failed to parse DHCPv6Client= setting")
|
|
||||||
static const char* const ipv6_accept_ra_start_dhcp6_client_table[_IPV6_ACCEPT_RA_START_DHCP6_CLIENT_MAX] = {
|
|
||||||
[IPV6_ACCEPT_RA_START_DHCP6_CLIENT_NO] = "no",
|
|
||||||
[IPV6_ACCEPT_RA_START_DHCP6_CLIENT_ALWAYS] = "always",
|
|
||||||
[IPV6_ACCEPT_RA_START_DHCP6_CLIENT_YES] = "yes",
|
|
||||||
};
|
|
||||||
|
|
||||||
DEFINE_STRING_TABLE_LOOKUP_WITH_BOOLEAN(ipv6_accept_ra_start_dhcp6_client, IPv6AcceptRAStartDHCP6Client, IPV6_ACCEPT_RA_START_DHCP6_CLIENT_YES);
|
|
||||||
|
|
|
@ -15,14 +15,6 @@ typedef enum IPv6TokenAddressGeneration {
|
||||||
_IPV6_TOKEN_ADDRESS_GENERATION_INVALID = -1,
|
_IPV6_TOKEN_ADDRESS_GENERATION_INVALID = -1,
|
||||||
} IPv6TokenAddressGeneration;
|
} IPv6TokenAddressGeneration;
|
||||||
|
|
||||||
typedef enum IPv6AcceptRAStartDHCP6Client {
|
|
||||||
IPV6_ACCEPT_RA_START_DHCP6_CLIENT_NO,
|
|
||||||
IPV6_ACCEPT_RA_START_DHCP6_CLIENT_ALWAYS,
|
|
||||||
IPV6_ACCEPT_RA_START_DHCP6_CLIENT_YES,
|
|
||||||
_IPV6_ACCEPT_RA_START_DHCP6_CLIENT_MAX,
|
|
||||||
_IPV6_ACCEPT_RA_START_DHCP6_CLIENT_INVALID = -1,
|
|
||||||
} IPv6AcceptRAStartDHCP6Client;
|
|
||||||
|
|
||||||
typedef struct NDiscRDNSS {
|
typedef struct NDiscRDNSS {
|
||||||
usec_t valid_until;
|
usec_t valid_until;
|
||||||
struct in6_addr address;
|
struct in6_addr address;
|
||||||
|
@ -53,7 +45,3 @@ void ndisc_flush(Link *link);
|
||||||
|
|
||||||
CONFIG_PARSER_PROTOTYPE(config_parse_ndisc_black_listed_prefix);
|
CONFIG_PARSER_PROTOTYPE(config_parse_ndisc_black_listed_prefix);
|
||||||
CONFIG_PARSER_PROTOTYPE(config_parse_address_generation_type);
|
CONFIG_PARSER_PROTOTYPE(config_parse_address_generation_type);
|
||||||
CONFIG_PARSER_PROTOTYPE(config_parse_ipv6_accept_ra_start_dhcp6_client);
|
|
||||||
|
|
||||||
const char* ipv6_accept_ra_start_dhcp6_client_to_string(IPv6AcceptRAStartDHCP6Client i) _const_;
|
|
||||||
IPv6AcceptRAStartDHCP6Client ipv6_accept_ra_start_dhcp6_client_from_string(const char *s) _pure_;
|
|
||||||
|
|
|
@ -199,7 +199,7 @@ IPv6AcceptRA.UseAutonomousPrefix, config_parse_bool,
|
||||||
IPv6AcceptRA.UseOnLinkPrefix, config_parse_bool, 0, offsetof(Network, ipv6_accept_ra_use_onlink_prefix)
|
IPv6AcceptRA.UseOnLinkPrefix, config_parse_bool, 0, offsetof(Network, ipv6_accept_ra_use_onlink_prefix)
|
||||||
IPv6AcceptRA.UseDNS, config_parse_bool, 0, offsetof(Network, ipv6_accept_ra_use_dns)
|
IPv6AcceptRA.UseDNS, config_parse_bool, 0, offsetof(Network, ipv6_accept_ra_use_dns)
|
||||||
IPv6AcceptRA.UseDomains, config_parse_dhcp_use_domains, 0, offsetof(Network, ipv6_accept_ra_use_domains)
|
IPv6AcceptRA.UseDomains, config_parse_dhcp_use_domains, 0, offsetof(Network, ipv6_accept_ra_use_domains)
|
||||||
IPv6AcceptRA.DHCPv6Client, config_parse_ipv6_accept_ra_start_dhcp6_client, 0, offsetof(Network, ipv6_accept_ra_start_dhcp6_client)
|
IPv6AcceptRA.DHCPv6Client, config_parse_bool, 0, offsetof(Network, ipv6_accept_ra_start_dhcp6_client)
|
||||||
IPv6AcceptRA.RouteTable, config_parse_section_route_table, 0, 0
|
IPv6AcceptRA.RouteTable, config_parse_section_route_table, 0, 0
|
||||||
IPv6AcceptRA.BlackList, config_parse_ndisc_black_listed_prefix, 0, 0
|
IPv6AcceptRA.BlackList, config_parse_ndisc_black_listed_prefix, 0, 0
|
||||||
DHCPServer.MaxLeaseTimeSec, config_parse_sec, 0, offsetof(Network, dhcp_server_max_lease_time_usec)
|
DHCPServer.MaxLeaseTimeSec, config_parse_sec, 0, offsetof(Network, dhcp_server_max_lease_time_usec)
|
||||||
|
|
|
@ -230,12 +230,12 @@ struct Network {
|
||||||
bool ipv6_accept_ra_use_dns;
|
bool ipv6_accept_ra_use_dns;
|
||||||
bool ipv6_accept_ra_use_autonomous_prefix;
|
bool ipv6_accept_ra_use_autonomous_prefix;
|
||||||
bool ipv6_accept_ra_use_onlink_prefix;
|
bool ipv6_accept_ra_use_onlink_prefix;
|
||||||
|
bool ipv6_accept_ra_start_dhcp6_client;
|
||||||
bool active_slave;
|
bool active_slave;
|
||||||
bool primary_slave;
|
bool primary_slave;
|
||||||
bool ipv6_accept_ra_route_table_set;
|
|
||||||
DHCPUseDomains ipv6_accept_ra_use_domains;
|
DHCPUseDomains ipv6_accept_ra_use_domains;
|
||||||
IPv6AcceptRAStartDHCP6Client ipv6_accept_ra_start_dhcp6_client;
|
|
||||||
uint32_t ipv6_accept_ra_route_table;
|
uint32_t ipv6_accept_ra_route_table;
|
||||||
|
bool ipv6_accept_ra_route_table_set;
|
||||||
Set *ndisc_black_listed_prefix;
|
Set *ndisc_black_listed_prefix;
|
||||||
OrderedHashmap *ipv6_tokens;
|
OrderedHashmap *ipv6_tokens;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue