diff --git a/app/src/main/jni/netguard/netguard.c b/app/src/main/jni/netguard/netguard.c index a6d5c3df..7e919ec4 100644 --- a/app/src/main/jni/netguard/netguard.c +++ b/app/src/main/jni/netguard/netguard.c @@ -731,7 +731,7 @@ void handle_tcp(const struct arguments *args, const uint8_t *buffer, uint16_t le dest, ntohs(tcphdr->dest), datalen); // Open socket - syn->socket = open_socket(syn, args); + syn->socket = open_tcp(syn, args); if (syn->socket < 0) { syn->state = TCP_TIME_WAIT; // Remote might retry @@ -946,7 +946,7 @@ void handle_tcp(const struct arguments *args, const uint8_t *buffer, uint16_t le } } -int open_socket(const struct session *cur, const struct arguments *args) { +int open_tcp(const struct session *cur, const struct arguments *args) { int sock = -1; // Build target address diff --git a/app/src/main/jni/netguard/netguard.h b/app/src/main/jni/netguard/netguard.h index a4ea7f3f..54de0147 100644 --- a/app/src/main/jni/netguard/netguard.h +++ b/app/src/main/jni/netguard/netguard.h @@ -77,7 +77,7 @@ void handle_ip(const struct arguments *args, const uint8_t *buffer, const uint16 void handle_tcp(const struct arguments *args, const uint8_t *buffer, uint16_t length, int uid); -int open_socket(const struct session *cur, const struct arguments *args); +int open_tcp(const struct session *cur, const struct arguments *args); int get_local_port(const int sock);