aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/memif/socket.c
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2017-06-16 22:06:00 +0200
committerFlorin Coras <florin.coras@gmail.com>2017-06-19 19:09:50 +0000
commit45ca2c7a9c0835e1b5d5641ca230f720b49e8cf4 (patch)
treeeff8c6f1f710f7f051b8b1b97da8ca1947b3fa0e /src/plugins/memif/socket.c
parentf03a59ab008908f98fd7d1b187a8c0fb78b01add (diff)
memif: add ip mode
In IP mode memif interface is L3 point-to-point interfaces and we don't pass l2 header. There is no l2 header rewrite operation and received packets are sent straight to ip4-input / ip6-input nodes. Change-Id: I4177f3fce3004da7ecf14d235006ae053fcf3f09 Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/plugins/memif/socket.c')
-rw-r--r--src/plugins/memif/socket.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/memif/socket.c b/src/plugins/memif/socket.c
index d1a96db361e..a3c8d544b7d 100644
--- a/src/plugins/memif/socket.c
+++ b/src/plugins/memif/socket.c
@@ -132,6 +132,7 @@ memif_msg_enq_init (memif_if_t * mif)
e->fd = -1;
i->version = MEMIF_VERSION;
i->id = mif->id;
+ i->mode = mif->mode;
s = format (0, "VPP %s%c", VPP_BUILD_VER, 0);
strncpy ((char *) i->name, (char *) s, sizeof (i->name));
if (mif->secret)