platform: add NM_PLATFORM_IP[46]_ROUTE_INIT() helper macros

This commit is contained in:
Thomas Haller 2021-08-27 08:38:19 +02:00
parent c39859d240
commit ca2b02bf98
No known key found for this signature in database
GPG key ID: 29C2366E4DFC5728

View file

@ -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;