SashaXser
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
2 deletions
-
src/goodbyedpi.c
|
@ -213,7 +213,7 @@ static void add_maxpayloadsize_str(unsigned short maxpayload) { |
|
|
const char *maxpayloadsize_str = "and (tcp.PayloadLength ? tcp.PayloadLength < %hu or tcp.Payload32[0] == 0x47455420 or tcp.Payload32[0] == 0x504F5354 : true)"; |
|
|
const char *maxpayloadsize_str = "and (tcp.PayloadLength ? tcp.PayloadLength < %hu or tcp.Payload32[0] == 0x47455420 or tcp.Payload32[0] == 0x504F5354 : true)"; |
|
|
char *addfilter; |
|
|
char *addfilter; |
|
|
|
|
|
|
|
|
asprintf(&addfilter, "%s", maxpayloadsize_str, maxpayload); |
|
|
asprintf(&addfilter, maxpayloadsize_str, maxpayload); |
|
|
|
|
|
|
|
|
char *newstr = repl_str(filter_string, MAXPAYLOADSIZE_TEMPLATE, addfilter); |
|
|
char *newstr = repl_str(filter_string, MAXPAYLOADSIZE_TEMPLATE, addfilter); |
|
|
free(filter_string); |
|
|
free(filter_string); |
|
@ -222,7 +222,6 @@ static void add_maxpayloadsize_str(unsigned short maxpayload) { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
static void finalize_filter_strings() { |
|
|
static void finalize_filter_strings() { |
|
|
char *newstr = repl_str(filter_string, IPID_TEMPLATE, ""); |
|
|
char *newstr = repl_str(filter_string, IPID_TEMPLATE, ""); |
|
|
free(filter_string); |
|
|
free(filter_string); |
|
|