Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
/**
* @author ETSI / STF422_EETS
* @version $URL:$
* $Id:$
* @desc Templates definitions for FAST networking & transport layer protocol (ISO 29281-2)
*/
module LibItsFntp_Templates {
// LibCommon
import from LibCommon_BasicTypesAndValues {
type
UInt8, UInt16;
};
// LibIts
import from CALMllsap language "ASN.1:1997" {
type
IN_SAPaddress, EUI64, LLserviceAddr, Link_ID, INdata, AccessParameters,
INsapPrimitivesDown, INsapPrimitivesUp,
IN_UNITDATA_request, IN_UNITDATA_indication
};
import from CALMmsap language "ASN.1:1997" {
type
StationID, CommandRef
};
import from CALMmanagement language "ASN.1:1997" {
type ITS_scuId
};
import from CALMfntp language "ASN.1:1997" all;
import from LibIts_Interface all;
import from LibItsFntp_TypesAndValues {
const c_portRtr, c_portHst, c_portNon, c_portReservedLow, c_portReservedHigh;
type AcFntpPrimitive
};
import from LibItsFntp_Pixits all;
import from LibItsCommon_TypesAndValues {
type
UtInitialize, UtCommandRequest, UtCommandConfirm, UtCommandIndication
};
group fntpPrimitives {
/**
* @desc Primitive on IN-SAP interface
* @see ISO/CD 21218 - Clause 8.3
* @see ISO/CD 29281-2 - Clause 7.1.2
*/
group inSAPPrimitives {
* @desc Send template for IN-SAP source and destination address
* @param p_linkId Link ID
* @see ISO/CD 21218 - Clause 8.2.2
*/
template (value) LLserviceAddr m_llServiceAddr(
in template (value) Link_ID p_linkId
) := {
csap := mw_fntpInSapAddress_src_command,
linkID := p_linkId
} // // End of template m_llServiceAddr
/**
* @desc Send template for link-ID
* @param p_remoteLinkId Remote link ID
* @param p_localLinkId Local link ID
* @see ISO/CD 21218 - Clause 8.2.2
*/
template (value) Link_ID m_linkID(
in template (value) EUI64 p_remoteLinkId,
in template (value) EUI64 p_localLinkId
) := {
remoteCIID := p_remoteLinkId,
localCIID := p_localLinkId
} // End of template mw_linkID
* @desc Receive template for a SAP primitive message on IN-SAP interface
* @param p_inUnitdataRq The IN-DATA.request SAP primitive message
* @see ISO/CD 21218 - Clause 8.3.1
* @see ISO/CD 29281-2 - Clause 7.1.2
*/
template INsapPrimitivesDown mw_fntpInSapPrimitiveReq(
in template (present) IN_UNITDATA_request p_inUnitdataRq
) := {
fill := '00000'B, // TODO Use a PIXIT
primitives := {
inUnitdataRq := p_inUnitdataRq
} // End of template m_fntpImPrimitiveReq
/**
* @desc Send template for IN-SAP address
* @see ISO/CD 21218 - Table 5 — Addresses for the Link Service Access Point (IN-SAP)
*/
template (value) IN_SAPaddress m_fntpInSapAddress_src_command := 186; //oct2int('BA'O);
/**
* @desc Receive template for IN-SAP address
* @see ISO/CD 21218 - Table 5 — Addresses for the Link Service Access Point (IN-SAP)
*/
template (value) IN_SAPaddress mw_fntpInSapAddress_src_command := m_fntpInSapAddress_src_command;
/**
* @desc Receive template for IN-UNITDATA.request SAP primitive
* @see ISO/CD 21218 - Clause 8.2.2
*/
template IN_UNITDATA_request mw_inUnitDataReq_any := {
source_addr := {
csap := mw_fntpInSapAddress_src_command,
linkID := ?
},
dest_addr := {
csap := mw_fntpInSapAddress_src_command,
linkID := ?
},
data := ?,
priority := PX_USER_PRIORITY,
accessParams := ''O,
refNo := ?
} // End of template mw_inUnitDataReq_any
/**
* @desc Receive template for IN-UNITDATA.request SAP primitive
* @param p_source_linkId Source linkId
* @param p_dest_linkId Destination linkId
* @see ISO/CD 21218 - Clause 8.2.2
*/
template IN_UNITDATA_request mdw_inUnitDataReq(
in template (present) Link_ID p_source_linkId,
in template (present) Link_ID p_dest_linkId
) modifies mw_inUnitDataReq_any := {
source_addr := {
csap := mw_fntpInSapAddress_src_command,
},
dest_addr := {
csap := mw_fntpInSapAddress_src_command,
}
} // End of template mdw_inUnitDataReq
/**
* @desc Receive template for IN-UNITDATA.request SAP primitive
* @param p_source_linkId Source linkId
* @param p_dest_linkId Destination linkId
* @param p_accessParams Access parameters
* @see ISO/CD 21218 - Clause 8.2.2
*/
template IN_UNITDATA_request mdw_inUnitDataReq_CIP(
in template (present) Link_ID p_source_linkId,
in template (present) Link_ID p_dest_linkId,
in template (present) AccessParameters p_accessParams
accessParams := p_accessParams
* @desc Receive template for link-ID
* @param p_remoteLinkId Remote link Id
* @param p_localLinkId Source link Id
* @see ISO/CD 21218 - Clause 8.2.2
*/
template Link_ID mw_linkID(
in template (present) EUI64 p_remoteLinkId,
in template (present) EUI64 p_localLinkId
) := {
remoteCIID := p_remoteLinkId,
localCIID := p_localLinkId
} // End of template mw_linkID
/**
* @desc Receive template for IN-SAP source and destination address
* @param p_linkId Link Id
* @see ISO/CD 21218 - Clause 8.2.2
*/
template LLserviceAddr mw_llServiceAddr(
in template (present) Link_ID p_linkId
) := {
linkID := p_linkId
} // End of template mw_llServiceAddr
} // End of group inSAPPrimitives
/**
* @desc Fntp NPUD templates
*/
group fntpBasicNPDU {
/**
* @desc Send template for basic NPDU for UC/BC transmission- N/single hop
* @param p_sourcePort Source port
* @param p_destinationPort Destination port
* @param p_hops N-hops value
*/
in template (value) PortNumber p_sourcePort,
in template (value) PortNumber p_destinationPort,
) := {
header := {
sourcePort := p_sourcePort,
destinationPort := p_destinationPort,
options := {
intForw := omit,
sec := omit,
hops := p_hops,
opt4 := omit,
opt5 := omit,
opt6 := omit,
lpp := omit,
cip := omit
} // End of 'options' field
}, // End of 'header' field
/**
* @desc Unspecified receive template for FNTP basic NPDU
* Used for:
* <li>modifying restrictif template</li>
* <li>default altstep</li>
*/
sourcePort := { portLong := complement((c_portReservedLow .. c_portReservedHigh)) }, // See ISO/CD 29281-2 Table 1: FNTP endpoints identified by port numbers
destinationPort := ?,
options := mw_noFntpOptions
* @desc Receive template for FNTP basic NPDU, specifying port values
* @param p_sourcePort Source port number
* @param p_destinationPort Destination (or remote) port number
template (present) FNTPNPDU mdw_fntpBasicNPDU(
in template (present) PortNumber p_sourcePort,
in template (present) PortNumber p_destinationPort
header := {
sourcePort := p_sourcePort,
destinationPort := p_destinationPort
} // End of template mw_basicNPDU
} // End of group fntpBasicNPDU
group fntpExtendedNPDU {
/**
* @desc Send template for FNTP extended NPDU with an invalid control fields (lpp is set)
* @param p_sourcePort Broadcast source port
* @param p_destinationPort Broadcast destination port
* @param p_hops N-hops value
* @see ISO/CD 29281-2 - Table 3 — FNTP control field (implemented as OPTION selector in ASN.1)
*/
template FNTPNPDU md_fntpExtendedNPDU_InvalidCtrlField(
in template (value) PortNumber p_sourcePort,
in template (value) PortNumber p_destinationPort,
in template (omit) FNTPhopCount p_hops
header := {
options := {
} // End of 'header' field
} // End of template md_fntpExtendedNPDU_InvalidCtrlField
/**
* @desc Send template for FNTP extended NPDU with an invalid control fields (lpp is set)
* @param p_sourcePort Broadcast source port
* @param p_destinationPort Broadcast destination port
* @param p_hops N-hops value
* @see ISO/CD 29281-2 - Table 3 — FNTP control field (implemented as OPTION selector in ASN.1)
*/
template FNTPNPDU md_fntpExtendedNPDU_InvalidBitSet(
in template (value) PortNumber p_sourcePort,
in template (value) PortNumber p_destinationPort,
in template (omit) FNTPhopCount p_hops // Should be omitted
header := {
options := {
} // End of 'options' field
} // End of 'header' field
} // End of template md_fntpExtendedNPDU_InvalidBitSet
/**
* @desc Send template for FNTP extended NPDU with an invalid control fields (lpp is set)
* @param p_sourcePort Broadcast source port
* @param p_destinationPort Broadcast destination port
* @param p_hops N-hops value
* @param p_rxCIP Receive (RX) parameter settings
* @param p_txCIP Transmit (TX) parameters of a VCI
*/
in template (value) PortNumber p_sourcePort,
in template (value) PortNumber p_destinationPort,
in template (omit) FNTPhopCount p_hops, // Should be omitted
in template (value) RXcip p_rxCIP,
in template (value) TXcip p_txCIP
header := {
options := {
hops := p_hops,
cip := {
rxCIP := p_rxCIP,
txCIP := p_txCIP
} // End of 'cip' field
} // End of'options' field
} // End of 'header' field
} // End of template md_fntpExtendedNPDU_CIP
/**
* @desc Send template for FNTP extended NPDU for BC transmission-single/N-hops
* @param p_sourcePort Broadcast source port
* @param p_destinationPort Broadcast destination port
* @param p_hops N-hops value
*/
template (present) FNTPNPDU mdw_fntpExtendedNPDU(
in template (present) PortNumber p_sourcePort,
in template (present) PortNumber p_destinationPort,
in template (present) FNTPhopCount p_hops
header := {
options := mdw_NHopNFfntpOptions(PX_NHOPS)
} // End of field 'header'
/**
* @desc Send template for FNTP extended NPDU for BC transmission-single/N-hops with CIP
* @param p_sourcePort Broadcast source port
* @param p_destinationPort Broadcast destination port
* @param p_hops N-hops value
* @param p_rxCIP Receive (RX) parameter settings
* @param p_txCIP Transmit (TX) parameters of a VCI
*/
in template (present) PortNumber p_sourcePort,
in template (present) PortNumber p_destinationPort,
in template (present) FNTPhopCount p_hops,
in template RXcip p_rxCIP,
in template TXcip p_txCIP
) := {
header := {
sourcePort := { portLong := complement((c_portReservedLow .. c_portReservedHigh)) }, // See ISO/CD 29281-2 Table 1: FNTP endpoints identified by port numbers
destinationPort := ?,
options := mdw_NHopNFfntpOptions_CIP(
PX_NHOPS,
p_rxCIP,
p_txCIP
)
}, // End of field 'header'
body := ?
} // End of group fntpExtendedNPDU
group fntpForwardingNPDU {
/**
* @desc Send template for FNTP forwarding NPDU
* @param p_sourcePort Source port (c_portRtr or c_portHst)
* @param p_destinationPort Destination port (c_portRtr or c_portHst)
* @param p_hops N-hops value
* @param p_fromPort Forwarding source port
* @param p_toPort Forwarding destination port
* @param p_counter Expected value of FNTP packet counter counter field
*/
template (value) FNTPNPDU md_fntpForwardingNPDU(
in template (value) PortNumber p_sourcePort,
in template (value) PortNumber p_destinationPort,
in template (value) FNTPhopCount p_hops,
in template (value) PortNumber p_fromPort,
in template (value) PortNumber p_toPort,
in template (value) FNTPpacketCounter p_counter
header := {
options := {
intForw := {
hostITS_scuId := PX_HOST_SCU_ID,
link := PX_LINK_ID_UC,
counter := p_counter,
sourcePort := p_fromPort,
destinationPort := p_toPort
} // End of field 'intForw'
} // End of field 'options'
} // End of field 'header'
/**
* @desc Send template for FNTP forwarding NPDU with an unknown ITS-SCU-ID
* @param p_sourcePort Source port (c_portRtr or c_portHst)
* @param p_destinationPort Destination port (c_portRtr or c_portHst)
* @param p_hops N-hops value
* @param p_fromPort Forwarding source port
* @param p_toPort Forwarding destination port
* @param p_counter Expected value of FNTP packet counter counter field
*/
template (value) FNTPNPDU md_fntpForwardingNPDU_UnknownITS_SCU_ID(
in template (value) PortNumber p_sourcePort,
in template (value) PortNumber p_destinationPort,
in template (value) FNTPhopCount p_hops,
in template (value) PortNumber p_fromPort,
in template (value) PortNumber p_toPort,
in template (value) FNTPpacketCounter p_counter
header := {
options := {
intForw := {
hostITS_scuId := PX_UNKNOWN_HOST_SCU_ID,
link := PX_LINK_ID_UC,
counter := p_counter,
sourcePort := p_fromPort,
destinationPort := p_toPort
} // End of field 'intForw'
} // End of field 'options'
} // End of field 'header'
} // End of template md_fntpForwardingNPDU_UnknownITS_SCU_ID
/**
* @desc Send template for FNTP forwarding NPDU with CIPs
* @param p_sourcePort Source port (c_portRtr or c_portHst)
* @param p_destinationPort Destination port (c_portRtr or c_portHst)
* @param p_hops N-hops value
* @param p_fromPort Forwarding source port
* @param p_toPort Forwarding destination port
* @param p_counter Expected value of FNTP packet counter counter field
* @param p_rxCIP Receive (RX) parameter settings
* @param p_txCIP Transmit (TX) parameters of a VCI
*/
template (value) FNTPNPDU md_fntpForwardingNPDU_CIP(
in template (value) PortNumber p_sourcePort,
in template (value) PortNumber p_destinationPort,
in template (value) FNTPhopCount p_hops,
in template (value) PortNumber p_fromPort,
in template (value) PortNumber p_toPort,
in template (value) FNTPpacketCounter p_counter,
in template (value) RXcip p_rxCIP,
in template (value) TXcip p_txCIP
header := {
options := {
intForw := {
hostITS_scuId := PX_HOST_SCU_ID,
link := PX_LINK_ID_UC,
counter := p_counter,
sourcePort := p_fromPort,
destinationPort := p_toPort
}, // End of field 'intForw'
cip := {
rxCIP := p_rxCIP,
txCIP := p_txCIP
} // End of field 'cip'
} // End of field 'options'
} // End of field 'header'
} // End of template md_fntpForwardingNPDU_CIP
/**
* @desc Receive template for FNTP forwarding NPDU
*/
template (present) FNTPNPDU mw_fntpForwardingNPDU_any := {
options := {
intForw := {
hostITS_scuId := ?,
link := {
remoteCIID := ?,
localCIID := ?
},
counter := ?,
sourcePort := ?,
destinationPort := ?
},
sec := omit,
opt4 := omit,
opt5 := omit,
opt6 := omit,
lpp := omit,
cip := omit
}
},
body := ?
} // End of template mw_fntpForwardingNPDU_any
/**
* @desc Receive template for FNTP forwarding NPDU
* @param p_sourcePort Source port
* @param p_destinationPort Destination port
* @param p_fromPort Forwarding source port
* @param p_toPort Forwarding destination port
* @param p_hops N-hops value
* @param p_counter Expected value of FNTP packet counter counter field
*/
template (present) FNTPNPDU mdw_fntpForwardingNPDU(
in template (present) UInt16 p_sourcePort,
in template (present) UInt16 p_destinationPort,
in template (present) PortNumber p_fromPort,
in template (present) PortNumber p_toPort,
in template (present) FNTPpacketCounter p_counter,
in template (present) FNTPhopCount p_hops
header := {
sourcePort := { portLong := p_sourcePort },
destinationPort := { portLong := p_destinationPort },
options := {
intForw := {
counter := p_counter,
sourcePort := p_fromPort,
destinationPort := p_toPort
}, // End of field 'intForw'
hops := p_hops
} // End of field 'options'
}, // End of field 'header'
/**
* @desc Receive template for FNTP forwarding NPDU with CIP
* @param p_sourcePort Source port
* @param p_destinationPort Destination port
* @param p_fromPort Forwarding source port
* @param p_toPort Forwarding destination port
* @param p_hops N-hops value
* @param p_counter Expected value of FNTP packet counter counter field
* @param p_rxCIP Receive (RX) parameter settings
* @param p_txCIP Transmit (TX) parameters of a VCI
*/
template (present) FNTPNPDU mdw_fntpForwardingNPDU_CIP(
in template (present) UInt16 p_sourcePort,
in template (present) UInt16 p_destinationPort,
in template (present) PortNumber p_fromPort,
in template (present) PortNumber p_toPort,
in template (present) FNTPpacketCounter p_counter,
in template (present) FNTPhopCount p_hops,
in template (present) RXcip p_rxCIP,
in template (present) TXcip p_txCIP
header := {
sourcePort := { portLong := c_portRtr },
destinationPort := { portLong := c_portHst },
options := {
intForw := {
counter := p_counter,
sourcePort := p_fromPort,
destinationPort := p_toPort
}, // End of field 'intForw'
hops := p_hops,
cip := {
rxCIP := p_rxCIP,
txCIP := p_txCIP
} // End of field 'cip'
} // End of field 'options'
} // End of field 'header'
} // End of template mdw_fntpForwardingNPDU_CIP
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
} // End of group fntpForwardingNPDU
/**
* @desc template used to trigger message on Lower Tester
*/
group taPrimitives {
/**
* @desc Generate a FNTP NPDU through IN-SAP
* @param p_insap_source_address Source linkId
* @param p_insap_dest_address Destination linkId
* @param p_npdu The FNTP NPDU in octetstring format
* @see ISO/CD 21218 - Clause 8.3.3
*/
template (value) AcFntpPrimitive m_generateFntpNPDU(
in template (value) LLserviceAddr p_insap_source_address,
in template (value) LLserviceAddr p_insap_dest_address,
in template (value) INdata p_npdu
) := {
acGenerateFntpNPDU := {
fntpNPDU := {
fill := '00000'B,
primitives := {
inUnitdataInd := {
source_addr := p_insap_source_address,
dest_addr := p_insap_dest_address,
data := p_npdu,
priority := PX_USER_PRIORITY,
accessParams := ''O
} // End of field 'inUnitdataInd'
} // End of field 'primitives'
} // End of field 'acGenerateFntpNPDU'
} // End of field 'fntpNPDU'
} // End of template m_generateFntpNPDU
/**
* @desc Generate a FNTP NPDU through IN-SAP
* @param p_insap_source_address Source linkId
* @param p_insap_dest_address Destination linkId
* @param p_npdu The FNTP NPDU in octetstring format
* @param p_accessParams access_parameters parameter
* @see ISO/CD 21218 - Clause 8.3.3 & Clause 8.5
* @see ISO 29281-2 - Clause 7.10.1
*/
template (value) AcFntpPrimitive m_generateFntpNPDU_CIP(
in template (value) LLserviceAddr p_insap_source_address,
in template (value) LLserviceAddr p_insap_dest_address,
in template (value) INdata p_npdu,
in template (present) AccessParameters p_accessParams
) modifies m_generateFntpNPDU := {
acGenerateFntpNPDU := {
fntpNPDU := {
fill := '00000'B,
primitives := {
inUnitdataInd := {
accessParams := p_accessParams
} // End of field 'inUnitdataInd'
} // End of field 'primitives'
} // End of field 'acGenerateFntpNPDU'
} // End of field 'fntpNPDU'
} // End of template m_generateFntpNPDU
/**
* @desc Generate a SAM notification message through IN-SAP
* @param p_insap_source_address Source linkId
* @param p_insap_dest_address Destination linkId
* @param p_sam The SAM message in octetstring format
* @see ISO/CD 21218 - Clause 8.3.3
* @see ISO 29281 - Clause 7.9.3
*/
template (value) AcFntpPrimitive m_generateSamMessagePDU(
in template (value) LLserviceAddr p_insap_source_address,
in template (value) LLserviceAddr p_insap_dest_address,
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
in template (value) INdata p_sam
) := {
acGenerateSamMessagePDU := {
samPDU := {
fill := '00000'B,
primitives := {
inUnitdataInd := {
source_addr := p_insap_source_address,
dest_addr := p_insap_dest_address,
data := p_sam,
priority := PX_USER_PRIORITY,
accessParams := ''O
} // End of field 'inUnitdataInd'
} // End of field 'primitives'
} // End of field 'samPDU'
} // End of field 'acGenerateSamMessagePDU'
} // End of template m_generateSamMessagePDU
/**
* @desc Generate a CTX reception message through IN-SAP
* @param p_insap_source_address Source linkId
* @param p_insap_dest_address Destination linkId
* @param p_ctx The SAM message in octetstring format
* @see ISO/CD 21218 - Clause 8.3.3
* @see ISO 29281 - Clause 7.9.4
*/
template (value) AcFntpPrimitive m_generateCtxMessagePDU(
in template (value) LLserviceAddr p_insap_source_address,
in template (value) LLserviceAddr p_insap_dest_address,
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
in template (value) INdata p_ctx
) := {
acGenerateCtxMessagePDU := {
ctxPDU := {
fill := '00000'B,
primitives := {
inUnitdataInd := {
source_addr := p_insap_source_address,
dest_addr := p_insap_dest_address,
data := p_ctx,
priority := PX_USER_PRIORITY,
accessParams := ''O
} // End of field 'inUnitdataInd'
} // End of field 'primitives'
} // End of field 'ctxPDU'
} // End of field 'acGenerateCtxMessagePDU'
} // End of template m_generateCtxMessagePDU
} // End of group taPrimitives
/**
* @desc Templates used to
* <li>trigger message on Upper Tester</li>
* <li>capture indication message sent by the IUT</li>
*/
group utPrimitives {
/**
* @desc Initializes the FNTP IUT
*/
template (value) UtInitialize m_fntpInitialize := {
utFntpInitialize := {
}
} // End of template m_fntpInitialize
group fntpNfPort {
/**
* @desc Send template to request creation or modification of a socket for an endpoint
* @param p_serviceRef Number uniquely identifying the endpoint at this host in an implementation specific way
* @param p_portNumber Contains either the value PORT_NON in order to indicate dynamic assignment of a port number by the port number manager, or a valid value of a well-known static port PORT_REG
* @see ISO/CD 29281-2 Clause 8.2.1
*/
template (value) UtCommandRequest m_generateNfFntpPortCreationRequest(
in template (value) integer p_serviceRef,
in template (value) PortNumber p_portNumber
) := {
utFntpCommandRequest := {
nfSapPrimitives := {
fill := PX_NF_SAP_DOWN_FILL_FIELD_VALUE,
primitivesDown := {
fntpPortRequest := {
serviceRef := p_serviceRef,
operation := true,
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
priority := PX_USER_PRIORITY
} // End of field 'fntpPortRequest'
} // End of field 'primitivesDown'
} // End of field 'nfSapPrimitives'
} // End of field 'utFntpCommandRequest'
} // End of template m_generateNfFntpPortCreationRequest
/**
* @desc Send template to request deletion of a socket for an endpoint
* @param p_serviceRef Number uniquely identifying the endpoint at this host in an implementation specific way
* @param p_portNumber Contains the port to be deleted
* @see ISO/CD 29281-2 Clause 8.2.1
*/
template (value) UtCommandRequest m_generateNfFntpPortDeletionRequest(
in template (value) integer p_serviceRef,
in template (value) PortNumber p_portNumber
) := {
utFntpCommandRequest := {
nfSapPrimitives := {
fill := PX_NF_SAP_DOWN_FILL_FIELD_VALUE,
primitivesDown := {
fntpPortRequest := {
serviceRef := p_serviceRef,
operation := false,
port_ := p_portNumber,
priority := PX_USER_PRIORITY
} // End of field 'fntpPortRequest'
} // End of field 'fntpPortRequest'
} // End of field 'nfSapPrimitives'
} // End of field 'utFntpCommandRequest'
} // End of template m_generateNfFntpPortDeletionRequest
/**
* @desc Receive template used by the FNTP to acknowledge a previous NF-FNTP-PORT.request
* @param p_serviceRef Contains the same value provided in parameter "serviceRef" in the related NF-FNTP-SOCKET.request
* @param p_servicePort Contains the Service port number assigned by the FNTP
* @see ISO/CD 29281-2 Clause 8.2.2
*/
template UtCommandConfirm mw_fntpPortConfirm(
in template (present) integer p_serviceRef,
in template (present) PortNumber p_servicePort
) := {
utFntpCommandConfirm := {
nfSapPrimitives := {
fill := PX_NF_SAP_UP_FILL_FIELD_VALUE,
primitivesUp := {
fntpPortConfirm := {
serviceRef := p_serviceRef,
servicePort := p_servicePort
} // End of field 'fntpPortConfirm'
} // End of field 'primitivesUp'
} // End of field 'nfSapPrimitives'
} // End of field 'nfSapPrimitives'
} // End of template mw_fntpPortConfirm
} // End of group fntpNfPort
/**
* @desc Send template for a NF-SAP command request
* @param p_commRef Unique cyclic reference number of command
* @param p_servicePort Port number allocated by FN-FNTP-SOCKECT.create operation
* @param p_linkID Identifies the VCI to be used to transmit the packet
* @param p_data Contains the ITS-SP payload EPDU
* @param p_controlField Content of the FNTP control field in the FNTP extended header
* @see ISO/CD 29281-2 Clause 8.3.1
*/
template (value) UtCommandRequest m_generateNfFntpCommRequest(
in template (value) CommandRef p_commRef,
in template (value) PortNumber p_servicePort,
in template (value) Link_ID p_linkID,
in template (value) ITSfpdu p_data,
in template (value) FntpOptions p_controlField
) := {
utFntpCommandRequest := {
nfSapPrimitives := {
fill := PX_NF_SAP_DOWN_FILL_FIELD_VALUE,
primitivesDown := {
fntpCommRequest := {
commRef := p_commRef,
servicePort := p_servicePort,
remotePort := PX_REMOTE_PORT_NUMBER,
linkID := p_linkID,
data := p_data,
priority := PX_USER_PRIORITY,
controlField := p_controlField
} // End of field 'fntpCommRequest'
} // End of field 'primitivesDown'
} // End of field 'nfSapPrimitives'
} // End of field 'utFntpCommandRequest'
} // End of template m_generateNfFntpCommRequest
/**
* @desc Receive a succesful COMMAND.confirm primitive
* @see ISO/CD 29281-2 Clause 8.3.1
*/
template (present) UtCommandConfirm mw_fntpCommConfirm_success := {
utFntpCommandConfirm := {
nfSapPrimitives := {
fill := PX_NF_SAP_UP_FILL_FIELD_VALUE,
primitivesUp := {
fntpCommConfirm := {
commRef := ?,
servicePort := ?,
errStatus := 0 // FIXME Pb with TTWB to access to FNTPerrorStatus values
} // End of field 'fntpCommConfirm'
} // End of field 'primitivesUp'
} // End of field 'nfSapPrimitives'
} // End of field 'utFntpCommandConfirm'
} // End of template mw_fntpCommConfirm_success
/**
* @desc Receive an unsuccesful COMMAND.confirm primitive
* @see ISO/WD 29281-2 Clause 8.3.2
*/
template (present) UtCommandConfirm mdw_fntpCommConfirm_unspecFailure
modifies mw_fntpCommConfirm_success := {
utFntpCommandConfirm := {
nfSapPrimitives := {
primitivesUp := {
fntpCommConfirm := {
errStatus := 1 // FIXME Pb with TTWB to access to FNTPerrorStatus values
} // End of field 'fntpCommConfirm'
} // End of field 'primitivesUp'
} // End of field 'nfSapPrimitives'
} // End of field 'utFntpCommandConfirm'
} // End of template mdw_fntpCommConfirm_fail
/**
* @desc Receive an COMMAND.indication primitive
* @see ISO/CD 29281-2 Clause 8.3.3
*/
template (present) UtCommandIndication mw_checkNfFntpCommIndication_any := {
utFntpCommandIndication := {
nfSapPrimitives := {
fill := PX_NF_SAP_UP_FILL_FIELD_VALUE,
primitivesUp := {
fntpCommIndication := {
servicePort := ?,
remotePort := ?,
linkID := ?,
data := PX_ITS_FPDU,
priority := PX_USER_PRIORITY,
controlField := mw_noFntpOptions
} // End of field 'fntpCommIndication'
} // End of field 'primitivesUp'
} // End of field 'nfsapPrimitives'
} // End of field 'utFntpCommandIndication'
} // End of template mw_checkNfFntpCommIndication_any
/**
* @desc Receive an COMMAND.indication primitive
* @param p_servicePort Set equal to "destinationPort" given in the NPDU
* @param p_port Set equal to "sourcePort" given in the NPDU
* @param p_linkID Identify the VCI associated with the peer station
*/
template (present) UtCommandIndication mdw_checkNfFntpCommIndication(
in template (present) PortNumber p_servicePort,
in template (present) PortNumber p_remotePort,
in template (present) Link_ID p_linkID
) modifies mw_checkNfFntpCommIndication_any := {
utFntpCommandIndication := {
nfSapPrimitives := {
fill := PX_NF_SAP_UP_FILL_FIELD_VALUE,
primitivesUp := {
fntpCommIndication := {
servicePort := p_servicePort,
remotePort := p_remotePort,
linkID := p_linkID
} // End of field 'fntpCommIndication'
} // End of field 'primitivesUp'
} // End of field 'nfsapPrimitives'
} // End of field 'utFntpCommandIndication'
} // End of template mw_checkNfFntpCommIndication
* @desc Receive an COMMAND.indication primitive with Access parameters
* @param p_servicePort Set equal to "destinationPort" given in the NPDU
* @param p_port Set equal to "sourcePort" given in the NPDU
* @param p_linkID Identify the VCI associated with the peer station
* @param p_NHopNFfntpOptions_CIP FNTP options with Access parameters
* @see ISO/WD 29281-2 Clause 6.2.2.3.6 CIP management
template (present) UtCommandIndication mdw_checkNfFntpCommIndication_CIP(
in template (present) PortNumber p_servicePort,
in template (present) PortNumber p_remotePort,
in template (present) Link_ID p_linkID,
in template (present) FntpOptions p_NHopNFfntpOptions_CIP
) modifies mw_checkNfFntpCommIndication_any := {
utFntpCommandIndication := {
nfSapPrimitives := {
fill := PX_NF_SAP_UP_FILL_FIELD_VALUE,
primitivesUp := {
fntpCommIndication := {
servicePort := p_servicePort,
remotePort := p_remotePort,
linkID := p_linkID,
controlField := p_NHopNFfntpOptions_CIP
} // End of field 'fntpCommIndication'
} // End of field 'primitivesUp'
} // End of field 'nfsapPrimitives'
} // End of field 'utFntpCommandIndication'
} // End of template mdw_checkNfFntpCommIndication_CIP
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
/**
* @desc Templates for FNTP control fields
* @see ISO/CD 29281-2 Clause 6.2.2.3
*/
group fntpControlFields {
/**
* @desc Send template for no FNTP control fields set, meaning "Basic procedure" (ISO/CD 29281-2 Clause 7.6.1)
* @see ISO/CD 29281-2 Clause 6.2.2.3.1
*/
template (value) FntpOptions m_noFntpOptions := {
intForw := omit,
sec := omit,
hops := omit,
opt4 := omit,
opt5 := omit,
opt6 := omit,
lpp := omit,
cip := omit
} // End of template m_noFntpOptions
/**
* @desc Send template for a S/N-hops communications
* @param p_hops Number of hops. This parameter shall be set to zero for single hop
* @see ISO/CD 29281-2 Clause 6.2.2.3.1
*/
template (value) FntpOptions md_NHopNFfntpOptions(
in template (value) FNTPhopCount p_hops
) modifies m_noFntpOptions := {
hops := p_hops
} // End of template md_NHopNFfntpOptions
/**
* @desc Receive template for no FNTP control fields set, meaning "Basic procedure" (ISO/CD 29281-2 Clause 7.6.1)
* @see ISO/CD 29281-2 Clause 6.2.2.3.1
*/
template FntpOptions mw_noFntpOptions := {
intForw := omit,
sec := omit,
hops := omit,
opt4 := omit,
opt5 := omit,
opt6 := omit,
lpp := omit,
cip := omit
} // End of template mw_noFntpOptions
/**
* @desc Receive template for a S/N-hops communications
* @param p_hops Number of hops. This parameter shall be set to zero for single hop
* @see ISO/CD 29281-2 Clause 6.2.2.3.1
*/
template (present) FntpOptions mdw_NHopNFfntpOptions(
in template (present) FNTPhopCount p_hops
) modifies mw_noFntpOptions := {
hops := p_hops,
opt5 := null
} // End of template mdw_NHopNFfntpOptions
/**
* @desc Send template for unsupported control fiel
* @see ISO/CD 29281-2 Clause 6.2.6
*/
template (value) FntpOptions md_nonSupportedFntpControlField
modifies m_noFntpOptions := {
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
} // End of template md_nonSupportedFntpControlField
/**
* @desc Send template for with CIP required
* @param p_hops Number of hops. This parameter shall be set to zero for single hop
* @param p_rxCIP Receive (RX) parameter settings
* @param p_txCIP Transmit (TX) parameters of a VCI
* @see ISO/CD 29281-2 Clause 7.10
*/
template (value) FntpOptions md_CIPNFfntpOptions(
in template (value) FNTPhopCount p_hops,
in template (value) RXcip p_rxCIP,
in template (value) TXcip p_txCIP
) modifies md_NHopNFfntpOptions := {
cip := {
rxCIP := p_rxCIP,
txCIP := p_txCIP
} // End of field 'cip'
} // End of template md_CIPNFfntpOptions
/**
* @desc Receive template for a S/N-hops communications with CIP
* @param p_hops Number of hops. This parameter shall be set to zero for single hop
* @param p_rxCIP Receive (RX) parameter settings
* @param p_txCIP Transmit (TX) parameters of a VCI
* @see ISO/CD 29281-2 Clause 6.2.2.3.1
*/
template FntpOptions mdw_NHopNFfntpOptions_CIP(
in template (present) FNTPhopCount p_hops,
in template RXcip p_rxCIP,
in template TXcip p_txCIP
) modifies mw_noFntpOptions := {
hops := p_hops,
cip := {
rxCIP := p_rxCIP,
txCIP := p_txCIP
} // End of field 'cip'
} // End of template mdw_NHopNFfntpOptions
} // End of group fntpControlFields
} // End of group utPrimitives
} // End of group fntpPrimitives
} // End of module LibItsFntp_Templates