summaryrefslogtreecommitdiffstats
path: root/VNFs/DPPD-PROX/defines.h
diff options
context:
space:
mode:
Diffstat (limited to 'VNFs/DPPD-PROX/defines.h')
-rw-r--r--VNFs/DPPD-PROX/defines.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/VNFs/DPPD-PROX/defines.h b/VNFs/DPPD-PROX/defines.h
index c2309be1..3be1a963 100644
--- a/VNFs/DPPD-PROX/defines.h
+++ b/VNFs/DPPD-PROX/defines.h
@@ -1,5 +1,5 @@
/*
-// Copyright (c) 2010-2017 Intel Corporation
+// Copyright (c) 2010-2020 Intel Corporation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -42,6 +42,13 @@
addr[12], addr[13], addr[14], addr[15]
#endif
+#ifndef IPv6_PREFIX
+#define IPv6_PREFIX_FMT "%02x%02x:%02x%02x:%02x%02x:%02x%02x"
+#define IPv6_PREFIX(addr) \
+ addr[0], addr[1], addr[2], addr[3], \
+ addr[4], addr[5], addr[6], addr[7]
+#endif
+
#ifndef MAC_BYTES
#define MAC_BYTES_FMT "%02x:%02x:%02x:%02x:%02x:%02x"