Update goodbyedpi.c
This commit is contained in:
parent
6d9132c339
commit
23ed52c9f6
|
|
@ -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);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue