Code Review
/
samplevnf.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Support DPDK 19.11 rc0
[samplevnf.git]
/
VNFs
/
DPPD-PROX
/
defines.h
diff --git
a/VNFs/DPPD-PROX/defines.h
b/VNFs/DPPD-PROX/defines.h
index
c2309be
..
3be1a96
100644
(file)
--- a/
VNFs/DPPD-PROX/defines.h
+++ b/
VNFs/DPPD-PROX/defines.h
@@
-1,5
+1,5
@@
/*
/*
-// Copyright (c) 2010-20
17
Intel Corporation
+// Copyright (c) 2010-20
20
Intel Corporation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
//
// 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
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"
#ifndef MAC_BYTES
#define MAC_BYTES_FMT "%02x:%02x:%02x:%02x:%02x:%02x"