Reduce size of event bit array in the packet structure.

remotes/origin/master-1.0.x
Victor Julien 16 years ago
parent c26434fef1
commit fdd0f3939e

@ -124,6 +124,9 @@ enum {
/* RAW EVENTS */
IPRAW_INVALID_IPV, /**< invalid ip version in ip raw */
/* should always be last! */
DECODE_EVENT_MAX,
};
#endif /* __DECODE_EVENTS_H__ */

@ -319,7 +319,7 @@ typedef struct Packet_
uint16_t payload_len;
/* decoder events: review how many events we have */
uint8_t events[65535 / 8];
uint8_t events[(DECODE_EVENT_MAX / 8) + 1];
PacketAlerts alerts;

Loading…
Cancel
Save