From 07e8dde671b0cf22842d1fb1cec2ed78f3f7bf0f Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Mon, 18 Feb 2019 20:38:45 +0100 Subject: PCUIF: Use OCT4 for IP address, not uint32_t In TTCN-3, a 4-byte octetstring is the more usual representation for IP addresses, not an integer type. This is also what functions like f_inet_addr() etc. are using as types, and we may want to use them in combination with the PCUIF. Change-Id: Ia08e1bb8a9bfbd5bf5b63922c77bb221ce1a12f5 --- library/PCUIF_Types.ttcn | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'library/PCUIF_Types.ttcn') diff --git a/library/PCUIF_Types.ttcn b/library/PCUIF_Types.ttcn index 89a4c33b..3215c4b6 100644 --- a/library/PCUIF_Types.ttcn +++ b/library/PCUIF_Types.ttcn @@ -164,7 +164,7 @@ type record PCUIF_info_ind { record length(2) of uint16_t nsvci, record length(2) of uint16_t local_pprt, record length(2) of uint16_t remote_port, - record length(2) of uint32_t remote_ip + record length(2) of OCT4 remote_ip } with { variant "" } type record PCUIF_act_req { @@ -646,7 +646,7 @@ template (value) PCUIF_Message ts_PCUIF_INFO_IND(template (value) uint8_t bts_nr template (value) uint16_t bvci, template (value) uint16_t local_port, template (value) uint16_t remote_port, - template (value) uint32_t remote_ip, + template (value) OCT4 remote_ip, template (value) PCUIF_Flags flags := c_PCUIF_Flags_default, template (value) uint16_t mcc := 262, template (value) uint16_t mnc := 42, @@ -693,7 +693,7 @@ template (value) PCUIF_Message ts_PCUIF_INFO_IND(template (value) uint8_t bts_nr nsvci := { nsvci, 0 }, local_pprt := { local_port, 0 }, remote_port := { remote_port, 0 }, - remote_ip := { remote_ip , 0 } + remote_ip := { remote_ip , '00000000'O } } } } -- cgit v1.2.3