aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/map/test.c
diff options
context:
space:
mode:
authorOle Troan <ot@cisco.com>2018-11-22 12:15:17 +0100
committerAndrew Yourtchenko <ayourtch@gmail.com>2018-11-22 19:20:50 +0000
commitfccd1b2b694146506e0efdeee6c23674550fc5d5 (patch)
treebf258d73903a8e83a47ffc9ccf5eaffec06d17a1 /src/plugins/map/test.c
parent94f509615eb97cebc9192e7290c84cf166518039 (diff)
Revert "Add support for MAP-T CE (VPP-1058)"
This reverts commit 0ae15ed43aaa600a75ca4c154bc62478820c00b4. Re-add MAP CE support later. This patch polluted the code with too many if (ce) ... Change-Id: Ia0ffd6fdb452aa5d30abec57772c17fc16fb0dbd Signed-off-by: Ole Troan <ot@cisco.com>
Diffstat (limited to 'src/plugins/map/test.c')
-rw-r--r--src/plugins/map/test.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/plugins/map/test.c b/src/plugins/map/test.c
index ff10fc929a6..f3c893a7a31 100644
--- a/src/plugins/map/test.c
+++ b/src/plugins/map/test.c
@@ -48,8 +48,7 @@ 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)
{
- if (!(flags & MAP_DOMAIN_TRANSLATION))
- d->flags |= MAP_DOMAIN_PREFIX;
+ d->flags |= MAP_DOMAIN_PREFIX;
d->suffix_shift = 32 - ip4_prefix_len - ea_bits_len;
suffix_len = ea_bits_len;
}