From 79d5a58cd5d5e942e8c4ce217a2aac6b1e3a27d9 Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Fri, 30 Nov 2018 20:37:44 +0100 Subject: [PATCH] use new configuration syntax in loopback example --- etc/loopback.conf | 44 +++++++++++++++++++++++++++++++------------- 1 file changed, 31 insertions(+), 13 deletions(-) diff --git a/etc/loopback.conf b/etc/loopback.conf index f70ac44f3..09c8945dd 100644 --- a/etc/loopback.conf +++ b/etc/loopback.conf @@ -53,32 +53,50 @@ nodes = { node1 = { type = "socket", layer = "udp", - local = "*:12000", # Local ip:port, use '*' for random port - remote = "127.0.0.1:12001", - netem = { - enabled = false, - delay = 1000000, # In micro seconds! - jitter = 300000, - distribution = "normal" + + in = { + address = "*:12000", # Local ip:port, use '*' for random port + } + + out = { + address = "127.0.0.1:12001", + netem = { + enabled = false, + delay = 1000000, # In micro seconds! + jitter = 300000, + distribution = "normal" + } } }, node2 = { type = "socket", layer = "udp", - local = "*:12001", # Local ip:port, use '*' for random port - remote = "127.0.0.1:12002", + in = { + address = "*:12001", # Local ip:port, use '*' for random port + } + out = { + address = "127.0.0.1:12002", + } }, node3 = { type = "socket", layer = "udp", - local = "*:12002", # Local ip:port, use '*' for random port - remote = "127.0.0.1:12000", + in = { + address = "*:12002", # Local ip:port, use '*' for random port + } + out = { + address = "127.0.0.1:12000", + } }, loopback = { type = "socket", layer = "udp", - local = "*:12003", # Local ip:port, use '*' for random port - remote = "127.0.0.1:12003", + in = { + address = "127.0.0.1:12003", # Local ip:port, use '*' for random port + } + out = { + address = "127.0.0.1:12003", + } } };