aboutsummaryrefslogtreecommitdiff
path: root/lib/libsdp
diff options
context:
space:
mode:
authorMaksim Yevmenkin <emax@FreeBSD.org>2008-03-18 18:21:39 +0000
committerMaksim Yevmenkin <emax@FreeBSD.org>2008-03-18 18:21:39 +0000
commit13040bc96bfe3c7d7440d5ab43b4e52e72ab4908 (patch)
tree60c2ab517dbbd493931f401e125b3910f9abcba2 /lib/libsdp
parentbd2327cd5eccc1066100581dda31650fd6b7e987 (diff)
downloadsrc-13040bc96bfe3c7d7440d5ab43b4e52e72ab4908.tar.gz
src-13040bc96bfe3c7d7440d5ab43b4e52e72ab4908.zip
Add PSM and Load Factor SDP parameters to the BNEP based profiles
(NAP, GN and PANU). No reason to not to support them. Separate SDP parameters data structures for the BNEP based profiles. Generalize Service Availability SDP parameter creation. Requested by: Iain Hibbert < plunky at rya-online dot net > MFC after: 3 days
Notes
Notes: svn path=/head/; revision=177358
Diffstat (limited to 'lib/libsdp')
-rw-r--r--lib/libsdp/sdp.h33
1 files changed, 24 insertions, 9 deletions
diff --git a/lib/libsdp/sdp.h b/lib/libsdp/sdp.h
index 8d78ae889912..8ce266c0992b 100644
--- a/lib/libsdp/sdp.h
+++ b/lib/libsdp/sdp.h
@@ -649,20 +649,35 @@ typedef struct sdp_sp_profile * sdp_sp_profile_p;
struct sdp_nap_profile
{
- uint16_t security_description; /* HBO: NAP/GN */
- uint16_t net_access_type; /* HBO: NAP */
- uint32_t max_net_access_rate; /* HBO: NAP */
+ uint8_t reserved;
+ uint8_t load_factor;
+ uint16_t psm; /* HBO */
+ uint16_t security_description; /* HBO */
+ uint16_t net_access_type; /* HBO */
+ uint32_t max_net_access_rate; /* HBO */
};
typedef struct sdp_nap_profile sdp_nap_profile_t;
typedef struct sdp_nap_profile * sdp_nap_profile_p;
-/* Reuse struct sdp_nap_profile for GN */
-typedef struct sdp_nap_profile sdp_gn_profile_t;
-typedef struct sdp_nap_profile * sdp_gn_profile_p;
+struct sdp_gn_profile
+{
+ uint8_t reserved;
+ uint8_t load_factor;
+ uint16_t psm; /* HBO */
+ uint16_t security_description; /* HBO */
+ uint16_t reserved2;
+};
+typedef struct sdp_gn_profile sdp_gn_profile_t;
+typedef struct sdp_gn_profile * sdp_gn_profile_p;
-/* Reuse struct sdp_nap_profile for PANU */
-typedef struct sdp_nap_profile sdp_panu_profile_t;
-typedef struct sdp_nap_profile * sdp_panu_profile_p;
+struct sdp_panu_profile
+{
+ uint8_t reserved;
+ uint8_t load_factor;
+ uint16_t psm; /* HBO */
+};
+typedef struct sdp_panu_profile sdp_panu_profile_t;
+typedef struct sdp_panu_profile * sdp_panu_profile_p;
int32_t sdp_register_service (void *xss, uint16_t uuid,
bdaddr_p const bdaddr, uint8_t const *data,