Flow* flow = p->flow;
- if ( flow && flow->full_inspection() )
+ if ( !flow )
+ ::execute(p, fp->network.vec, fp->network.num);
+
+ else if ( flow->full_inspection() )
full_inspection(fp, p);
::execute(p, fp->probe.vec, fp->probe.num);
namespace arp
{
+
struct ARPHdr
{
uint16_t ar_hrd; /* format of hardware address */
};
uint8_t arp_tha[6]; /* target hardware address */
uint8_t arp_tpa[4]; /* target protocol address */
-};
+} __attribute__((__packed__));
constexpr uint16_t ETHERARP_HDR_LEN = 28; /* sizeof EtherARP != 28 */
+
} // namespace arp
#ifndef ARPOP_REQUEST