summaryrefslogtreecommitdiffstats
path: root/dund
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2005-08-07 06:22:38 +0000
committerMarcel Holtmann <marcel@holtmann.org>2005-08-07 06:22:38 +0000
commit76823d4777869743af04038d82705cd7249657b8 (patch)
tree29f432461e807792a267664ce1023da66c0181cb /dund
parentddefb55b4fec8598ce8ec0bc78e8321030269f59 (diff)
Use device specific service record register function
Diffstat (limited to 'dund')
-rw-r--r--dund/dund.h2
-rw-r--r--dund/main.c2
-rw-r--r--dund/sdp.c4
3 files changed, 4 insertions, 4 deletions
diff --git a/dund/dund.h b/dund/dund.h
index 92626310..97c54174 100644
--- a/dund/dund.h
+++ b/dund/dund.h
@@ -45,6 +45,6 @@ int dun_kill_all_connections(void);
int dun_open_connection(int sk, char *pppd, char **pppd_opts, int wait);
/* SDP functions */
-int dun_sdp_register(uint8_t channel, int mrouter);
+int dun_sdp_register(bdaddr_t *device, uint8_t channel, int mrouter);
void dun_sdp_unregister(void);
int dun_sdp_search(bdaddr_t *src, bdaddr_t *dst, int *channel, int mrouter);
diff --git a/dund/main.c b/dund/main.c
index ca841aeb..b00ccab7 100644
--- a/dund/main.c
+++ b/dund/main.c
@@ -122,7 +122,7 @@ static int do_listen(void)
channel = DUN_DEFAULT_CHANNEL;
if (use_sdp)
- dun_sdp_register(channel, mrouter);
+ dun_sdp_register(&src_addr, channel, mrouter);
if (mrouter)
syslog(LOG_INFO, "Waiting for mRouter callback on channel %d", channel);
diff --git a/dund/sdp.c b/dund/sdp.c
index 45060e81..16ef09f4 100644
--- a/dund/sdp.c
+++ b/dund/sdp.c
@@ -56,7 +56,7 @@ void dun_sdp_unregister(void)
sdp_close(session);
}
-int dun_sdp_register(uint8_t channel, int mrouter)
+int dun_sdp_register(bdaddr_t *device, uint8_t channel, int mrouter)
{
sdp_list_t *svclass, *pfseq, *apseq, *root, *aproto;
uuid_t root_uuid, l2cap, rfcomm, dun;
@@ -104,7 +104,7 @@ int dun_sdp_register(uint8_t channel, int mrouter)
sdp_set_info_attr(record, mrouter ? "mRouter" : "LAN Access Point", NULL, NULL);
- status = sdp_record_register(session, record, 0);
+ status = sdp_device_record_register(session, device, record, 0);
if (status) {
syslog(LOG_ERR, "SDP registration failed.");
sdp_record_free(record); record = NULL;