summaryrefslogtreecommitdiffstats
path: root/include/lce.h
diff options
context:
space:
mode:
authorPatrick McHardy <kaber@trash.net>2010-08-16 02:07:26 +0200
committerPatrick McHardy <kaber@trash.net>2010-08-16 02:07:26 +0200
commit3d98bc7b6e09e244b48af30134b9503589fbdc4d (patch)
tree18f372b6fddbb0007dbe2f65f2aa1d5b54b587a4 /include/lce.h
parent5a346fac3307534bb2119e9d297efc248f0c0ce6 (diff)
lce: set the IPUI for incoming data links as soon as it is known
Set the IPUI of a data link as soon a request containing the portable_identity is received. Additionally verify that the identity matches the IPUI if already set. Signed-off-by: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'include/lce.h')
-rw-r--r--include/lce.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/lce.h b/include/lce.h
index 92141f2..ae61adf 100644
--- a/include/lce.h
+++ b/include/lce.h
@@ -73,6 +73,9 @@ extern int dect_ddl_transaction_open(struct dect_handle *dh,
enum dect_pds pd);
extern struct dect_data_link *dect_ddl_connect(struct dect_handle *dh,
const struct dect_ipui *ipui);
+extern int dect_ddl_set_ipui(struct dect_handle *dh, struct dect_data_link *ddl,
+ const struct dect_ipui *ipui);
+
extern int dect_transaction_open(struct dect_handle *dh,
struct dect_transaction *ta,
const struct dect_ipui *ipui,
@@ -155,6 +158,10 @@ enum dect_data_link_states {
};
#define DECT_DATA_LINK_STATE_MAX (__DECT_DATA_LINK_STATE_MAX - 1)
+enum dect_data_link_flags {
+ DECT_DATA_LINK_IPUI_VALID = 0x1,
+};
+
/**
* struct dect_data_link
*
@@ -180,6 +187,7 @@ struct dect_data_link {
struct dect_timer *release_timer;
struct dect_timer *page_timer;
uint8_t page_count;
+ uint8_t flags;
struct list_head msg_queue;
struct list_head transactions;
};