mirror of https://github.com/M66B/NetGuard.git
Removed to do's
This commit is contained in:
parent
144b1e3a67
commit
aedade8bfe
|
@ -217,8 +217,6 @@ public class Receiver extends BroadcastReceiver {
|
|||
}
|
||||
edit_screen_wifi.apply();
|
||||
edit_screen_other.apply();
|
||||
|
||||
// TODO: delete unused
|
||||
}
|
||||
} else {
|
||||
Log.i(TAG, "Initializing sdk=" + Build.VERSION.SDK_INT);
|
||||
|
|
|
@ -192,7 +192,6 @@ void handle_ip(const struct arguments *args,
|
|||
|
||||
payload = (uint8_t *) (pkt + sizeof(struct ip6_hdr) + off);
|
||||
|
||||
// TODO check length
|
||||
// TODO checksum
|
||||
}
|
||||
else {
|
||||
|
|
|
@ -19,7 +19,6 @@
|
|||
|
||||
#include "netguard.h"
|
||||
|
||||
// TODO TCP fragmentation
|
||||
// It is assumed that no packets will get lost and that packets arrive in order
|
||||
// https://android.googlesource.com/platform/frameworks/base.git/+/master/services/core/jni/com_android_server_connectivity_Vpn.cpp
|
||||
|
||||
|
|
|
@ -133,7 +133,6 @@ void *handle_events(void *a) {
|
|||
report_exit(args, NULL);
|
||||
break;
|
||||
} else {
|
||||
// TODO check if SIGUSR1 is free
|
||||
log_android(ANDROID_LOG_DEBUG,
|
||||
"pselect interrupted tun %d thread %x", args->tun, thread_id);
|
||||
continue;
|
||||
|
|
|
@ -605,7 +605,6 @@ jboolean handle_tcp(const struct arguments *args,
|
|||
|
||||
if (tcphdr->rst /* +ACK */) {
|
||||
// No sequence check
|
||||
// TODO half-duplex close sequence
|
||||
// http://tools.ietf.org/html/rfc1122#page-87
|
||||
log_android(ANDROID_LOG_WARN, "%s received reset", session);
|
||||
cur->state = TCP_CLOSING;
|
||||
|
@ -791,7 +790,6 @@ int open_tcp_socket(const struct arguments *args,
|
|||
int sock;
|
||||
|
||||
// Get TCP socket
|
||||
// TODO socket options?
|
||||
if ((sock = socket(cur->version == 4 ? PF_INET : PF_INET6, SOCK_STREAM, 0)) < 0) {
|
||||
log_android(ANDROID_LOG_ERROR, "socket error %d: %s", errno, strerror(errno));
|
||||
return -1;
|
||||
|
|
Loading…
Reference in New Issue