summaryrefslogtreecommitdiffstats
path: root/src/vnet/map/test.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/vnet/map/test.c')
-rw-r--r--src/vnet/map/test.c3
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;
}