mirror of
https://github.com/systemd/systemd
synced 2026-03-14 17:14:49 +01:00
Compare commits
2 Commits
11c38d3e51
...
dd568427fb
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
dd568427fb | ||
|
|
3d56acef7f |
@ -130,7 +130,12 @@ static inline bool _pure_ in_charset(const char *s, const char* charset) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static inline bool char_is_cc(char p) {
|
static inline bool char_is_cc(char p) {
|
||||||
return (uint8_t) p < ' ' || p == 127;
|
/* char is unsigned on some architectures, e.g. aarch64. So, compiler may warn the condition
|
||||||
|
* p >= 0 is always true. See #19543. Hence, let's cast to unsigned before the comparison. Note
|
||||||
|
* that the cast in the right hand side is redundant, as according to the C standard, compilers
|
||||||
|
* automatically cast a signed value to unsigned when comparing with an unsigned variable. Just
|
||||||
|
* for safety and readability. */
|
||||||
|
return (uint8_t) p < (uint8_t) ' ' || p == 127;
|
||||||
}
|
}
|
||||||
bool string_has_cc(const char *p, const char *ok) _pure_;
|
bool string_has_cc(const char *p, const char *ok) _pure_;
|
||||||
|
|
||||||
|
|||||||
@ -244,6 +244,8 @@ BatmanAdvanced.Fragmentation, config_parse_bool,
|
|||||||
BatmanAdvanced.GatewayMode, config_parse_batadv_gateway_mode, 0, offsetof(BatmanAdvanced, gateway_mode)
|
BatmanAdvanced.GatewayMode, config_parse_batadv_gateway_mode, 0, offsetof(BatmanAdvanced, gateway_mode)
|
||||||
BatmanAdvanced.GatewayBandwithDown, config_parse_badadv_bandwidth, 0, offsetof(BatmanAdvanced, gateway_bandwidth_down)
|
BatmanAdvanced.GatewayBandwithDown, config_parse_badadv_bandwidth, 0, offsetof(BatmanAdvanced, gateway_bandwidth_down)
|
||||||
BatmanAdvanced.GatewayBandwithUp, config_parse_badadv_bandwidth, 0, offsetof(BatmanAdvanced, gateway_bandwidth_up)
|
BatmanAdvanced.GatewayBandwithUp, config_parse_badadv_bandwidth, 0, offsetof(BatmanAdvanced, gateway_bandwidth_up)
|
||||||
|
BatmanAdvanced.GatewayBandwidthDown, config_parse_badadv_bandwidth, 0, offsetof(BatmanAdvanced, gateway_bandwidth_down)
|
||||||
|
BatmanAdvanced.GatewayBandwidthUp, config_parse_badadv_bandwidth, 0, offsetof(BatmanAdvanced, gateway_bandwidth_up)
|
||||||
BatmanAdvanced.HopPenalty, config_parse_uint8, 0, offsetof(BatmanAdvanced, hop_penalty)
|
BatmanAdvanced.HopPenalty, config_parse_uint8, 0, offsetof(BatmanAdvanced, hop_penalty)
|
||||||
BatmanAdvanced.OriginatorIntervalSec, config_parse_sec, 0, offsetof(BatmanAdvanced, originator_interval)
|
BatmanAdvanced.OriginatorIntervalSec, config_parse_sec, 0, offsetof(BatmanAdvanced, originator_interval)
|
||||||
BatmanAdvanced.RoutingAlgorithm, config_parse_batadv_routing_algorithm, 0, offsetof(BatmanAdvanced, routing_algorithm)
|
BatmanAdvanced.RoutingAlgorithm, config_parse_batadv_routing_algorithm, 0, offsetof(BatmanAdvanced, routing_algorithm)
|
||||||
|
|||||||
@ -11,6 +11,6 @@ DistributedArpTable=1
|
|||||||
Fragmentation=1
|
Fragmentation=1
|
||||||
HopPenalty=10
|
HopPenalty=10
|
||||||
OriginatorIntervalSec=1
|
OriginatorIntervalSec=1
|
||||||
GatewayBandwithDown=100K
|
GatewayBandwidthDown=100K
|
||||||
GatewayBandwithUp=12K
|
GatewayBandwidthUp=12K
|
||||||
RoutingAlgorithm=batman-v
|
RoutingAlgorithm=batman-v
|
||||||
|
|||||||
@ -234,4 +234,6 @@ HopPenalty=
|
|||||||
OriginatorIntervalSec=
|
OriginatorIntervalSec=
|
||||||
GatewayBandwithDown=
|
GatewayBandwithDown=
|
||||||
GatewayBandwithUp=
|
GatewayBandwithUp=
|
||||||
|
GatewayBandwidthDown=
|
||||||
|
GatewayBandwidthUp=
|
||||||
RoutingAlgorithm=
|
RoutingAlgorithm=
|
||||||
|
|||||||
@ -10,5 +10,5 @@ DistributedArpTable=1
|
|||||||
Fragmentation=0
|
Fragmentation=0
|
||||||
HopPenalty=10
|
HopPenalty=10
|
||||||
OriginatorIntervalSec=1000ms
|
OriginatorIntervalSec=1000ms
|
||||||
GatewayBandwithDown=205M
|
GatewayBandwidthDown=205M
|
||||||
GatewayBandwithUp=2G
|
GatewayBandwidthUp=2G
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user