summaryrefslogtreecommitdiffstats
path: root/src/phFriNfc_Llcp.h
diff options
context:
space:
mode:
authorSylvain Fonteneau <sylvain.fonteneau@trusted-logic.com>2011-05-23 13:41:52 +0200
committerMartijn Coenen <maco@google.com>2011-07-04 10:33:27 +0200
commit3a9d18ff42ce17d62e1968ed93358d036989b670 (patch)
treec74ec57df1a8875d7f52d5d5add0d25c34f46cfd /src/phFriNfc_Llcp.h
parenta74fcf0b7a509cb70b69c6362b704d8014edcab1 (diff)
downloadexternal_libnfc-nxp-3a9d18ff42ce17d62e1968ed93358d036989b670.zip
external_libnfc-nxp-3a9d18ff42ce17d62e1968ed93358d036989b670.tar.gz
external_libnfc-nxp-3a9d18ff42ce17d62e1968ed93358d036989b670.tar.bz2
Check SAP range in LLCP sockets.
LLCP specification mentions that SAP numbers are allocated as follows: - from 0x00 to 0x0F, used for well-known services - from 0x10 to 0x1F, used for SDP advertised services - from 0x20 to 0x3F, used for *non* SDP advertised services This patch enforce this restriction. Change-Id: Idd8ab4da4cfa9ad9e2dbf7eddc3c66900bcf9ff8
Diffstat (limited to 'src/phFriNfc_Llcp.h')
-rw-r--r--src/phFriNfc_Llcp.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/phFriNfc_Llcp.h b/src/phFriNfc_Llcp.h
index a91afa5..287f9f9 100644
--- a/src/phFriNfc_Llcp.h
+++ b/src/phFriNfc_Llcp.h
@@ -117,6 +117,7 @@ extern char phOsalNfc_DbgTraceBuffer[];
/*@{*/
#define PHFRINFC_LLCP_SAP_LINK 0x00 /**< Link SAP.*/
#define PHFRINFC_LLCP_SAP_SDP 0x01 /**< Service Discovery Protocol SAP.*/
+#define PHFRINFC_LLCP_SAP_WKS_FIRST 0x02 /**< Other Well-Known Services defined by the NFC Forum.*/
#define PHFRINFC_LLCP_SAP_SDP_ADVERTISED_FIRST 0x10 /**< First SAP number from SDP-avertised SAP range.*/
#define PHFRINFC_LLCP_SAP_SDP_UNADVERTISED_FIRST 0x20 /**< First SAP number from SDP-unavertised SAP range.*/
#define PHFRINFC_LLCP_SAP_NUMBER 0x40 /**< Number of possible SAP values (also first invalid value).*/