42 #define TX_OPTS_HOPLIMIT_OFFSET 2
53 #define APDU_MAX_SIZE 102
57 typedef struct __attribute__ ((__packed__))
69 #define FRAME_DSAP_DATA_TX_REQ_HEADER_SIZE \
70 (sizeof(dsap_data_tx_req_t) - APDU_MAX_SIZE)
74 typedef struct __attribute__ ((__packed__))
87 #define FRAME_DSAP_DATA_TX_TT_REQ_HEADER_SIZE \
88 (sizeof(dsap_data_tx_tt_req_t) - APDU_MAX_SIZE)
90 typedef struct __attribute__ ((__packed__))
106 #define FRAME_DSAP_DATA_TX_FRAG_REQ_HEADER_SIZE \
107 (sizeof(dsap_data_tx_frag_req_t) - APDU_MAX_SIZE)
113 #define RX_IND_INFO_QOS_MASK 0x3
114 #define RX_IND_INFO_QOS_OFFSET 0
116 #define RX_IND_INFO_HOPCOUNT_MASK 0xfc
117 #define RX_IND_INFO_HOPCOUNT_OFFSET 2
118 #define RX_IND_INFO_MAX_HOPCOUNT \
119 (RX_IND_INFO_HOPCOUNT_MASK >> RX_IND_INFO_HOPCOUNT_OFFSET)
124 #define DSAP_FRAG_LENGTH_MASK 0x0fff
127 #define DSAP_FRAG_LAST_FLAG_MASK 0x8000
129 typedef struct __attribute__ ((__packed__))
143 #define FRAME_DSAP_DATA_RX_IND_HEADER_SIZE \
144 (sizeof(dsap_data_rx_ind_t) - APDU_MAX_SIZE)
149 typedef struct __attribute__ ((__packed__))
166 #define FRAME_DSAP_DATA_RX_FRAG_IND_HEADER_SIZE \
167 (sizeof(dsap_data_rx_frag_ind_t) - APDU_MAX_SIZE)
171 typedef struct __attribute__ ((__packed__))
184 typedef struct __attribute__ ((__packed__))