History

NFC: llcp: Service Name Lookup netlink interface

This adds a netlink interface for service name lookup support. Multiple URIs can be passed nested into the NFC_ATTR_LLC_SDP attribute using the NFC_CMD_LLC_SDREQ netlink command. When the SNL reply is received, a NFC_EVENT_LLC_SDRES event is sent to the user space. URI and SAP tuples are passed back, nested into NFC_ATTR_LLC_SDP attribute.

Thierry Escande committed 13 years ago

Commit d9b8d8e1 parent e0ae7ba6 files · +314 −0Browse files

Showing the changes to include/uapi/linux (1 of 6 files). Show all

Unified · Split

include/uapi/linux/nfc.h+12−0
@@ -90,6 +90,8 @@ enum nfc_commands { · 89 unmodified lines
9090 NFC_CMD_LLC_SET_PARAMS,
9191 NFC_CMD_ENABLE_SE,
9292 NFC_CMD_DISABLE_SE,
93+ NFC_CMD_LLC_SDREQ,
94+ NFC_EVENT_LLC_SDRES,
9395 /* private: internal use only */
9496 __NFC_CMD_AFTER_LAST
9597 };
@@ -140,11 +142,21 @@ enum nfc_attrs { · 44 unmodified lines
140142 NFC_ATTR_LLC_PARAM_RW,
141143 NFC_ATTR_LLC_PARAM_MIUX,
142144 NFC_ATTR_SE,
145+ NFC_ATTR_LLC_SDP,
143146 /* private: internal use only */
144147 __NFC_ATTR_AFTER_LAST
145148 };
146149 #define NFC_ATTR_MAX (__NFC_ATTR_AFTER_LAST - 1)
147150
151+enum nfc_sdp_attr {
152+ NFC_SDP_ATTR_UNSPEC,
153+ NFC_SDP_ATTR_URI,
154+ NFC_SDP_ATTR_SAP,
155+/* private: internal use only */
156+ __NFC_SDP_ATTR_AFTER_LAST
157+};
158+#define NFC_SDP_ATTR_MAX (__NFC_SDP_ATTR_AFTER_LAST - 1)
159+
148160 #define NFC_DEVICE_NAME_MAXSIZE 8
149161 #define NFC_NFCID1_MAXSIZE 10
150162 #define NFC_SENSB_RES_MAXSIZE 12

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t