mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-28 04:00:09 +01:00
platform: make NMPlatformVTableAddress struct smaller and pack NMPObjectType
(cherry picked from commit 7c92663f8d)
This commit is contained in:
parent
9e40474c71
commit
3a98ecfa0e
2 changed files with 4 additions and 4 deletions
|
|
@ -776,10 +776,10 @@ typedef struct {
|
|||
#undef __NMPlatformObjWithIfindex_COMMON
|
||||
|
||||
typedef struct {
|
||||
gboolean is_ip4;
|
||||
bool is_ip4;
|
||||
gint8 addr_family;
|
||||
guint8 sizeof_route;
|
||||
NMPObjectType obj_type;
|
||||
int addr_family;
|
||||
gsize sizeof_route;
|
||||
int (*route_cmp)(const NMPlatformIPXRoute *a,
|
||||
const NMPlatformIPXRoute *b,
|
||||
NMPlatformIPRouteCmpType cmp_type);
|
||||
|
|
|
|||
|
|
@ -110,7 +110,7 @@ typedef struct _NMPlatformIP6Route NMPlatformIP6Route;
|
|||
typedef struct _NMPlatformLink NMPlatformLink;
|
||||
typedef struct _NMPObject NMPObject;
|
||||
|
||||
typedef enum {
|
||||
typedef enum _nm_packed {
|
||||
NMP_OBJECT_TYPE_UNKNOWN,
|
||||
NMP_OBJECT_TYPE_LINK,
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue