libSNAP v1.0.0
Open source C/C++ library for the Scaleable Node Address Protocol (SNAP)
snap_header_t Struct Reference

Bit field that stores every field of the frame header. It defines the format of the frame. More...

#include <snap.h>

Data Fields

unsigned int dab: 2
 DAB (Destination Address Bytes). It can assume any value from snap_hdb2_dab_t.
 
unsigned int sab: 2
 SAB (Source Address Bytes). It can assume any value from snap_hdb2_sab_t.
 
unsigned int pfb: 2
 PFB (Protocol specific Flag Bytes). It can assume any value from snap_hdb2_pfb_t.
 
unsigned int ack: 2
 ACK (ACK/NACK bits). It can assume any value from snap_hdb2_ack_t.
 
unsigned int cmd: 1
 CMD (Command mode bit). It can assume any value from snap_hdb1_cmd_t.
 
unsigned int edm: 3
 EDM (Error Detection Method). It can assume any value from snap_hdb1_edm_t.
 
unsigned int ndb: 4
 NDB (Number of Data Bytes). It can assume any value from snap_hdb1_ndb_t.
 

Detailed Description

Bit field that stores every field of the frame header. It defines the format of the frame.


The documentation for this struct was generated from the following file: