diff options
author | Patrick McHardy <kaber@trash.net> | 2014-12-13 07:50:36 +0000 |
---|---|---|
committer | Patrick McHardy <kaber@trash.net> | 2014-12-16 18:20:54 +0100 |
commit | 551d2a09ab93dfbc402b4a5789e6d865a168fb45 (patch) | |
tree | 0c0f88a8bfced5b215cc987ea5f797a1ea6c2489 /src/netlink.c | |
parent | 25b19818c46d6fea81f3b951223f4ec7fa86ed55 (diff) |
parser: alloc specifying concat types in set declarations
Support specification of concat types in set declarations:
add set filter test {
type ipv4_addr . inet_service
}
Netlink delinearization is changed to reconstruct the type from the id.
Signed-off-by: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'src/netlink.c')
-rw-r--r-- | src/netlink.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/netlink.c b/src/netlink.c index e59e2977..feaea19a 100644 --- a/src/netlink.c +++ b/src/netlink.c @@ -986,6 +986,8 @@ static const struct datatype *dtype_map_from_kernel(enum nft_data_types type) case NFT_DATA_VERDICT: return &verdict_type; default: + if (type & ~TYPE_MASK) + return concat_type_alloc(type); return datatype_lookup(type); } } |