diff options
author | Thomas Haller <thaller@redhat.com> | 2021-08-27 08:38:19 +0200 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2021-08-31 16:34:02 +0200 |
commit | ca2b02bf987b23fdc633809bde12fe68cc0656fb (patch) | |
tree | 1e1a0c8f7c1435ccb07ad9831e9921f5e1c67c00 /src | |
parent | c39859d240b9a8d5da34be8bee40f7bd972b5d84 (diff) | |
download | NetworkManager-ca2b02bf987b23fdc633809bde12fe68cc0656fb.tar.gz |
platform: add NM_PLATFORM_IP[46]_ROUTE_INIT() helper macros
Diffstat (limited to 'src')
-rw-r--r-- | src/libnm-platform/nm-platform.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libnm-platform/nm-platform.h b/src/libnm-platform/nm-platform.h index b20b18c4dd..3527cac88a 100644 --- a/src/libnm-platform/nm-platform.h +++ b/src/libnm-platform/nm-platform.h @@ -616,6 +616,10 @@ typedef union { #undef __NMPlatformIPRoute_COMMON +#define NM_PLATFORM_IP4_ROUTE_INIT(...) (&((const NMPlatformIP4Route){__VA_ARGS__})) + +#define NM_PLATFORM_IP6_ROUTE_INIT(...) (&((const NMPlatformIP6Route){__VA_ARGS__})) + typedef struct { /* struct fib_rule_uid_range */ guint32 start; |