Browse Source

ntk-console-server: Show basic internet connectivity

Alexander von Gluck IV 10 years ago
parent
commit
39bf5ab020
1 changed files with 4 additions and 1 deletions
  1. 4
    1
      src/ntk-console-server.c

+ 4
- 1
src/ntk-console-server.c View File

@@ -123,7 +123,10 @@ request_processing(int session_fd, cmd_packet_t packet)
123 123
 			snprintf(buffer, maxBuffer, "current interface count: %d", me.cur_ifs_n);
124 124
 			break;
125 125
 		case COMMAND_INETCONN:
126
-			//send_response(session_fd, (char)me.inet_connected);
126
+			if (me.inet_connected)
127
+				snprintf(buffer, maxBuffer, "internet connectivity: true");
128
+			else
129
+				snprintf(buffer, maxBuffer, "internet connectivity: false");
127 130
 			break;
128 131
 		case COMMAND_CURQSPNID:
129 132
 			//send_response(session_fd, (char)me.cur_qspn_id);

Loading…
Cancel
Save