summaryrefslogtreecommitdiffstats
path: root/library/PCUIF_Types.ttcn
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2019-02-18 20:38:45 +0100
committerHarald Welte <laforge@gnumonks.org>2019-02-18 20:42:16 +0100
commit07e8dde671b0cf22842d1fb1cec2ed78f3f7bf0f (patch)
treecd4ef86570a6a26ad7837389897acc5a06fd7274 /library/PCUIF_Types.ttcn
parente1fd916b2110e0282f3d9320958c27876b7d91e1 (diff)
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
Diffstat (limited to 'library/PCUIF_Types.ttcn')
-rw-r--r--library/PCUIF_Types.ttcn6
1 files changed, 3 insertions, 3 deletions
diff --git a/library/PCUIF_Types.ttcn b/library/PCUIF_Types.ttcn
index 89a4c33..3215c4b 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 }
}
}
}