Commit c626d88f authored by bol-van's avatar bol-van
Browse files

nfqws: minor changes

parent c91ddf4a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1513,7 +1513,6 @@ static uint8_t dpi_desync_tcp_packet_play(bool replay, size_t reasm_offset, uint
			DLOG("discovered hostname\n");
			if (ctrack_replay)
			{
				ctrack_replay->hostname_discovered=true;
				free(ctrack_replay->hostname);
				ctrack_replay->hostname=strdup(host);
				if (!ctrack_replay->hostname)
@@ -1522,6 +1521,7 @@ static uint8_t dpi_desync_tcp_packet_play(bool replay, size_t reasm_offset, uint
					reasm_orig_cancel(ctrack);
					goto send_orig;
				}
				ctrack_replay->hostname_discovered=true;
				if (!ipcache_put_hostname(dis->ip ? &dis->ip->ip_dst : NULL,dis->ip6 ? &dis->ip6->ip6_dst : NULL , host))
				{
					reasm_orig_cancel(ctrack);
+1 −1
Original line number Diff line number Diff line
@@ -1417,7 +1417,7 @@ static void exithelp(void)
		" --bind-fix6\t\t\t\t\t; apply outgoing interface selection fix for generated ipv6 packets\n"
#endif
		" --ctrack-timeouts=S:E:F[:U]\t\t\t; internal conntrack timeouts for TCP SYN, ESTABLISHED, FIN stages, UDP timeout. default %u:%u:%u:%u\n"
		" --ipcache-lifetime=<int>\t\t\t; time in seconds to keep cached hop count and domain name (default %u)\n"
		" --ipcache-lifetime=<int>\t\t\t; time in seconds to keep cached hop count and domain name (default %u). 0 = no expiration\n"
		" --ipcache-hostname=[0|1]\t\t\t; 1 or no argument enables ip->hostname caching\n"
#ifdef __CYGWIN__
		"\nWINDIVERT FILTER:\n"
+1 −0
Original line number Diff line number Diff line
@@ -3,6 +3,7 @@
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <arpa/inet.h>

#define DESTROY_STR_POOL(etype, ppool) \
	etype *elem, *tmp; \