mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager
synced 2024-10-07 08:40:59 +00:00
platform/trivial: code style fix for NMPCacheIdType enum
This commit is contained in:
parent
ca2b02bf98
commit
92ba45727b
|
@ -120,10 +120,10 @@ typedef enum { /*< skip >*/
|
|||
* the index NMP_CACHE_ID_TYPE_OBJECT_BY_IFINDEX with
|
||||
* matching v4/v6 and ifindex -- or maybe not at all if it isn't visible.
|
||||
* */
|
||||
typedef enum { /*< skip >*/
|
||||
NMP_CACHE_ID_TYPE_NONE,
|
||||
typedef enum {
|
||||
NMP_CACHE_ID_TYPE_NONE,
|
||||
|
||||
/* all the objects of a certain type.
|
||||
/* all the objects of a certain type.
|
||||
*
|
||||
* This index is special. It is the only one that contains *all* object.
|
||||
* Other indexes may consider some object as non "partitionable", hence
|
||||
|
@ -136,20 +136,20 @@ typedef enum { /*< skip >*/
|
|||
* expose all links, even invisible ones. For addresses/routes, this
|
||||
* distinction doesn't exist, as all addresses/routes that are alive
|
||||
* are visible as well. */
|
||||
NMP_CACHE_ID_TYPE_OBJECT_TYPE,
|
||||
NMP_CACHE_ID_TYPE_OBJECT_TYPE,
|
||||
|
||||
/* index for the link objects by ifname. */
|
||||
NMP_CACHE_ID_TYPE_LINK_BY_IFNAME,
|
||||
/* index for the link objects by ifname. */
|
||||
NMP_CACHE_ID_TYPE_LINK_BY_IFNAME,
|
||||
|
||||
/* indices for the visible default-routes, ignoring ifindex.
|
||||
/* indices for the visible default-routes, ignoring ifindex.
|
||||
* This index only contains two partitions: all visible default-routes,
|
||||
* separate for IPv4 and IPv6. */
|
||||
NMP_CACHE_ID_TYPE_DEFAULT_ROUTES,
|
||||
NMP_CACHE_ID_TYPE_DEFAULT_ROUTES,
|
||||
|
||||
/* all the objects that have an ifindex (by object-type) for an ifindex. */
|
||||
NMP_CACHE_ID_TYPE_OBJECT_BY_IFINDEX,
|
||||
/* all the objects that have an ifindex (by object-type) for an ifindex. */
|
||||
NMP_CACHE_ID_TYPE_OBJECT_BY_IFINDEX,
|
||||
|
||||
/* Consider all the destination fields of a route, that is, the ID without the ifindex
|
||||
/* Consider all the destination fields of a route, that is, the ID without the ifindex
|
||||
* and gateway (meaning: network/plen,metric).
|
||||
* The reason for this is that `ip route change` can replace an existing route
|
||||
* and modify its ifindex/gateway. Effectively, that means it deletes an existing
|
||||
|
@ -157,15 +157,15 @@ typedef enum { /*< skip >*/
|
|||
* sends one RTM_NEWADDR notification without notifying about the deletion. We detect
|
||||
* that by having this index to contain overlapping routes which require special
|
||||
* cache-resync. */
|
||||
NMP_CACHE_ID_TYPE_ROUTES_BY_WEAK_ID,
|
||||
NMP_CACHE_ID_TYPE_ROUTES_BY_WEAK_ID,
|
||||
|
||||
/* a filter for objects that track an explicit address family.
|
||||
/* a filter for objects that track an explicit address family.
|
||||
*
|
||||
* Note that currently on NMPObjectRoutingRule is indexed by this filter. */
|
||||
NMP_CACHE_ID_TYPE_OBJECT_BY_ADDR_FAMILY,
|
||||
NMP_CACHE_ID_TYPE_OBJECT_BY_ADDR_FAMILY,
|
||||
|
||||
__NMP_CACHE_ID_TYPE_MAX,
|
||||
NMP_CACHE_ID_TYPE_MAX = __NMP_CACHE_ID_TYPE_MAX - 1,
|
||||
__NMP_CACHE_ID_TYPE_MAX,
|
||||
NMP_CACHE_ID_TYPE_MAX = __NMP_CACHE_ID_TYPE_MAX - 1,
|
||||
} NMPCacheIdType;
|
||||
|
||||
typedef struct {
|
||||
|
|
Loading…
Reference in a new issue