Newer
Older
ASN_MODULE_SOURCES= \
DataInterChange.c \
TransferBatch.c \
Notification.c \
CallEventDetailList.c \
CallEventDetail.c \
BatchControlInfo.c \
AccountingInfo.c \
NetworkInfo.c \
MobileOriginatedCall.c \
MobileTerminatedCall.c \
SupplServiceEvent.c \
ServiceCentreUsage.c \
GprsCall.c \
ContentTransaction.c \
LocationService.c \
AuditControlInfo.c \
AccessPointNameNI.c \
AccessPointNameOI.c \
AdvisedCharge.c \
AdvisedChargeCurrency.c \
AdvisedChargeInformation.c \
AgeOfLocation.c \
BasicService.c \
BasicServiceCode.c \
BasicServiceCodeList.c \
CallReference.c \
CallTypeGroup.c \
CallTypeLevel1.c \
CallTypeLevel2.c \
CallTypeLevel3.c \
CamelServiceKey.c \
CamelServiceLevel.c \
CamelServiceUsed.c \
CauseForTerm.c \
CellId.c \
Charge.c \
ChargedPartyEquipment.c \
ChargedPartyHomeIdentification.c \
ChargedPartyHomeIdList.c \
ChargedPartyIdentification.c \
ChargedPartyIdentifier.c \
ChargedPartyIdList.c \
ChargedPartyIdType.c \
ChargedPartyInformation.c \
ChargedPartyLocation.c \
ChargedPartyLocationList.c \
ChargedPartyStatus.c \
ChargedUnits.c \
ChargeInformation.c \
ChargeInformationList.c \
ChargeType.c \
ChargingId.c \
ChargingPoint.c \
ChargingTimeStamp.c \
ClirIndicator.c \
ContentProviderIdList.c \
ContentProviderIdType.c \
ContentProviderName.c \
ContentServiceUsed.c \
ContentServiceUsedList.c \
ContentTransactionBasicInfo.c \
ContentTransactionCode.c \
ContentTransactionType.c \
DateTimeLong.c \
DefaultCallHandlingIndicator.c \
DepositTimeStamp.c \
Destination.c \
DestinationNetwork.c \
DialledDigits.c \
DiscountRate.c \
DiscountValue.c \
DistanceChargeBandCode.c \
EarliestCallTimeStamp.c \
Esn.c \
ExchangeRate.c \
ExchangeRateCode.c \
FileAvailableTimeStamp.c \
FileCreationTimeStamp.c \
FileSequenceNumber.c \
FileTypeIndicator.c \
Fnur.c \
GeographicalLocation.c \
GprsBasicCallInformation.c \
GprsChargeableSubscriber.c \
GprsDestination.c \
GprsLocationInformation.c \
GprsNetworkLocation.c \
GprsServiceUsed.c \
GsmChargeableSubscriber.c \
HomeLocationInformation.c \
HorizontalAccuracyDelivered.c \
HorizontalAccuracyRequested.c \
IMSSignallingContext.c \
InternetServiceProvider.c \
InternetServiceProviderIdList.c \
IspIdentifier.c \
IspIdType.c \
NetworkIdType.c \
NetworkIdentifier.c \
Network.c \
NetworkList.c \
LatestCallTimeStamp.c \
LCSQosDelivered.c \
LCSQosRequested.c \
LCSRequestTimestamp.c \
LocalCurrency.c \
LocalTimeStamp.c \
LocationArea.c \
LocationDescription.c \
LocationIdentifier.c \
LocationIdType.c \
LocationInformation.c \
MoBasicCallInformation.c \
Msisdn.c \
MtBasicCallInformation.c \
PdpAddress.c \
PDPContextStartTimestamp.c \
PlmnId.c \
PositioningMethod.c \
PriorityCode.c \
RapFileSequenceNumber.c \
RecEntityCode.c \
RecEntityCodeList.c \
RecEntityInfoList.c \
RecEntityInformation.c \
RecEntityType.c \
Recipient.c \
ResponseTime.c \
ResponseTimeCategory.c \
ScuBasicInformation.c \
ScuChargeType.c \
ScuTimeStamps.c \
SpecificationVersionNumber.c \
SsParameters.c \
SupplServiceActionCode.c \
SupplServiceCode.c \
TaxCode.c \
TaxInformation.c \
TaxInformationList.c \
TaxRate.c \
TaxType.c \
ThirdPartyNumber.c \
ThreeGcamelDestination.c \
TotalAdvisedCharge.c \
TotalAdvisedChargeRefund.c \
TotalAdvisedChargeValue.c \
TotalAdvisedChargeValueList.c \
TotalCharge.c \
TotalChargeRefund.c \
TotalCommission.c \
TotalCommissionRefund.c \
TotalDataVolume.c \
TotalDiscountRefund.c \
TrackedCustomerHomeIdList.c \
TrackedCustomerIdentification.c \
TrackedCustomerIdList.c \
TrackedCustomerInformation.c \
TrackingCustomerHomeIdList.c \
TrackingCustomerIdentification.c \
TrackingCustomerIdList.c \
TrackingCustomerInformation.c \
TransactionAuthCode.c \
TransactionDescriptionSupp.c \
TransactionDetailDescription.c \
TransactionIdentifier.c \
TransactionShortDescription.c \
TransactionStatus.c \
VerticalAccuracyDelivered.c \
VerticalAccuracyRequested.c \
AbsoluteAmount.c \
Bid.c \
Code.c \
AsciiString.c \
BCDString.c \
Currency.c \
HexString.c \
NumberString.c \
PercentageRate.c
ASN_MODULE_HEADERS= \
DataInterChange.h \
TransferBatch.h \
Notification.h \
CallEventDetailList.h \
CallEventDetail.h \
BatchControlInfo.h \
AccountingInfo.h \
NetworkInfo.h \
MobileOriginatedCall.h \
MobileTerminatedCall.h \
SupplServiceEvent.h \
ServiceCentreUsage.h \
GprsCall.h \
ContentTransaction.h \
LocationService.h \
AuditControlInfo.h \
AccessPointNameNI.h \
AccessPointNameOI.h \
AdvisedCharge.h \
AdvisedChargeCurrency.h \
AdvisedChargeInformation.h \
AgeOfLocation.h \
BasicService.h \
BasicServiceCode.h \
BasicServiceCodeList.h \
CallReference.h \
CallTypeGroup.h \
CallTypeLevel1.h \
CallTypeLevel2.h \
CallTypeLevel3.h \
CamelServiceKey.h \
CamelServiceLevel.h \
CamelServiceUsed.h \
CauseForTerm.h \
CellId.h \
Charge.h \
ChargeDetail.h \
ChargeDetailList.h \
ChargeDetailTimeStamp.h \
ChargedPartyEquipment.h \
ChargedPartyHomeIdentification.h \
ChargedPartyHomeIdList.h \
ChargedPartyIdentification.h \
ChargedPartyIdentifier.h \
ChargedPartyIdList.h \
ChargedPartyIdType.h \
ChargedPartyInformation.h \
ChargedPartyLocation.h \
ChargedPartyLocationList.h \
ChargedPartyStatus.h \
ChargedUnits.h \
ChargeInformation.h \
ChargeInformationList.h \
ChargeType.h \
ChargingId.h \
ChargingPoint.h \
ChargingTimeStamp.h \
ClirIndicator.h \
ContentProviderIdList.h \
ContentProviderIdType.h \
ContentProviderName.h \
ContentServiceUsed.h \
ContentServiceUsedList.h \
ContentTransactionBasicInfo.h \
ContentTransactionCode.h \
ContentTransactionType.h \
DateTimeLong.h \
DefaultCallHandlingIndicator.h \
DepositTimeStamp.h \
Destination.h \
DestinationNetwork.h \
DialledDigits.h \
DiscountRate.h \
DiscountValue.h \
DistanceChargeBandCode.h \
EarliestCallTimeStamp.h \
Esn.h \
ExchangeRate.h \
ExchangeRateCode.h \
FileAvailableTimeStamp.h \
FileCreationTimeStamp.h \
FileSequenceNumber.h \
FileTypeIndicator.h \
Fnur.h \
GeographicalLocation.h \
GprsBasicCallInformation.h \
GprsChargeableSubscriber.h \
GprsDestination.h \
GprsLocationInformation.h \
GprsNetworkLocation.h \
GprsServiceUsed.h \
GsmChargeableSubscriber.h \
HomeLocationInformation.h \
HorizontalAccuracyDelivered.h \
HorizontalAccuracyRequested.h \
IMSSignallingContext.h \
InternetServiceProvider.h \
InternetServiceProviderIdList.h \
IspIdentifier.h \
IspIdType.h \
NetworkIdType.h \
NetworkIdentifier.h \
Network.h \
NetworkList.h \
LatestCallTimeStamp.h \
LCSQosDelivered.h \
LCSQosRequested.h \
LCSRequestTimestamp.h \
LocalCurrency.h \
LocalTimeStamp.h \
LocationArea.h \
LocationDescription.h \
LocationIdentifier.h \
LocationIdType.h \
LocationInformation.h \
MoBasicCallInformation.h \
Msisdn.h \
MtBasicCallInformation.h \
PdpAddress.h \
PDPContextStartTimestamp.h \
PlmnId.h \
PositioningMethod.h \
PriorityCode.h \
RapFileSequenceNumber.h \
RecEntityCode.h \
RecEntityCodeList.h \
RecEntityInfoList.h \
RecEntityInformation.h \
RecEntityType.h \
Recipient.h \
ResponseTime.h \
ResponseTimeCategory.h \
ScuBasicInformation.h \
ScuChargeType.h \
ScuTimeStamps.h \
SpecificationVersionNumber.h \
SsParameters.h \
SupplServiceActionCode.h \
SupplServiceCode.h \
TaxCode.h \
TaxInformation.h \
TaxInformationList.h \
TaxRate.h \
TaxType.h \
ThirdPartyNumber.h \
ThreeGcamelDestination.h \
TotalAdvisedCharge.h \
TotalAdvisedChargeRefund.h \
TotalAdvisedChargeValue.h \
TotalAdvisedChargeValueList.h \
TotalCharge.h \
TotalChargeRefund.h \
TotalCommission.h \
TotalCommissionRefund.h \
TotalDataVolume.h \
TotalDiscountRefund.h \
TrackedCustomerHomeIdList.h \
TrackedCustomerIdentification.h \
TrackedCustomerIdList.h \
TrackedCustomerInformation.h \
TrackingCustomerHomeIdList.h \
TrackingCustomerIdentification.h \
TrackingCustomerIdList.h \
TrackingCustomerInformation.h \
TransactionAuthCode.h \
TransactionDescriptionSupp.h \
TransactionDetailDescription.h \
TransactionIdentifier.h \
TransactionShortDescription.h \
TransactionStatus.h \
VerticalAccuracyDelivered.h \
VerticalAccuracyRequested.h \
AbsoluteAmount.h \
Bid.h \
Code.h \
AsciiString.h \
BCDString.h \
Currency.h \
HexString.h \
NumberString.h \
PercentageRate.h
ASN_MODULE_HEADERS+=NativeEnumerated.h
ASN_MODULE_HEADERS+=IA5String.h
ASN_MODULE_SOURCES+=IA5String.c
ASN_MODULE_SOURCES+=NativeEnumerated.c
ASN_MODULE_HEADERS+=NativeInteger.h
ASN_MODULE_SOURCES+=NativeInteger.c
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
ASN_MODULE_HEADERS+=asn_SEQUENCE_OF.h
ASN_MODULE_SOURCES+=asn_SEQUENCE_OF.c
ASN_MODULE_HEADERS+=asn_SET_OF.h
ASN_MODULE_SOURCES+=asn_SET_OF.c
ASN_MODULE_HEADERS+=constr_CHOICE.h
ASN_MODULE_SOURCES+=constr_CHOICE.c
ASN_MODULE_HEADERS+=constr_SEQUENCE.h
ASN_MODULE_SOURCES+=constr_SEQUENCE.c
ASN_MODULE_HEADERS+=constr_SEQUENCE_OF.h
ASN_MODULE_SOURCES+=constr_SEQUENCE_OF.c
ASN_MODULE_HEADERS+=constr_SET_OF.h
ASN_MODULE_SOURCES+=constr_SET_OF.c
ASN_MODULE_HEADERS+=asn_application.h
ASN_MODULE_HEADERS+=asn_system.h
ASN_MODULE_HEADERS+=asn_codecs.h
ASN_MODULE_HEADERS+=asn_internal.h
ASN_MODULE_HEADERS+=OCTET_STRING.h
ASN_MODULE_SOURCES+=OCTET_STRING.c
ASN_MODULE_HEADERS+=BIT_STRING.h
ASN_MODULE_SOURCES+=BIT_STRING.c
ASN_MODULE_SOURCES+=asn_codecs_prim.c
ASN_MODULE_HEADERS+=asn_codecs_prim.h
ASN_MODULE_HEADERS+=ber_tlv_length.h
ASN_MODULE_SOURCES+=ber_tlv_length.c
ASN_MODULE_HEADERS+=ber_tlv_tag.h
ASN_MODULE_SOURCES+=ber_tlv_tag.c
ASN_MODULE_HEADERS+=ber_decoder.h
ASN_MODULE_SOURCES+=ber_decoder.c
ASN_MODULE_HEADERS+=der_encoder.h
ASN_MODULE_SOURCES+=der_encoder.c
ASN_MODULE_HEADERS+=constr_TYPE.h
ASN_MODULE_SOURCES+=constr_TYPE.c
ASN_MODULE_HEADERS+=constraints.h
ASN_MODULE_SOURCES+=constraints.c
ASN_MODULE_HEADERS+=xer_support.h
ASN_MODULE_SOURCES+=xer_support.c
ASN_MODULE_HEADERS+=xer_decoder.h
ASN_MODULE_SOURCES+=xer_decoder.c
ASN_MODULE_HEADERS+=xer_encoder.h
ASN_MODULE_SOURCES+=xer_encoder.c
ASN_MODULE_HEADERS+=per_support.h
ASN_MODULE_SOURCES+=per_support.c
ASN_MODULE_HEADERS+=per_decoder.h
ASN_MODULE_SOURCES+=per_decoder.c
ASN_MODULE_HEADERS+=per_encoder.h
ASN_MODULE_SOURCES+=per_encoder.c
ASN_CONVERTER_SOURCES+=converter-sample.c
lib_LTLIBRARIES=libsomething.la
libsomething_la_SOURCES=$(ASN_MODULE_SOURCES) $(ASN_MODULE_HEADERS)
# This file may be used as an input for make(3)
# Remove the lines below to convert it into a pure .am file
TARGET = tap3dump
CFLAGS += -DHAVE_CONFIG_H -DJUNKTEST -DPDU=DataInterChange -I.
OBJS=${ASN_MODULE_SOURCES:.c=.o} ${ASN_CONVERTER_SOURCES:.c=.o}
$(TARGET): ${OBJS}
$(CC) $(CFLAGS) -o $(TARGET) ${OBJS} $(LDFLAGS) $(LIBS)
.SUFFIXES:
.SUFFIXES: .c .o
.c.o:
$(CC) $(CFLAGS) -o $@ -c $<
clean:
rm -f $(TARGET)
rm -f $(OBJS)
regen: regenerate-from-asn1-source
regenerate-from-asn1-source:
../../asn1c/asn1c -S ../../skeletons -pdu=DataInterChange ../tap3.asn1
make regen-makefile
@touch DataInterChange.c
make
regen-makefile:
ASN1CMDOPTS="" \
ASN1MODULES="../tap3.asn1" \
ASN1PDU=DataInterChange \
PROGNAME=tap3dump \
check: ${TARGET} check-ber check-xer check-per
@echo ================
@echo All tests passed
@echo ================
check-ber:
@if test -f sample-DataInterChange-1.[db]er ; then \
for f in sample-DataInterChange-*.[db]er; do \
for b in 1 17 33 980 8192; do \
echo "Recoding $$f into XER and back ($$b)..."; \
./${TARGET} -b $$b -iber -oxer $$f > ./.tmp.1.$$$$ || exit 2; \
./${TARGET} -b $$b -ixer -oxer ./.tmp.1.$$$$ > ./.tmp.2.$$$$ || exit 3; \
diff ./.tmp.1.$$$$ ./.tmp.2.$$$$ || exit 4; \
./${TARGET} -J0.0001 -n 1000 -b $$b -iber -onull $$f || exit 5; \
./${TARGET} -J0.001 -n 1000 -b $$b -iber -onull $$f || exit 6; \
@if test -f sample-DataInterChange-1.xer ; then \
for f in sample-DataInterChange-*.xer; do \
for b in 1 17 33 980 8192; do \
echo "Recoding $$f into DER and back ($$b)..."; \
./${TARGET} -b $$b -ixer -oder $$f > ./.tmp.1.$$$$ || exit 2; \
./${TARGET} -b $$b -iber -oxer ./.tmp.1.$$$$ > ./.tmp.2.$$$$ || exit 3; \
diff $$f ./.tmp.2.$$$$ || exit 4; \
./${TARGET} -J0.0001 -n 1000 -b $$b -ixer -onull $$f || exit 5; \
./${TARGET} -J0.001 -n 1000 -b $$b -ixer -onull $$f || exit 6; \
@if test -f sample-DataInterChange-1-nopad.per ; then \
for f in sample-DataInterChange-[1-9]-nopad.per; do \
echo "Recoding non-padded $$f into DER into XER and back ($$b)..."; \
./${TARGET} -b $$b -per-nopad -iper -oder $$f > ./.tmp.1.$$$$ || exit 2; \
./${TARGET} -b $$b -iber -oxer ./.tmp.1.$$$$ > ./.tmp.2.$$$$ || exit 3; \
./${TARGET} -b $$b -ixer -oder ./.tmp.2.$$$$ > ./.tmp.3.$$$$ || exit 4; \
diff ./.tmp.1.$$$$ ./.tmp.3.$$$$ || exit 5; \
./${TARGET} -J0.0001 -n 1000 -b $$b -per-nopad -iper -onull $$f || exit 6; \
./${TARGET} -J0.001 -n 1000 -b $$b -per-nopad -iper -onull $$f || exit 7; \
@if test -f sample-DataInterChange-1.per ; then \
for f in sample-*-[1-9].per; do \
pdu=`echo $$f | sed -E -e "s/sample-([A-Za-z-]+)-[0-9].*/\1/"`; \
for b in 1 17 33 980 8192; do \
echo "Recoding $$f into DER into XER and back ($$b)..."; \
./${TARGET} -b $$b -p $$pdu -iper -oder $$f > ./.tmp.1.$$$$ || exit 3; \
./${TARGET} -b $$b -p $$pdu -iber -oxer ./.tmp.1.$$$$ > ./.tmp.2.$$$$ || exit 4; \
./${TARGET} -b $$b -p $$pdu -ixer -oper ./.tmp.2.$$$$ > ./.tmp.1.$$$$ || exit 5; \
diff $$f ./.tmp.1.$$$$ || exit 6; \
./${TARGET} -J0.0001 -n 1000 -b $$b -iper -onull $$f || exit 7; \
./${TARGET} -J0.001 -n 1000 -b $$b -iper -onull $$f || exit 8; \
rm -f $(ASN_MODULE_SOURCES)
rm -f $(ASN_MODULE_HEADERS)
rm -f $(ASN_CONVERTER_SOURCES) $(ASN_CONVERTER_HEADERS)