mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-09 15:30:27 +01:00
device/trivial: add code comment to nm_device_ipv4_sysctl_get_effective_uint32()
This commit is contained in:
parent
150cf44d50
commit
f92a68c9e5
1 changed files with 5 additions and 0 deletions
|
|
@ -1060,6 +1060,11 @@ nm_device_ipv4_sysctl_get_effective_uint32 (NMDevice *self, const char *property
|
|||
if (!nm_device_get_ip_ifindex (self))
|
||||
return fallback;
|
||||
|
||||
/* for this kind of sysctl (e.g. "rp_filter"), kernel effectively uses the
|
||||
* MAX of the per-device value and the "all" value.
|
||||
*
|
||||
* Also do that, by reading both sysctls and return the maximum. */
|
||||
|
||||
v = nm_platform_sysctl_get_int_checked (nm_device_get_platform (self),
|
||||
NMP_SYSCTL_PATHID_ABSOLUTE (nm_utils_sysctl_ip_conf_path (AF_INET,
|
||||
buf,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue