mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-25 17:40:08 +01:00
platform/trivial: add code comments
This commit is contained in:
parent
5c7e0654eb
commit
b3254da173
2 changed files with 8 additions and 1 deletions
|
|
@ -3778,6 +3778,10 @@ _ip_route_scope_inv_get_normalized (const NMPlatformIP4Route *route)
|
|||
* Adding a route to kernel via nm_platform_ip_route_add() will normalize/coerce some
|
||||
* properties of the route. This function modifies (normalizes) the route like it
|
||||
* would be done by adding the route in kernel.
|
||||
*
|
||||
* Note that this function is related to NM_PLATFORM_IP_ROUTE_CMP_TYPE_SEMANTICALLY
|
||||
* in that if two routes compare semantically equal, after normalizing they also shall
|
||||
* compare equal with NM_PLATFORM_IP_ROUTE_CMP_TYPE_FULL.
|
||||
*/
|
||||
void
|
||||
nm_platform_ip_route_normalize (int addr_family,
|
||||
|
|
|
|||
|
|
@ -138,7 +138,10 @@ typedef enum {
|
|||
* a route destination 192.168.1.5/24 is not accepted by kernel and
|
||||
* we treat it identical to 192.168.1.0/24. Semantically these
|
||||
* routes are identical, but NM_PLATFORM_IP_ROUTE_CMP_TYPE_FULL will
|
||||
* report them as different. */
|
||||
* report them as different.
|
||||
*
|
||||
* The result shall be identical to call first nm_platform_ip_route_normalize()
|
||||
* on both routes and then doing a full comparison. */
|
||||
NM_PLATFORM_IP_ROUTE_CMP_TYPE_SEMANTICALLY,
|
||||
|
||||
/* compare all fields. This should have the same effect as memcmp(),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue