1
0
mirror of https://github.com/systemd/systemd.git synced 2024-10-28 03:25:31 +03:00

sd-netlink: add route netlink properties

This commit is contained in:
Susant Sahani 2019-05-16 15:18:35 +05:30
parent fe0e16db09
commit cb7e98ab05

View File

@ -622,23 +622,23 @@ static const NLType rtnl_route_types[] = {
[RTA_PRIORITY] = { .type = NETLINK_TYPE_U32 }, [RTA_PRIORITY] = { .type = NETLINK_TYPE_U32 },
[RTA_PREFSRC] = { .type = NETLINK_TYPE_IN_ADDR }, /* 6? */ [RTA_PREFSRC] = { .type = NETLINK_TYPE_IN_ADDR }, /* 6? */
[RTA_METRICS] = { .type = NETLINK_TYPE_NESTED, .type_system = &rtnl_route_metrics_type_system}, [RTA_METRICS] = { .type = NETLINK_TYPE_NESTED, .type_system = &rtnl_route_metrics_type_system},
/* [RTA_MULTIPATH] = { .len = sizeof(struct rtnexthop) }, [RTA_MULTIPATH] = { .size = sizeof(struct rtnexthop) },
*/
[RTA_FLOW] = { .type = NETLINK_TYPE_U32 }, /* 6? */ [RTA_FLOW] = { .type = NETLINK_TYPE_U32 }, /* 6? */
/* [RTA_CACHEINFO] = { .size = sizeof(struct rta_cacheinfo) },
RTA_CACHEINFO, [RTA_TABLE] = { .type = NETLINK_TYPE_U32 },
RTA_TABLE, [RTA_MARK] = { .type = NETLINK_TYPE_U32 },
RTA_MARK, [RTA_MFC_STATS] = { .type = NETLINK_TYPE_U64 },
RTA_MFC_STATS, [RTA_VIA] = { .type = NETLINK_TYPE_U32 },
RTA_VIA, [RTA_NEWDST] = { .type = NETLINK_TYPE_U32 },
RTA_NEWDST,
*/
[RTA_PREF] = { .type = NETLINK_TYPE_U8 }, [RTA_PREF] = { .type = NETLINK_TYPE_U8 },
/*
RTA_ENCAP_TYPE,
RTA_ENCAP,
*/
[RTA_EXPIRES] = { .type = NETLINK_TYPE_U32 }, [RTA_EXPIRES] = { .type = NETLINK_TYPE_U32 },
[RTA_ENCAP_TYPE] = { .type = NETLINK_TYPE_U16 },
[RTA_ENCAP] = { .type = NETLINK_TYPE_NESTED }, /* Multiple type systems i.e. LWTUNNEL_ENCAP_MPLS/LWTUNNEL_ENCAP_IP/LWTUNNEL_ENCAP_ILA etc... */
[RTA_UID] = { .type = NETLINK_TYPE_U32 },
[RTA_TTL_PROPAGATE] = { .type = NETLINK_TYPE_U8 },
[RTA_IP_PROTO] = { .type = NETLINK_TYPE_U8 },
[RTA_SPORT] = { .type = NETLINK_TYPE_U16 },
[RTA_DPORT] = { .type = NETLINK_TYPE_U16 },
}; };
static const NLTypeSystem rtnl_route_type_system = { static const NLTypeSystem rtnl_route_type_system = {