mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-08 13:38:43 +02:00
platform: make NMPlatformVTableAddress struct smaller and pack NMPObjectType
(cherry picked from commit7c92663f8d) (cherry picked from commit3a98ecfa0e)
This commit is contained in:
parent
99d77596cd
commit
de4d10f1c1
2 changed files with 4 additions and 4 deletions
|
|
@ -776,10 +776,10 @@ typedef struct {
|
||||||
#undef __NMPlatformObjWithIfindex_COMMON
|
#undef __NMPlatformObjWithIfindex_COMMON
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
gboolean is_ip4;
|
bool is_ip4;
|
||||||
|
gint8 addr_family;
|
||||||
|
guint8 sizeof_route;
|
||||||
NMPObjectType obj_type;
|
NMPObjectType obj_type;
|
||||||
int addr_family;
|
|
||||||
gsize sizeof_route;
|
|
||||||
int (*route_cmp)(const NMPlatformIPXRoute *a,
|
int (*route_cmp)(const NMPlatformIPXRoute *a,
|
||||||
const NMPlatformIPXRoute *b,
|
const NMPlatformIPXRoute *b,
|
||||||
NMPlatformIPRouteCmpType cmp_type);
|
NMPlatformIPRouteCmpType cmp_type);
|
||||||
|
|
|
||||||
|
|
@ -110,7 +110,7 @@ typedef struct _NMPlatformIP6Route NMPlatformIP6Route;
|
||||||
typedef struct _NMPlatformLink NMPlatformLink;
|
typedef struct _NMPlatformLink NMPlatformLink;
|
||||||
typedef struct _NMPObject NMPObject;
|
typedef struct _NMPObject NMPObject;
|
||||||
|
|
||||||
typedef enum {
|
typedef enum _nm_packed {
|
||||||
NMP_OBJECT_TYPE_UNKNOWN,
|
NMP_OBJECT_TYPE_UNKNOWN,
|
||||||
NMP_OBJECT_TYPE_LINK,
|
NMP_OBJECT_TYPE_LINK,
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue