added feature to extract filename from http attachment (#2037)
* added feature to extract filename from http attachment * fixed some issues * added check for filename format * added check for filename format * remove an unnecessary print * changed the size from 952 to 960 * modified some test result files * small changes string size * comment removed and mallocs checked
This commit is contained in:
@@ -1450,6 +1450,7 @@ struct ndpi_flow_struct {
|
||||
char *url, *content_type /* response */, *request_content_type /* e.g. for POST */, *user_agent, *server;
|
||||
char *detected_os; /* Via HTTP/QUIC User-Agent */
|
||||
char *nat_ip; /* Via HTTP X-Forwarded-For */
|
||||
char *filename; /* Via HTTP Content-Disposition */
|
||||
} http;
|
||||
|
||||
ndpi_multimedia_flow_type flow_multimedia_type;
|
||||
@@ -1677,7 +1678,7 @@ struct ndpi_flow_struct {
|
||||
_Static_assert(sizeof(((struct ndpi_flow_struct *)0)->protos) <= 210,
|
||||
"Size of the struct member protocols increased to more than 210 bytes, "
|
||||
"please check if this change is necessary.");
|
||||
_Static_assert(sizeof(struct ndpi_flow_struct) <= 952,
|
||||
_Static_assert(sizeof(struct ndpi_flow_struct) <= 960,
|
||||
"Size of the flow struct increased to more than 952 bytes, "
|
||||
"please check if this change is necessary.");
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user