diff options
author | Juraj Sloboda <jsloboda@cisco.com> | 2017-12-19 20:57:48 +0100 |
---|---|---|
committer | Ole Trøan <otroan@employees.org> | 2018-01-11 09:34:35 +0000 |
commit | 0ae15ed43aaa600a75ca4c154bc62478820c00b4 (patch) | |
tree | 572c7433f53622d2de6d7979cd6448e02fc1d9ae /src/vnet/map/test.c | |
parent | c5c6a3342f3cbaaac647d52fd960b6f5b0fcd4e0 (diff) |
Add support for MAP-T CE (VPP-1058)
Change-Id: Ib99058323c50f20fcdb44185aee027c5c6ef8c91
Signed-off-by: Juraj Sloboda <jsloboda@cisco.com>
Diffstat (limited to 'src/vnet/map/test.c')
-rw-r--r-- | src/vnet/map/test.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/vnet/map/test.c b/src/vnet/map/test.c index f3c893a7a31..ff10fc929a6 100644 --- a/src/vnet/map/test.c +++ b/src/vnet/map/test.c @@ -48,7 +48,8 @@ get_domain(ip4_address_t * ip4_prefix, u8 ip4_prefix_len, /* How many, and which bits to grab from the IPv4 DA */ if (ip4_prefix_len + ea_bits_len < 32) { - d->flags |= MAP_DOMAIN_PREFIX; + if (!(flags & MAP_DOMAIN_TRANSLATION)) + d->flags |= MAP_DOMAIN_PREFIX; d->suffix_shift = 32 - ip4_prefix_len - ea_bits_len; suffix_len = ea_bits_len; } |