summaryrefslogtreecommitdiff
path: root/src/tools
diff options
context:
space:
mode:
authorSander Vrijders <[email protected]>2016-10-06 16:07:39 +0200
committerSander Vrijders <[email protected]>2016-10-06 16:07:39 +0200
commita4672940dc1effa40d2debf046c98708a831e928 (patch)
tree7f977513129b4a43eac102af4abe6457cb2632c9 /src/tools
parentf266224ff38930cff1c1765313f0da7b93539553 (diff)
parent78d143e1487ef6212bda84702307c236021afcc7 (diff)
downloadouroboros-a4672940dc1effa40d2debf046c98708a831e928.tar.gz
ouroboros-a4672940dc1effa40d2debf046c98708a831e928.zip
Merged in dstaesse/ouroboros/be-debug-llc (pull request #255)
ipcpd: Filter traffic on shim-eth-llc
Diffstat (limited to 'src/tools')
-rw-r--r--src/tools/oping/oping_client.c1
-rw-r--r--src/tools/oping/oping_server.c3
2 files changed, 3 insertions, 1 deletions
diff --git a/src/tools/oping/oping_client.c b/src/tools/oping/oping_client.c
index 47b40118..8b4e0fc2 100644
--- a/src/tools/oping/oping_client.c
+++ b/src/tools/oping/oping_client.c
@@ -138,6 +138,7 @@ void * writer(void * o)
while (client.sent < client.count) {
nanosleep(&wait, NULL);
+ msg->type = htonl(ECHO_REQUEST);
msg->id = htonl(client.sent);
if (flow_write(*fdp, buf, client.size) == -1) {
printf("Failed to send SDU.\n");
diff --git a/src/tools/oping/oping_server.c b/src/tools/oping/oping_server.c
index 9c7b1be7..0ba47174 100644
--- a/src/tools/oping/oping_server.c
+++ b/src/tools/oping/oping_server.c
@@ -83,7 +83,8 @@ void * server_thread(void *o)
continue;
if (ntohl(msg->type) != ECHO_REQUEST) {
- printf("Invalid message received.\n");
+ printf("Invalid message on fd %d: type %d, len = %d.\n",
+ fd, ntohl(msg->type), msg_len);
continue;
}