summaryrefslogtreecommitdiffstats
path: root/extras/libmemif/examples
diff options
context:
space:
mode:
authorMilan Lenco <milan.lenco@pantheon.tech>2018-06-25 10:49:39 +0200
committerTomas Slusny <slusnucky@gmail.com>2018-07-02 11:11:02 +0200
commit7c044e96ae66f2403e4d82005943a0f6d99bb6a7 (patch)
treef73c4c3882f22b878c6538a5ce46e76bc704bbed /extras/libmemif/examples
parent5276b9439d0f902e125a5113bfa4f1b6622aea18 (diff)
Add compatibility with libmemif 2
Change-Id: Iff143c7aeb973b3f8629a7412bb956c1b8f8f81d Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
Diffstat (limited to 'extras/libmemif/examples')
-rw-r--r--extras/libmemif/examples/icmp-responder/icmp-responder.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/extras/libmemif/examples/icmp-responder/icmp-responder.go b/extras/libmemif/examples/icmp-responder/icmp-responder.go
index f9867f7..5e9f2e0 100644
--- a/extras/libmemif/examples/icmp-responder/icmp-responder.go
+++ b/extras/libmemif/examples/icmp-responder/icmp-responder.go
@@ -3,9 +3,10 @@
// and construct packets.
//
// The appropriate VPP configuration for the opposite memif is:
-// vpp$ create memif id 1 socket /tmp/icmp-responder-example slave secret secret
-// vpp$ set int state memif0/1 up
-// vpp$ set int ip address memif0/1 192.168.1.2/24
+// vpp$ create memif socket id 1 filename /tmp/icmp-responder-example
+// vpp$ create interface memif id 1 socket-id 1 slave secret secret no-zero-copy
+// vpp$ set int state memif1/1 up
+// vpp$ set int ip address memif1/1 192.168.1.2/24
//
// To start the example, simply type:
// root$ ./icmp-responder