summaryrefslogtreecommitdiffstats
path: root/extras/libmemif/src/socket.c
diff options
context:
space:
mode:
authorJakub Grajciar <jgrajcia@cisco.com>2019-03-04 12:42:19 +0100
committerDamjan Marion <dmarion@me.com>2019-03-04 14:06:37 +0000
commit84b83776d3843b5eaf50dbd40007987d77ad2490 (patch)
tree500b36e05e21179274755178889596a17bcbe5cb /extras/libmemif/src/socket.c
parent608996d2bdaa0846ce490252fb8579b70350391e (diff)
libmemif: Connection request APIs
Add APIs that allow changing reconnect timer and request connection. First connection request is automatically sent once slave interface is created. Change-Id: Ie3558b7b94a780b046755f7f0ac6c3dcf07633e4 Signed-off-by: Jakub Grajciar <jgrajcia@cisco.com>
Diffstat (limited to 'extras/libmemif/src/socket.c')
-rw-r--r--extras/libmemif/src/socket.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/extras/libmemif/src/socket.c b/extras/libmemif/src/socket.c
index e1c3bd4a257..495cef9ad43 100644
--- a/extras/libmemif/src/socket.c
+++ b/extras/libmemif/src/socket.c
@@ -681,7 +681,6 @@ memif_msg_receive (int ifd)
DBG ("recvmsg fd %d", ifd);
size = recvmsg (ifd, &mh, 0);
- DBG ("done");
if (size != sizeof (memif_msg_t))
{
if (size == 0)
@@ -903,8 +902,8 @@ int
memif_read_ready (int fd)
{
int err;
- DBG ("call recv");
+
err = memif_msg_receive (fd);
- DBG ("recv finished");
+
return err;
}