rtnl_route: decode new RTA_* attributes

* rtnl_route.c (rtmsg_nla_decoders): Add entries for RTA_IP_PROTO,
RTA_SPORT, and RTA_DPORT.
This commit is contained in:
Дмитрий Левин 2018-08-04 11:45:20 +00:00
parent e9e2dec950
commit dad8828327

View File

@ -248,7 +248,10 @@ static const nla_decoder_t rtmsg_nla_decoders[] = {
[RTA_EXPIRES] = decode_nla_u64,
[RTA_PAD] = NULL,
[RTA_UID] = decode_nla_u32,
[RTA_TTL_PROPAGATE] = decode_nla_u8
[RTA_TTL_PROPAGATE] = decode_nla_u8,
[RTA_IP_PROTO] = decode_nla_u8,
[RTA_SPORT] = decode_nla_u16,
[RTA_DPORT] = decode_nla_u16
};
static bool