[S] Change in osmo-ttcn3-hacks[master]: ggsn: Fix restriction type on several template definitions
laforge has submitted this change. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/35226?usp=email ) Change subject: ggsn: Fix restriction type on several template definitions .. ggsn: Fix restriction type on several template definitions Change-Id: I47a0c3fbf1b4078c2d8157b148330f7750cc3266 --- M ggsn_tests/GGSN_Tests.ttcn 1 file changed, 26 insertions(+), 17 deletions(-) Approvals: osmith: Looks good to me, approved Jenkins Builder: Verified laforge: Looks good to me, but someone else must approve diff --git a/ggsn_tests/GGSN_Tests.ttcn b/ggsn_tests/GGSN_Tests.ttcn index 48cf725..118f1d5 100644 --- a/ggsn_tests/GGSN_Tests.ttcn +++ b/ggsn_tests/GGSN_Tests.ttcn @@ -819,7 +819,7 @@ const octetstring c_neigh_solicit:= '60203afffe82ff020001ff0287009f96fe8201010288b51f2559'O; /* template for sending an ICMPv4 echo request */ - template PDU_ICMP ts_ICMPv4_ERQ(octetstring data := ''O) := { + template (value) PDU_ICMP ts_ICMPv4_ERQ(octetstring data := ''O) := { echo := { type_field := 8, code := 0, @@ -831,7 +831,7 @@ } /* template for receiving/matching an ICMPv4 echo request */ - template PDU_ICMP tr_ICMPv4_ERQ := { + template (present) PDU_ICMP tr_ICMPv4_ERQ := { echo := { type_field := 8, code := 0, @@ -843,7 +843,7 @@ } /* template for receiving/matching an ICMPv4 echo reply */ - template PDU_ICMP tr_ICMPv4_ERP(template octetstring data := *) := { + template (present) PDU_ICMP tr_ICMPv4_ERP(template octetstring data := *) := { echo_reply := { type_field := 0, code := 0, @@ -855,7 +855,7 @@ } /* template for receiving/matching an ICMPv6 Destination Unreachable */ - template PDU_ICMP tr_ICMPv4_DU := { + template (present) PDU_ICMP tr_ICMPv4_DU := { destination_unreachable := { type_field := 1, code := ?, @@ -866,7 +866,7 @@ } /* template to construct IPv4_packet from input arguments, ready for use in f_IPv4_enc() */ - template IPv4_packet ts_IP4(OCT4 srcaddr, OCT4 dstaddr, LIN1 proto, LIN2_BO_LAST tlen, octetstring payload) := { + template (value) IPv4_packet ts_IP4(OCT4 srcaddr, OCT4 dstaddr, LIN1 proto, LIN2_BO_LAST tlen, octetstring payload) := { header := { ver := 4, hlen := 5, @@ -888,7 +888,7 @@ } /* template to generate a 'Prefix Information' ICMPv6 option */ - template OptionField ts_ICMP6_OptPrefix(OCT16 prefix, INT1 prefix_len) := { + template (value) OptionField ts_ICMP6_OptPrefix(OCT16 prefix, INT1 prefix_len) := { prefixInformation := { typeField := 3, lengthIndicator := 8, @@ -904,7 +904,7 @@ } /* template for sending an ICMPv6 echo request */ - template PDU_ICMPv6 ts_ICMPv6_ERQ := { + template (value) PDU_ICMPv6 ts_ICMPv6_ERQ := { echoRequest := { typeField := 128, code := 0, @@ -916,7 +916,7 @@ } /* template for sending an ICMPv6 router solicitation */ - template PDU_ICMPv6 ts_ICMPv6_RS := { + template (value) PDU_ICMPv6 ts_ICMPv6_RS := { routerSolicitation := { typeField := 133, code := 0, @@ -928,12 +928,12 @@ } /* template for sending an ICMPv6 router advertisement */ - template PDU_ICMPv6 ts_ICMPv6_RA(OCT16 prefix, INT1 prefix_len) := { + template (value) PDU_ICMPv6 ts_ICMPv6_RA(OCT16 prefix, INT1 prefix_len) := { routerAdvertisement := { typeField := 134, code := 0, checksum := ''O, - curHopLimit := ?, + curHopLimit := 0, reserved := '00'B, o_Bit := '0'B, m_Bit := '0'B, @@ -947,7 +947,7 @@ } /* template for sending an ICMPv6 neighbor solicitation */ - template PDU_ICMPv6 ts_ICMPv6_NS(OCT16 target_addr) := { + template (value) PDU_ICMPv6 ts_ICMPv6_NS(OCT16 target_addr) := { neighborSolicitation := { typeField := 135, code := 0, @@ -961,7 +961,7 @@ /* derive ICMPv6 link-local address from lower 64bit of link_id */ /* template for receiving/matching an ICMPv6 'Prefix Information' option */ - template OptionField
[S] Change in osmo-ttcn3-hacks[master]: ggsn: Fix restriction type on several template definitions
Attention is currently required from: pespin. osmith has posted comments on this change. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/35226?usp=email ) Change subject: ggsn: Fix restriction type on several template definitions .. Patch Set 1: Code-Review+2 -- To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/35226?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: osmo-ttcn3-hacks Gerrit-Branch: master Gerrit-Change-Id: I47a0c3fbf1b4078c2d8157b148330f7750cc3266 Gerrit-Change-Number: 35226 Gerrit-PatchSet: 1 Gerrit-Owner: pespin Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: laforge Gerrit-Reviewer: osmith Gerrit-Attention: pespin Gerrit-Comment-Date: Wed, 06 Dec 2023 14:06:11 + Gerrit-HasComments: No Gerrit-Has-Labels: Yes Gerrit-MessageType: comment
[S] Change in osmo-ttcn3-hacks[master]: ggsn: Fix restriction type on several template definitions
Attention is currently required from: pespin. laforge has posted comments on this change. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/35226?usp=email ) Change subject: ggsn: Fix restriction type on several template definitions .. Patch Set 1: Code-Review+1 -- To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/35226?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: osmo-ttcn3-hacks Gerrit-Branch: master Gerrit-Change-Id: I47a0c3fbf1b4078c2d8157b148330f7750cc3266 Gerrit-Change-Number: 35226 Gerrit-PatchSet: 1 Gerrit-Owner: pespin Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: laforge Gerrit-Attention: pespin Gerrit-Comment-Date: Tue, 05 Dec 2023 17:08:48 + Gerrit-HasComments: No Gerrit-Has-Labels: Yes Gerrit-MessageType: comment
[S] Change in osmo-ttcn3-hacks[master]: ggsn: Fix restriction type on several template definitions
pespin has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/35226?usp=email ) Change subject: ggsn: Fix restriction type on several template definitions .. ggsn: Fix restriction type on several template definitions Change-Id: I47a0c3fbf1b4078c2d8157b148330f7750cc3266 --- M ggsn_tests/GGSN_Tests.ttcn 1 file changed, 26 insertions(+), 17 deletions(-) git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/26/35226/1 diff --git a/ggsn_tests/GGSN_Tests.ttcn b/ggsn_tests/GGSN_Tests.ttcn index 48cf725..118f1d5 100644 --- a/ggsn_tests/GGSN_Tests.ttcn +++ b/ggsn_tests/GGSN_Tests.ttcn @@ -819,7 +819,7 @@ const octetstring c_neigh_solicit:= '60203afffe82ff020001ff0287009f96fe8201010288b51f2559'O; /* template for sending an ICMPv4 echo request */ - template PDU_ICMP ts_ICMPv4_ERQ(octetstring data := ''O) := { + template (value) PDU_ICMP ts_ICMPv4_ERQ(octetstring data := ''O) := { echo := { type_field := 8, code := 0, @@ -831,7 +831,7 @@ } /* template for receiving/matching an ICMPv4 echo request */ - template PDU_ICMP tr_ICMPv4_ERQ := { + template (present) PDU_ICMP tr_ICMPv4_ERQ := { echo := { type_field := 8, code := 0, @@ -843,7 +843,7 @@ } /* template for receiving/matching an ICMPv4 echo reply */ - template PDU_ICMP tr_ICMPv4_ERP(template octetstring data := *) := { + template (present) PDU_ICMP tr_ICMPv4_ERP(template octetstring data := *) := { echo_reply := { type_field := 0, code := 0, @@ -855,7 +855,7 @@ } /* template for receiving/matching an ICMPv6 Destination Unreachable */ - template PDU_ICMP tr_ICMPv4_DU := { + template (present) PDU_ICMP tr_ICMPv4_DU := { destination_unreachable := { type_field := 1, code := ?, @@ -866,7 +866,7 @@ } /* template to construct IPv4_packet from input arguments, ready for use in f_IPv4_enc() */ - template IPv4_packet ts_IP4(OCT4 srcaddr, OCT4 dstaddr, LIN1 proto, LIN2_BO_LAST tlen, octetstring payload) := { + template (value) IPv4_packet ts_IP4(OCT4 srcaddr, OCT4 dstaddr, LIN1 proto, LIN2_BO_LAST tlen, octetstring payload) := { header := { ver := 4, hlen := 5, @@ -888,7 +888,7 @@ } /* template to generate a 'Prefix Information' ICMPv6 option */ - template OptionField ts_ICMP6_OptPrefix(OCT16 prefix, INT1 prefix_len) := { + template (value) OptionField ts_ICMP6_OptPrefix(OCT16 prefix, INT1 prefix_len) := { prefixInformation := { typeField := 3, lengthIndicator := 8, @@ -904,7 +904,7 @@ } /* template for sending an ICMPv6 echo request */ - template PDU_ICMPv6 ts_ICMPv6_ERQ := { + template (value) PDU_ICMPv6 ts_ICMPv6_ERQ := { echoRequest := { typeField := 128, code := 0, @@ -916,7 +916,7 @@ } /* template for sending an ICMPv6 router solicitation */ - template PDU_ICMPv6 ts_ICMPv6_RS := { + template (value) PDU_ICMPv6 ts_ICMPv6_RS := { routerSolicitation := { typeField := 133, code := 0, @@ -928,12 +928,12 @@ } /* template for sending an ICMPv6 router advertisement */ - template PDU_ICMPv6 ts_ICMPv6_RA(OCT16 prefix, INT1 prefix_len) := { + template (value) PDU_ICMPv6 ts_ICMPv6_RA(OCT16 prefix, INT1 prefix_len) := { routerAdvertisement := { typeField := 134, code := 0, checksum := ''O, - curHopLimit := ?, + curHopLimit := 0, reserved := '00'B, o_Bit := '0'B, m_Bit := '0'B, @@ -947,7 +947,7 @@ } /* template for sending an ICMPv6 neighbor solicitation */ - template PDU_ICMPv6 ts_ICMPv6_NS(OCT16 target_addr) := { + template (value) PDU_ICMPv6 ts_ICMPv6_NS(OCT16 target_addr) := { neighborSolicitation := { typeField := 135, code := 0, @@ -961,7 +961,7 @@ /* derive ICMPv6 link-local address from lower 64bit of link_id */ /* template for receiving/matching an ICMPv6 'Prefix Information' option */ - template OptionField tr_ICMP6_OptPrefix(template OCT16 prefix, template INT1