Bladeren bron

ntk-console-server: Show basic internet connectivity

Alexander von Gluck IV 10 jaren geleden
bovenliggende
commit
39bf5ab020
1 gewijzigde bestanden met toevoegingen van 4 en 1 verwijderingen
  1. 4
    1
      src/ntk-console-server.c

+ 4
- 1
src/ntk-console-server.c Bestand weergeven

@@ -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…
Annuleren
Opslaan