From 39bf5ab0208165f048773fef5c67e3462a8473bb Mon Sep 17 00:00:00 2001 From: Alexander von Gluck IV Date: Tue, 16 Sep 2014 18:59:03 -0500 Subject: [PATCH] ntk-console-server: Show basic internet connectivity --- src/ntk-console-server.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/ntk-console-server.c b/src/ntk-console-server.c index 693396d..2c65a8e 100644 --- a/src/ntk-console-server.c +++ b/src/ntk-console-server.c @@ -123,7 +123,10 @@ request_processing(int session_fd, cmd_packet_t packet) snprintf(buffer, maxBuffer, "current interface count: %d", me.cur_ifs_n); break; case COMMAND_INETCONN: - //send_response(session_fd, (char)me.inet_connected); + if (me.inet_connected) + snprintf(buffer, maxBuffer, "internet connectivity: true"); + else + snprintf(buffer, maxBuffer, "internet connectivity: false"); break; case COMMAND_CURQSPNID: //send_response(session_fd, (char)me.cur_qspn_id);