X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=VNFs%2FDPPD-PROX%2Fdefines.h;h=3be1a9634f0f93bcf85a3d55583cf14da06c52b1;hb=9d1c6c3ff1f464fc2b99857f9113f5688f9b34f1;hp=c2309be1efe5c341adfe3a04fd3174d6354aaf57;hpb=cb94e0036256c6a3fb0aadb682a04d8ad30ddd2a;p=samplevnf.git 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"