Go to the documentation of this file.
27 #define LLCP_DEFAULT_LTO 100
28 #define LLCP_DEFAULT_RW 1
29 #define LLCP_DEFAULT_MIU 128
31 #define LLCP_MAX_LTO 0xff
32 #define LLCP_MAX_RW 15
33 #define LLCP_MAX_MIUX 0x7ff
35 #define LLCP_WKS_NUM_SAP 16
36 #define LLCP_SDP_NUM_SAP 16
37 #define LLCP_LOCAL_NUM_SAP 32
38 #define LLCP_LOCAL_SAP_OFFSET (LLCP_WKS_NUM_SAP + LLCP_SDP_NUM_SAP)
39 #define LLCP_MAX_SAP (LLCP_WKS_NUM_SAP + LLCP_SDP_NUM_SAP + LLCP_LOCAL_NUM_SAP)
40 #define LLCP_SDP_UNBOUND (LLCP_MAX_SAP + 1)
127 #define nfc_llcp_sock(sk) ((struct nfc_llcp_sock *) (sk))
128 #define nfc_llcp_dev(sk) (nfc_llcp_sock((sk))->dev)
130 #define LLCP_HEADER_SIZE 2
131 #define LLCP_SEQUENCE_SIZE 1
134 #define LLCP_VERSION_10 0x10
135 #define LLCP_VERSION_11 0x11
138 #define LLCP_PDU_SYMM 0x0
139 #define LLCP_PDU_PAX 0x1
140 #define LLCP_PDU_AGF 0x2
141 #define LLCP_PDU_UI 0x3
142 #define LLCP_PDU_CONNECT 0x4
143 #define LLCP_PDU_DISC 0x5
144 #define LLCP_PDU_CC 0x6
145 #define LLCP_PDU_DM 0x7
146 #define LLCP_PDU_FRMR 0x8
147 #define LLCP_PDU_SNL 0x9
148 #define LLCP_PDU_I 0xc
149 #define LLCP_PDU_RR 0xd
150 #define LLCP_PDU_RNR 0xe
153 #define LLCP_TLV_VERSION 0x1
154 #define LLCP_TLV_MIUX 0x2
155 #define LLCP_TLV_WKS 0x3
156 #define LLCP_TLV_LTO 0x4
157 #define LLCP_TLV_RW 0x5
158 #define LLCP_TLV_SN 0x6
159 #define LLCP_TLV_OPT 0x7
160 #define LLCP_TLV_SDREQ 0x8
161 #define LLCP_TLV_SDRES 0x9
162 #define LLCP_TLV_MAX 0xa
165 #define LLCP_SAP_SDP 0x1
166 #define LLCP_SAP_IP 0x2
167 #define LLCP_SAP_OBEX 0x3
168 #define LLCP_SAP_SNEP 0x4
169 #define LLCP_SAP_MAX 0xff
172 #define LLCP_DM_DISC 0x00
173 #define LLCP_DM_NOCONN 0x01
174 #define LLCP_DM_NOBOUND 0x02
175 #define LLCP_DM_REJ 0x03
200 u8 *tlv_array,
u16 tlv_array_len);
202 u8 *tlv_array,
u16 tlv_array_len);