Squashed commit of the following:
commit
86d3a6674f7dc15467d9cc4513226d11b2fe3d25
Author: Amarnath Nayak <amarnaya@cisco.com>
Date: Fri Jun 4 13:16:52 2021 -0400
ips_options: fix intrusion alerts generation for tcp rpc PORTMAP traffic when rpc_decode is bound to the flow
{
const uint8_t* packet_data = p->data;
- if ( p->is_tcp() )
+ if ( p->is_tcp() || p->is_data() )
packet_data += 4; // skip unused frag header
packet_data += 4; // skip unused xid
// check if the packet type and size are valid
bool RpcOption::is_valid(Packet* p)
{
- if ( p->is_tcp() )
+ if ( p->is_tcp() || p->is_data() )
return p->dsize >= 28;
else if ( p->is_udp() )