Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
memif: API cleanup
[vpp.git]
/
src
/
plugins
/
memif
/
memif.h
diff --git
a/src/plugins/memif/memif.h
b/src/plugins/memif/memif.h
index
3fbce91
..
8539c98
100644
(file)
--- a/
src/plugins/memif/memif.h
+++ b/
src/plugins/memif/memif.h
@@
-27,6
+27,8
@@
#define MEMIF_VERSION_MINOR 0
#define MEMIF_VERSION ((MEMIF_VERSION_MAJOR << 8) | MEMIF_VERSION_MINOR)
#define MEMIF_VERSION_MINOR 0
#define MEMIF_VERSION ((MEMIF_VERSION_MAJOR << 8) | MEMIF_VERSION_MINOR)
+#define MEMIF_SECRET_SIZE 24
+
/*
* Type definitions
*/
/*
* Type definitions
*/
@@
-85,7
+87,7
@@
typedef struct __attribute__ ((packed))
memif_version_t version;
memif_interface_id_t id;
memif_interface_mode_t mode:8;
memif_version_t version;
memif_interface_id_t id;
memif_interface_mode_t mode:8;
- uint8_t secret[
24
];
+ uint8_t secret[
MEMIF_SECRET_SIZE
];
uint8_t name[32];
} memif_msg_init_t;
uint8_t name[32];
} memif_msg_init_t;