Skip to content

Commit

Permalink
Document mode bitfield
Browse files Browse the repository at this point in the history
  • Loading branch information
bonsaiviking committed Jan 14, 2020
1 parent c4d70b3 commit 70076fe
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions Common/Packet32.h
Original file line number Diff line number Diff line change
Expand Up @@ -111,12 +111,18 @@ typedef struct _AirpcapHandle* PAirpcapHandle;
// Libpcap/wpcap recognizes this macro and knows Npcap Packet API is provided for compilation.
#define HAVE_NPCAP_PACKET_API

// Working modes
// Working modes, a bitfield
// 0b00000000
// | ||_ STAT or CAPT
// | |__ MON (TME extensions, not supported)
// | UNUSED
// | UNUSED
// |_____ DUMP (not supported)
#define PACKET_MODE_CAPT 0x0 ///< Capture mode
#define PACKET_MODE_STAT 0x1 ///< Statistical mode
#define PACKET_MODE_MON 0x2 ///< Monitoring mode
#define PACKET_MODE_DUMP 0x10 ///< Dump mode
#define PACKET_MODE_STAT_DUMP MODE_DUMP | MODE_STAT ///< Statistical dump Mode
#define PACKET_MODE_STAT_DUMP PACKET_MODE_DUMP | PACKET_MODE_STAT ///< Statistical dump Mode


/// Alignment macro. Defines the alignment size.
Expand Down

0 comments on commit 70076fe

Please sign in to comment.