Fix compilation (#2011)
This commit is contained in:
@@ -1675,8 +1675,8 @@ struct ndpi_flow_struct {
|
|||||||
_Static_assert(sizeof(((struct ndpi_flow_struct *)0)->protos) <= 210,
|
_Static_assert(sizeof(((struct ndpi_flow_struct *)0)->protos) <= 210,
|
||||||
"Size of the struct member protocols increased to more than 210 bytes, "
|
"Size of the struct member protocols increased to more than 210 bytes, "
|
||||||
"please check if this change is necessary.");
|
"please check if this change is necessary.");
|
||||||
_Static_assert(sizeof(struct ndpi_flow_struct) <= 944,
|
_Static_assert(sizeof(struct ndpi_flow_struct) <= 952,
|
||||||
"Size of the flow struct increased to more than 944 bytes, "
|
"Size of the flow struct increased to more than 952 bytes, "
|
||||||
"please check if this change is necessary.");
|
"please check if this change is necessary.");
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
+3
-5
@@ -6160,11 +6160,9 @@ static void ndpi_reconcile_protocols(struct ndpi_detection_module_struct *ndpi_s
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(ret->app_protocol == NDPI_PROTOCOL_SKYPE_TEAMS_CALL) {
|
if(ret->app_protocol == NDPI_PROTOCOL_SKYPE_TEAMS_CALL) {
|
||||||
struct ndpi_packet_struct *packet = &ndpi_str->packet;
|
if(flow->l4_proto == IPPROTO_UDP) {
|
||||||
|
u_int16_t sport = ntohs(flow->c_port);
|
||||||
if((packet != NULL) && (packet->udp != NULL)) {
|
u_int16_t dport = ntohs(flow->s_port);
|
||||||
u_int16_t sport = ntohs(packet->udp->source);
|
|
||||||
u_int16_t dport = ntohs(packet->udp->dest);
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
https://extremeportal.force.com/ExtrArticleDetail?an=000101782
|
https://extremeportal.force.com/ExtrArticleDetail?an=000101782
|
||||||
|
|||||||
Reference in New Issue
Block a user