From 9b988826cdb21b3bb88108117bde92a9da5bb71a Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Mon, 13 Feb 2017 03:43:50 +0100 Subject: sccp_types.h: Add 'struct sccp_data_unitdata_service' We didn't have as struct for UDTS messages so far, let's change that. Change-Id: I9cbd3980fd95d5af6f0fc807ede34aa6b0f64ea7 --- include/sccp/sccp_types.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'include') diff --git a/include/sccp/sccp_types.h b/include/sccp/sccp_types.h index 986de0d..e1c6612 100644 --- a/include/sccp/sccp_types.h +++ b/include/sccp/sccp_types.h @@ -400,6 +400,26 @@ struct sccp_data_unitdata { uint8_t data[0]; } __attribute__((packed)); +struct sccp_data_unitdata_service { + /* mandantory */ + uint8_t type; + uint8_t return_cause; + + + /* variable */ + uint8_t variable_called; + uint8_t variable_calling; + uint8_t variable_data; + +#if VARIABLE + called party address + calling party address +#endif + + uint8_t data[0]; +} __attribute__((packed)); + + struct sccp_data_it { /* mandantory */ uint8_t type; -- cgit v1.2.3