42 #define TX_OPTS_HOPLIMIT_OFFSET 2
54 typedef struct __attribute__ ((__packed__))
63 uint8_t apdu[APDU_MAX_SIZE];
66 #define FRAME_DSAP_DATA_TX_REQ_HEADER_SIZE \
67 (sizeof(dsap_data_tx_req_t) - APDU_MAX_SIZE)
71 typedef struct __attribute__ ((__packed__))
81 uint8_t apdu[APDU_MAX_SIZE];
84 #define FRAME_DSAP_DATA_TX_TT_REQ_HEADER_SIZE \
85 (sizeof(dsap_data_tx_tt_req_t) - APDU_MAX_SIZE)
87 typedef struct __attribute__ ((__packed__))
100 uint8_t apdu[APDU_MAX_SIZE];
103 #define FRAME_DSAP_DATA_TX_FRAG_REQ_HEADER_SIZE \
104 (sizeof(dsap_data_tx_frag_req_t) - APDU_MAX_SIZE)
110 #define RX_IND_INFO_QOS_MASK 0x3
111 #define RX_IND_INFO_QOS_OFFSET 0
113 #define RX_IND_INFO_HOPCOUNT_MASK 0xfc
114 #define RX_IND_INFO_HOPCOUNT_OFFSET 2
115 #define RX_IND_INFO_MAX_HOPCOUNT \
116 (RX_IND_INFO_HOPCOUNT_MASK >> RX_IND_INFO_HOPCOUNT_OFFSET)
121 #define DSAP_FRAG_LENGTH_MASK 0x0fff
124 #define DSAP_FRAG_LAST_FLAG_MASK 0x8000
126 typedef struct __attribute__ ((__packed__))
137 uint8_t apdu[APDU_MAX_SIZE];
140 #define FRAME_DSAP_DATA_RX_IND_HEADER_SIZE \
141 (sizeof(dsap_data_rx_ind_t) - APDU_MAX_SIZE)
146 typedef struct __attribute__ ((__packed__))
160 uint8_t apdu[APDU_MAX_SIZE];
163 #define FRAME_DSAP_DATA_RX_FRAG_IND_HEADER_SIZE \
164 (sizeof(dsap_data_rx_frag_ind_t) - APDU_MAX_SIZE)
168 typedef struct __attribute__ ((__packed__))
181 typedef struct __attribute__ ((__packed__))