aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/include
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2009-11-18 22:11:28 +0100
committerHolger Hans Peter Freyther <zecke@selfish.org>2009-11-20 13:09:15 +0100
commit3b9516e0d86b2008ce2b3ccaff25cd804e6bc84c (patch)
tree5fd06eb92913aa8aafbfb556acd2bc510e4fe062 /openbsc/include
parentac96770ad7160323e2445859e128175d28f49295 (diff)
[sccp] Implement sending the Inactivity Test on a connection..
Currently this will send a dummy inactivity test message, there is currently no parsing or API to receive the messages. The sequencing and credit entries are empty as sequencing is currently not used at all. The test is currently limited to send the message and see if the application is crashing or not.
Diffstat (limited to 'openbsc/include')
-rw-r--r--openbsc/include/sccp/sccp.h1
-rw-r--r--openbsc/include/sccp/sccp_types.h11
2 files changed, 12 insertions, 0 deletions
diff --git a/openbsc/include/sccp/sccp.h b/openbsc/include/sccp/sccp.h
index 8ee4b680b..3ad568c0b 100644
--- a/openbsc/include/sccp/sccp.h
+++ b/openbsc/include/sccp/sccp.h
@@ -101,6 +101,7 @@ int sccp_system_incoming(struct msgb *data);
* Send data on an existing connection
*/
int sccp_connection_write(struct sccp_connection *connection, struct msgb *data);
+int sccp_connection_send_it(struct sccp_connection *connection);
int sccp_connection_close(struct sccp_connection *connection, int cause);
int sccp_connection_free(struct sccp_connection *connection);
diff --git a/openbsc/include/sccp/sccp_types.h b/openbsc/include/sccp/sccp_types.h
index c6b11820c..9310a6bf0 100644
--- a/openbsc/include/sccp/sccp_types.h
+++ b/openbsc/include/sccp/sccp_types.h
@@ -380,4 +380,15 @@ struct sccp_data_unitdata {
u_int8_t data[0];
} __attribute__((packed));
+struct sccp_data_it {
+ /* mandantory */
+ u_int8_t type;
+ struct sccp_source_reference destination_local_reference;
+ struct sccp_source_reference source_local_reference;
+ u_int8_t proto_class;
+
+ u_int8_t sequencing[2];
+ u_int8_t credit;
+} __attribute__((packed));
+
#endif