Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
asn1c
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
asn1c
Commits
294aebc7
Commit
294aebc7
authored
Oct 10, 2017
by
Lev Walkin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
regenerated
parent
8f501764
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
112 additions
and
222 deletions
+112
-222
examples/sample.source.MEGACO/Makefile
examples/sample.source.MEGACO/Makefile
+28
-55
examples/sample.source.RRC/Makefile
examples/sample.source.RRC/Makefile
+28
-56
examples/sample.source.TAP3/Makefile
examples/sample.source.TAP3/Makefile
+28
-55
examples/sample.source.ULP/Makefile
examples/sample.source.ULP/Makefile
+28
-56
No files found.
examples/sample.source.MEGACO/Makefile
View file @
294aebc7
-include
Makefile.am.libasncodec
TARGET
=
megaco-dump
ASN_LIBRARY
=
libasncodec.a
LIBS
+=
-lm
CFLAGS
+=
-DHAVE_CONFIG_H
-DJUNKTEST
-D_DEFAULT_SOURCE
$(ASN_MODULE_CFLAGS)
-DPDU
=
MegacoMessage
-I
.
ASN_CONVERTER_SOURCES
:=
\
converter-example.c
all
:
maybe-wip-pause MegacoMessage.c $(TARGET)
$(TARGET)
:
$(ASN_LIBRARY) $(ASN_CONVERTER_SOURCES:.c=.o)
$(CC)
$(CFLAGS)
$(CPPFLAGS)
-o
$(TARGET)
$(ASN_CONVERTER_SOURCES:.c=.o)
$(LDFLAGS)
$(ASN_LIBRARY)
$(LIBS)
$(ASN_LIBRARY)
:
$(ASN_MODULE_SOURCES:.c=.o)
$(AR)
rcs
$@
$^
.SUFFIXES
:
.SUFFIXES
:
.c .o
.c.o
:
$(CC)
$(CFLAGS)
-o
$@
-c
$<
clean
:
rm
-f
$(TARGET)
$(ASN_LIBRARY)
rm
-f
$(ASN_MODULE_SOURCES:.c=.o)
$(ASN_CONVERTER_SOURCES:.c=.o)
regen
:
regenerate-from-asn1-source
regenerate-from-asn1-source
:
../../asn1c/asn1c
-S
../../skeletons
-pdu
=
MegacoMessage
-fcompound-names
../rfc3525-MEDIA-GATEWAY-CONTROL.asn1
ASN_PROGRAM
=
megaco-dump
CFLAGS
+=
-DHAVE_CONFIG_H
-DJUNKTEST
-D_DEFAULT_SOURCE
begin
:
MegacoMessage.c maybe-wip-pause all
-include
Makefile.am.example
MegacoMessage.c
:
../sample.makefile.regen ../rfc3525-MEDIA-GATEWAY-CONTROL.asn1
make regen-makefile
...
...
@@ -43,7 +16,7 @@ regen-makefile:
ASN_PROGRAM
=
megaco-dump
\
../sample.makefile.regen
check
:
${
TARGET
} check-ber check-xer check-oer check-per
check
:
${
ASN_PROGRAM
} check-ber check-xer check-oer check-per
@
echo
================
@
echo
All tests passed
@
echo
================
...
...
@@ -54,13 +27,13 @@ check-ber:
pdu
=
`
echo
$$
f |
sed
-E
-e
"s/sample-([A-Za-z0-9-]+)-[0-9].*/
\1
/"
`
;
\
for
b
in
1 17 33 980 8192
;
do
\
echo
"Recoding
$$
f (
$$
pdu) into XER and back (
$$
b)..."
;
\
./
${
TARGET
}
-p
$$
pdu
-b
$$
b
-iber
-oxer
$$
f
>
./.tmp.1.
$$$$
||
exit
2
;
\
./
${
TARGET
}
-p
$$
pdu
-b
$$
b
-ixer
-oxer
./.tmp.1.
$$$$
>
./.tmp.2.
$$$$
||
exit
3
;
\
./
${
ASN_PROGRAM
}
-p
$$
pdu
-b
$$
b
-iber
-oxer
$$
f
>
./.tmp.1.
$$$$
||
exit
2
;
\
./
${
ASN_PROGRAM
}
-p
$$
pdu
-b
$$
b
-ixer
-oxer
./.tmp.1.
$$$$
>
./.tmp.2.
$$$$
||
exit
3
;
\
diff ./.tmp.1.
$$$$
./.tmp.2.
$$$$
||
exit
4
;
\
rm
-f
./.tmp.[12].
$$$$
;
\
echo
"Test junking
$$
f (please wait)..."
;
\
./
${
TARGET
}
-J0
.0001
-n
1000
-p
$$
pdu
-b
$$
b
-iber
-onull
$$
f
||
exit
5
;
\
./
${
TARGET
}
-J0
.001
-n
1000
-p
$$
pdu
-b
$$
b
-iber
-onull
$$
f
||
exit
6
;
\
./
${
ASN_PROGRAM
}
-J0
.0001
-n
1000
-p
$$
pdu
-b
$$
b
-iber
-onull
$$
f
||
exit
5
;
\
./
${
ASN_PROGRAM
}
-J0
.001
-n
1000
-p
$$
pdu
-b
$$
b
-iber
-onull
$$
f
||
exit
6
;
\
done
;
done
;
fi
check-xer
:
...
...
@@ -69,13 +42,13 @@ check-xer:
pdu
=
`
echo
$$
f |
sed
-E
-e
"s/sample-([A-Za-z0-9-]+)-[0-9].*/
\1
/"
`
;
\
for
b
in
1 17 33 980 8192
;
do
\
echo
"Recoding
$$
f (
$$
pdu) into DER and back (
$$
b)..."
;
\
./
${
TARGET
}
-p
$$
pdu
-b
$$
b
-ixer
-oder
$$
f
>
./.tmp.1.
$$$$
||
exit
2
;
\
./
${
TARGET
}
-p
$$
pdu
-b
$$
b
-iber
-oxer
./.tmp.1.
$$$$
>
./.tmp.2.
$$$$
||
exit
3
;
\
./
${
ASN_PROGRAM
}
-p
$$
pdu
-b
$$
b
-ixer
-oder
$$
f
>
./.tmp.1.
$$$$
||
exit
2
;
\
./
${
ASN_PROGRAM
}
-p
$$
pdu
-b
$$
b
-iber
-oxer
./.tmp.1.
$$$$
>
./.tmp.2.
$$$$
||
exit
3
;
\
diff
$$
f ./.tmp.2.
$$$$
||
exit
4
;
\
rm
-f
./.tmp.[12].
$$$$
;
\
echo
"Test junking
$$
f (please wait)..."
;
\
./
${
TARGET
}
-J0
.0001
-n
1000
-p
$$
pdu
-b
$$
b
-ixer
-onull
$$
f
||
exit
5
;
\
./
${
TARGET
}
-J0
.001
-n
1000
-p
$$
pdu
-b
$$
b
-ixer
-onull
$$
f
||
exit
6
;
\
./
${
ASN_PROGRAM
}
-J0
.0001
-n
1000
-p
$$
pdu
-b
$$
b
-ixer
-onull
$$
f
||
exit
5
;
\
./
${
ASN_PROGRAM
}
-J0
.001
-n
1000
-p
$$
pdu
-b
$$
b
-ixer
-onull
$$
f
||
exit
6
;
\
done
;
done
;
fi
check-oer
:
...
...
@@ -84,13 +57,13 @@ check-oer:
pdu
=
`
echo
$$
f |
sed
-E
-e
"s/sample-([A-Za-z0-9-]+)-[0-9].*/
\1
/"
`
;
\
for
b
in
1 17 33 980 8192
;
do
\
echo
"Recoding
$$
f (
$$
pdu) into XER and back (
$$
b)..."
;
\
./
${
TARGET
}
-p
$$
pdu
-b
$$
b
-ioer
-oxer
$$
f
>
./.tmp.1.
$$$$
||
exit
2
;
\
./
${
TARGET
}
-p
$$
pdu
-b
$$
b
-ixer
-ooer
./.tmp.1.
$$$$
>
./.tmp.2.
$$$$
||
exit
3
;
\
./
${
ASN_PROGRAM
}
-p
$$
pdu
-b
$$
b
-ioer
-oxer
$$
f
>
./.tmp.1.
$$$$
||
exit
2
;
\
./
${
ASN_PROGRAM
}
-p
$$
pdu
-b
$$
b
-ixer
-ooer
./.tmp.1.
$$$$
>
./.tmp.2.
$$$$
||
exit
3
;
\
diff
$$
f ./.tmp.2.
$$$$
||
exit
4
;
\
rm
-f
./.tmp.[12].
$$$$
;
\
echo
"Test junking
$$
f (please wait) (
$$
b) ..."
;
\
./
${
TARGET
}
-J0
.0001
-n
1000
-p
$$
pdu
-b
$$
b
-ioer
-onull
$$
f
||
exit
5
;
\
./
${
TARGET
}
-J0
.001
-n
1000
-p
$$
pdu
-b
$$
b
-ioer
-onull
$$
f
||
exit
6
;
\
./
${
ASN_PROGRAM
}
-J0
.0001
-n
1000
-p
$$
pdu
-b
$$
b
-ioer
-onull
$$
f
||
exit
5
;
\
./
${
ASN_PROGRAM
}
-J0
.001
-n
1000
-p
$$
pdu
-b
$$
b
-ioer
-onull
$$
f
||
exit
6
;
\
done
;
done
;
fi
check-per
:
...
...
@@ -99,28 +72,28 @@ check-per:
pdu
=
`
echo
$$
f |
sed
-E
-e
"s/sample-([A-Za-z0-9-]+)-[0-9].*/
\1
/"
`
;
\
for
b
in
1 17 33 980 8192
;
do
\
echo
"Recoding non-padded
$$
f (
$$
pdu) into DER into XER and back (
$$
b)..."
;
\
./
${
TARGET
}
-p
$$
pdu
-b
$$
b
-per-nopad
-iper
-oder
$$
f
>
./.tmp.1.
$$$$
||
exit
2
;
\
./
${
TARGET
}
-p
$$
pdu
-b
$$
b
-iber
-oxer
./.tmp.1.
$$$$
>
./.tmp.2.
$$$$
||
exit
3
;
\
./
${
TARGET
}
-p
$$
pdu
-b
$$
b
-ixer
-oder
./.tmp.2.
$$$$
>
./.tmp.3.
$$$$
||
exit
4
;
\
./
${
ASN_PROGRAM
}
-p
$$
pdu
-b
$$
b
-per-nopad
-iper
-oder
$$
f
>
./.tmp.1.
$$$$
||
exit
2
;
\
./
${
ASN_PROGRAM
}
-p
$$
pdu
-b
$$
b
-iber
-oxer
./.tmp.1.
$$$$
>
./.tmp.2.
$$$$
||
exit
3
;
\
./
${
ASN_PROGRAM
}
-p
$$
pdu
-b
$$
b
-ixer
-oder
./.tmp.2.
$$$$
>
./.tmp.3.
$$$$
||
exit
4
;
\
diff ./.tmp.1.
$$$$
./.tmp.3.
$$$$
||
exit
5
;
\
rm
-f
./.tmp.[123].
$$$$
;
\
echo
"Test junking
$$
f (please wait)..."
;
\
./
${
TARGET
}
-J0
.0001
-n
1000
-p
$$
pdu
-b
$$
b
-per-nopad
-iper
-onull
$$
f
||
exit
6
;
\
./
${
TARGET
}
-J0
.001
-n
1000
-p
$$
pdu
-b
$$
b
-per-nopad
-iper
-onull
$$
f
||
exit
7
;
\
./
${
ASN_PROGRAM
}
-J0
.0001
-n
1000
-p
$$
pdu
-b
$$
b
-per-nopad
-iper
-onull
$$
f
||
exit
6
;
\
./
${
ASN_PROGRAM
}
-J0
.001
-n
1000
-p
$$
pdu
-b
$$
b
-per-nopad
-iper
-onull
$$
f
||
exit
7
;
\
done
;
done
;
fi
@
if
test
-f
sample-MegacoMessage-1.per
;
then
\
for
f
in
sample-
*
-[1-9].per
;
do
\
pdu
=
`
echo
$$
f |
sed
-E
-e
"s/sample-([A-Za-z0-9-]+)-[0-9].*/
\1
/"
`
;
\
for
b
in
1 17 33 980 8192
;
do
\
echo
"Recoding
$$
f (
$$
pdu) into DER into XER and back (
$$
b)..."
;
\
./
${
TARGET
}
-p
$$
pdu
-b
$$
b
-iper
-oder
$$
f
>
./.tmp.1.
$$$$
||
exit
3
;
\
./
${
TARGET
}
-p
$$
pdu
-b
$$
b
-iber
-oxer
./.tmp.1.
$$$$
>
./.tmp.2.
$$$$
||
exit
4
;
\
./
${
TARGET
}
-p
$$
pdu
-b
$$
b
-ixer
-oper
./.tmp.2.
$$$$
>
./.tmp.1.
$$$$
||
exit
5
;
\
./
${
ASN_PROGRAM
}
-p
$$
pdu
-b
$$
b
-iper
-oder
$$
f
>
./.tmp.1.
$$$$
||
exit
3
;
\
./
${
ASN_PROGRAM
}
-p
$$
pdu
-b
$$
b
-iber
-oxer
./.tmp.1.
$$$$
>
./.tmp.2.
$$$$
||
exit
4
;
\
./
${
ASN_PROGRAM
}
-p
$$
pdu
-b
$$
b
-ixer
-oper
./.tmp.2.
$$$$
>
./.tmp.1.
$$$$
||
exit
5
;
\
diff
$$
f ./.tmp.1.
$$$$
||
exit
6
;
\
rm
-f
./.tmp.[12].
$$$$
;
\
echo
"Test junking
$$
f (please wait)..."
;
\
./
${
TARGET
}
-J0
.0001
-n
1000
-p
$$
pdu
-b
$$
b
-iper
-onull
$$
f
||
exit
7
;
\
./
${
TARGET
}
-J0
.001
-n
1000
-p
$$
pdu
-b
$$
b
-iper
-onull
$$
f
||
exit
8
;
\
./
${
ASN_PROGRAM
}
-J0
.0001
-n
1000
-p
$$
pdu
-b
$$
b
-iper
-onull
$$
f
||
exit
7
;
\
./
${
ASN_PROGRAM
}
-J0
.001
-n
1000
-p
$$
pdu
-b
$$
b
-iper
-onull
$$
f
||
exit
8
;
\
done
;
done
;
fi
maybe-wip-pause
:
...
...
@@ -129,5 +102,5 @@ maybe-wip-pause:
distclean
:
clean
rm
-f
$(ASN_MODULE_SOURCES)
rm
-f
$(ASN_MODULE_HEADERS)
rm
-f
$(ASN_
CONVERTER_SOURCES)
$(ASN_CONVERTER
_HEADERS)
rm
-f
$(ASN_
PROGRAM_SOURCES)
$(ASN_PROGRAM
_HEADERS)
rm
-f
Makefile.am.example
examples/sample.source.RRC/Makefile
View file @
294aebc7
-include
Makefile.am.libasncodec
TARGET
=
rrc-dump
ASN_LIBRARY
=
libasncodec.a
LIBS
+=
-lm
CFLAGS
+=
-DHAVE_CONFIG_H
-DJUNKTEST
-D_DEFAULT_SOURCE
$(ASN_MODULE_CFLAGS)
-DPDU
=
DL_DCCH_Message
-DASN_PDU_COLLECTION
-I
.
ASN_CONVERTER_SOURCES
:=
\
converter-example.c
\
pdu_collection.c
all
:
maybe-wip-pause DL-DCCH-Message.c $(TARGET)
$(TARGET)
:
$(ASN_LIBRARY) $(ASN_CONVERTER_SOURCES:.c=.o)
$(CC)
$(CFLAGS)
$(CPPFLAGS)
-o
$(TARGET)
$(ASN_CONVERTER_SOURCES:.c=.o)
$(LDFLAGS)
$(ASN_LIBRARY)
$(LIBS)
$(ASN_LIBRARY)
:
$(ASN_MODULE_SOURCES:.c=.o)
$(AR)
rcs
$@
$^
.SUFFIXES
:
.SUFFIXES
:
.c .o
.c.o
:
$(CC)
$(CFLAGS)
-o
$@
-c
$<
clean
:
rm
-f
$(TARGET)
$(ASN_LIBRARY)
rm
-f
$(ASN_MODULE_SOURCES:.c=.o)
$(ASN_CONVERTER_SOURCES:.c=.o)
regen
:
regenerate-from-asn1-source
regenerate-from-asn1-source
:
../../asn1c/asn1c
-S
../../skeletons
-pdu
=
DL-DCCH-Message
-pdu
=
auto
-fcompound-names
-gen-PER
../rrc-7.1.0.asn1
ASN_PROGRAM
=
rrc-dump
CFLAGS
+=
-DHAVE_CONFIG_H
-DJUNKTEST
-D_DEFAULT_SOURCE
begin
:
DL-DCCH-Message.c maybe-wip-pause all
-include
Makefile.am.example
DL-DCCH-Message.c
:
../sample.makefile.regen ../rrc-7.1.0.asn1
make regen-makefile
...
...
@@ -44,7 +16,7 @@ regen-makefile:
ASN_PROGRAM
=
rrc-dump
\
../sample.makefile.regen
check
:
${
TARGET
} check-ber check-xer check-oer check-per
check
:
${
ASN_PROGRAM
} check-ber check-xer check-oer check-per
@
echo
================
@
echo
All tests passed
@
echo
================
...
...
@@ -55,13 +27,13 @@ check-ber:
pdu
=
`
echo
$$
f |
sed
-E
-e
"s/sample-([A-Za-z0-9-]+)-[0-9].*/
\1
/"
`
;
\
for
b
in
1 17 33 980 8192
;
do
\
echo
"Recoding
$$
f (
$$
pdu) into XER and back (
$$
b)..."
;
\
./
${
TARGET
}
-p
$$
pdu
-b
$$
b
-iber
-oxer
$$
f
>
./.tmp.1.
$$$$
||
exit
2
;
\
./
${
TARGET
}
-p
$$
pdu
-b
$$
b
-ixer
-oxer
./.tmp.1.
$$$$
>
./.tmp.2.
$$$$
||
exit
3
;
\
./
${
ASN_PROGRAM
}
-p
$$
pdu
-b
$$
b
-iber
-oxer
$$
f
>
./.tmp.1.
$$$$
||
exit
2
;
\
./
${
ASN_PROGRAM
}
-p
$$
pdu
-b
$$
b
-ixer
-oxer
./.tmp.1.
$$$$
>
./.tmp.2.
$$$$
||
exit
3
;
\
diff ./.tmp.1.
$$$$
./.tmp.2.
$$$$
||
exit
4
;
\
rm
-f
./.tmp.[12].
$$$$
;
\
echo
"Test junking
$$
f (please wait)..."
;
\
./
${
TARGET
}
-J0
.0001
-n
1000
-p
$$
pdu
-b
$$
b
-iber
-onull
$$
f
||
exit
5
;
\
./
${
TARGET
}
-J0
.001
-n
1000
-p
$$
pdu
-b
$$
b
-iber
-onull
$$
f
||
exit
6
;
\
./
${
ASN_PROGRAM
}
-J0
.0001
-n
1000
-p
$$
pdu
-b
$$
b
-iber
-onull
$$
f
||
exit
5
;
\
./
${
ASN_PROGRAM
}
-J0
.001
-n
1000
-p
$$
pdu
-b
$$
b
-iber
-onull
$$
f
||
exit
6
;
\
done
;
done
;
fi
check-xer
:
...
...
@@ -70,13 +42,13 @@ check-xer:
pdu
=
`
echo
$$
f |
sed
-E
-e
"s/sample-([A-Za-z0-9-]+)-[0-9].*/
\1
/"
`
;
\
for
b
in
1 17 33 980 8192
;
do
\
echo
"Recoding
$$
f (
$$
pdu) into DER and back (
$$
b)..."
;
\
./
${
TARGET
}
-p
$$
pdu
-b
$$
b
-ixer
-oder
$$
f
>
./.tmp.1.
$$$$
||
exit
2
;
\
./
${
TARGET
}
-p
$$
pdu
-b
$$
b
-iber
-oxer
./.tmp.1.
$$$$
>
./.tmp.2.
$$$$
||
exit
3
;
\
./
${
ASN_PROGRAM
}
-p
$$
pdu
-b
$$
b
-ixer
-oder
$$
f
>
./.tmp.1.
$$$$
||
exit
2
;
\
./
${
ASN_PROGRAM
}
-p
$$
pdu
-b
$$
b
-iber
-oxer
./.tmp.1.
$$$$
>
./.tmp.2.
$$$$
||
exit
3
;
\
diff
$$
f ./.tmp.2.
$$$$
||
exit
4
;
\
rm
-f
./.tmp.[12].
$$$$
;
\
echo
"Test junking
$$
f (please wait)..."
;
\
./
${
TARGET
}
-J0
.0001
-n
1000
-p
$$
pdu
-b
$$
b
-ixer
-onull
$$
f
||
exit
5
;
\
./
${
TARGET
}
-J0
.001
-n
1000
-p
$$
pdu
-b
$$
b
-ixer
-onull
$$
f
||
exit
6
;
\
./
${
ASN_PROGRAM
}
-J0
.0001
-n
1000
-p
$$
pdu
-b
$$
b
-ixer
-onull
$$
f
||
exit
5
;
\
./
${
ASN_PROGRAM
}
-J0
.001
-n
1000
-p
$$
pdu
-b
$$
b
-ixer
-onull
$$
f
||
exit
6
;
\
done
;
done
;
fi
check-oer
:
...
...
@@ -85,13 +57,13 @@ check-oer:
pdu
=
`
echo
$$
f |
sed
-E
-e
"s/sample-([A-Za-z0-9-]+)-[0-9].*/
\1
/"
`
;
\
for
b
in
1 17 33 980 8192
;
do
\
echo
"Recoding
$$
f (
$$
pdu) into XER and back (
$$
b)..."
;
\
./
${
TARGET
}
-p
$$
pdu
-b
$$
b
-ioer
-oxer
$$
f
>
./.tmp.1.
$$$$
||
exit
2
;
\
./
${
TARGET
}
-p
$$
pdu
-b
$$
b
-ixer
-ooer
./.tmp.1.
$$$$
>
./.tmp.2.
$$$$
||
exit
3
;
\
./
${
ASN_PROGRAM
}
-p
$$
pdu
-b
$$
b
-ioer
-oxer
$$
f
>
./.tmp.1.
$$$$
||
exit
2
;
\
./
${
ASN_PROGRAM
}
-p
$$
pdu
-b
$$
b
-ixer
-ooer
./.tmp.1.
$$$$
>
./.tmp.2.
$$$$
||
exit
3
;
\
diff
$$
f ./.tmp.2.
$$$$
||
exit
4
;
\
rm
-f
./.tmp.[12].
$$$$
;
\
echo
"Test junking
$$
f (please wait) (
$$
b) ..."
;
\
./
${
TARGET
}
-J0
.0001
-n
1000
-p
$$
pdu
-b
$$
b
-ioer
-onull
$$
f
||
exit
5
;
\
./
${
TARGET
}
-J0
.001
-n
1000
-p
$$
pdu
-b
$$
b
-ioer
-onull
$$
f
||
exit
6
;
\
./
${
ASN_PROGRAM
}
-J0
.0001
-n
1000
-p
$$
pdu
-b
$$
b
-ioer
-onull
$$
f
||
exit
5
;
\
./
${
ASN_PROGRAM
}
-J0
.001
-n
1000
-p
$$
pdu
-b
$$
b
-ioer
-onull
$$
f
||
exit
6
;
\
done
;
done
;
fi
check-per
:
...
...
@@ -100,28 +72,28 @@ check-per:
pdu
=
`
echo
$$
f |
sed
-E
-e
"s/sample-([A-Za-z0-9-]+)-[0-9].*/
\1
/"
`
;
\
for
b
in
1 17 33 980 8192
;
do
\
echo
"Recoding non-padded
$$
f (
$$
pdu) into DER into XER and back (
$$
b)..."
;
\
./
${
TARGET
}
-p
$$
pdu
-b
$$
b
-per-nopad
-iper
-oder
$$
f
>
./.tmp.1.
$$$$
||
exit
2
;
\
./
${
TARGET
}
-p
$$
pdu
-b
$$
b
-iber
-oxer
./.tmp.1.
$$$$
>
./.tmp.2.
$$$$
||
exit
3
;
\
./
${
TARGET
}
-p
$$
pdu
-b
$$
b
-ixer
-oder
./.tmp.2.
$$$$
>
./.tmp.3.
$$$$
||
exit
4
;
\
./
${
ASN_PROGRAM
}
-p
$$
pdu
-b
$$
b
-per-nopad
-iper
-oder
$$
f
>
./.tmp.1.
$$$$
||
exit
2
;
\
./
${
ASN_PROGRAM
}
-p
$$
pdu
-b
$$
b
-iber
-oxer
./.tmp.1.
$$$$
>
./.tmp.2.
$$$$
||
exit
3
;
\
./
${
ASN_PROGRAM
}
-p
$$
pdu
-b
$$
b
-ixer
-oder
./.tmp.2.
$$$$
>
./.tmp.3.
$$$$
||
exit
4
;
\
diff ./.tmp.1.
$$$$
./.tmp.3.
$$$$
||
exit
5
;
\
rm
-f
./.tmp.[123].
$$$$
;
\
echo
"Test junking
$$
f (please wait)..."
;
\
./
${
TARGET
}
-J0
.0001
-n
1000
-p
$$
pdu
-b
$$
b
-per-nopad
-iper
-onull
$$
f
||
exit
6
;
\
./
${
TARGET
}
-J0
.001
-n
1000
-p
$$
pdu
-b
$$
b
-per-nopad
-iper
-onull
$$
f
||
exit
7
;
\
./
${
ASN_PROGRAM
}
-J0
.0001
-n
1000
-p
$$
pdu
-b
$$
b
-per-nopad
-iper
-onull
$$
f
||
exit
6
;
\
./
${
ASN_PROGRAM
}
-J0
.001
-n
1000
-p
$$
pdu
-b
$$
b
-per-nopad
-iper
-onull
$$
f
||
exit
7
;
\
done
;
done
;
fi
@
if
test
-f
sample-DL-DCCH-Message-1.per
;
then
\
for
f
in
sample-
*
-[1-9].per
;
do
\
pdu
=
`
echo
$$
f |
sed
-E
-e
"s/sample-([A-Za-z0-9-]+)-[0-9].*/
\1
/"
`
;
\
for
b
in
1 17 33 980 8192
;
do
\
echo
"Recoding
$$
f (
$$
pdu) into DER into XER and back (
$$
b)..."
;
\
./
${
TARGET
}
-p
$$
pdu
-b
$$
b
-iper
-oder
$$
f
>
./.tmp.1.
$$$$
||
exit
3
;
\
./
${
TARGET
}
-p
$$
pdu
-b
$$
b
-iber
-oxer
./.tmp.1.
$$$$
>
./.tmp.2.
$$$$
||
exit
4
;
\
./
${
TARGET
}
-p
$$
pdu
-b
$$
b
-ixer
-oper
./.tmp.2.
$$$$
>
./.tmp.1.
$$$$
||
exit
5
;
\
./
${
ASN_PROGRAM
}
-p
$$
pdu
-b
$$
b
-iper
-oder
$$
f
>
./.tmp.1.
$$$$
||
exit
3
;
\
./
${
ASN_PROGRAM
}
-p
$$
pdu
-b
$$
b
-iber
-oxer
./.tmp.1.
$$$$
>
./.tmp.2.
$$$$
||
exit
4
;
\
./
${
ASN_PROGRAM
}
-p
$$
pdu
-b
$$
b
-ixer
-oper
./.tmp.2.
$$$$
>
./.tmp.1.
$$$$
||
exit
5
;
\
diff
$$
f ./.tmp.1.
$$$$
||
exit
6
;
\
rm
-f
./.tmp.[12].
$$$$
;
\
echo
"Test junking
$$
f (please wait)..."
;
\
./
${
TARGET
}
-J0
.0001
-n
1000
-p
$$
pdu
-b
$$
b
-iper
-onull
$$
f
||
exit
7
;
\
./
${
TARGET
}
-J0
.001
-n
1000
-p
$$
pdu
-b
$$
b
-iper
-onull
$$
f
||
exit
8
;
\
./
${
ASN_PROGRAM
}
-J0
.0001
-n
1000
-p
$$
pdu
-b
$$
b
-iper
-onull
$$
f
||
exit
7
;
\
./
${
ASN_PROGRAM
}
-J0
.001
-n
1000
-p
$$
pdu
-b
$$
b
-iper
-onull
$$
f
||
exit
8
;
\
done
;
done
;
fi
maybe-wip-pause
:
...
...
@@ -130,5 +102,5 @@ maybe-wip-pause:
distclean
:
clean
rm
-f
$(ASN_MODULE_SOURCES)
rm
-f
$(ASN_MODULE_HEADERS)
rm
-f
$(ASN_
CONVERTER_SOURCES)
$(ASN_CONVERTER
_HEADERS)
rm
-f
$(ASN_
PROGRAM_SOURCES)
$(ASN_PROGRAM
_HEADERS)
rm
-f
Makefile.am.example
examples/sample.source.TAP3/Makefile
View file @
294aebc7
-include
Makefile.am.libasncodec
TARGET
=
tap3dump
ASN_LIBRARY
=
libasncodec.a
LIBS
+=
-lm
CFLAGS
+=
-DASN_CONVERTER_TITLE
=
"GSM TAP3 (Transferred Account Procedure, Version 3) decoder"
-DHAVE_CONFIG_H
-DJUNKTEST
-D_DEFAULT_SOURCE
$(ASN_MODULE_CFLAGS)
-DPDU
=
DataInterChange
-I
.
ASN_CONVERTER_SOURCES
:=
\
converter-example.c
all
:
maybe-wip-pause DataInterChange.c $(TARGET)
$(TARGET)
:
$(ASN_LIBRARY) $(ASN_CONVERTER_SOURCES:.c=.o)
$(CC)
$(CFLAGS)
$(CPPFLAGS)
-o
$(TARGET)
$(ASN_CONVERTER_SOURCES:.c=.o)
$(LDFLAGS)
$(ASN_LIBRARY)
$(LIBS)
$(ASN_LIBRARY)
:
$(ASN_MODULE_SOURCES:.c=.o)
$(AR)
rcs
$@
$^
.SUFFIXES
:
.SUFFIXES
:
.c .o
.c.o
:
$(CC)
$(CFLAGS)
-o
$@
-c
$<
clean
:
rm
-f
$(TARGET)
$(ASN_LIBRARY)
rm
-f
$(ASN_MODULE_SOURCES:.c=.o)
$(ASN_CONVERTER_SOURCES:.c=.o)
regen
:
regenerate-from-asn1-source
regenerate-from-asn1-source
:
../../asn1c/asn1c
-S
../../skeletons
-pdu
=
DataInterChange ../tap3.asn1
ASN_PROGRAM
=
tap3dump
CFLAGS
+=
-DASN_CONVERTER_TITLE
=
"GSM TAP3 (Transferred Account Procedure, Version 3) decoder"
-DHAVE_CONFIG_H
-DJUNKTEST
-D_DEFAULT_SOURCE
begin
:
DataInterChange.c maybe-wip-pause all
-include
Makefile.am.example
DataInterChange.c
:
../sample.makefile.regen ../tap3.asn1
make regen-makefile
...
...
@@ -44,7 +17,7 @@ regen-makefile:
ASN_PROGRAM
=
tap3dump
\
../sample.makefile.regen
check
:
${
TARGET
} check-ber check-xer check-oer check-per
check
:
${
ASN_PROGRAM
} check-ber check-xer check-oer check-per
@
echo
================
@
echo
All tests passed
@
echo
================
...
...
@@ -55,13 +28,13 @@ check-ber:
pdu
=
`
echo
$$
f |
sed
-E
-e
"s/sample-([A-Za-z0-9-]+)-[0-9].*/
\1
/"
`
;
\
for
b
in
1 17 33 980 8192
;
do
\
echo
"Recoding
$$
f (
$$
pdu) into XER and back (
$$
b)..."
;
\
./
${
TARGET
}
-p
$$
pdu
-b
$$
b
-iber
-oxer
$$
f
>
./.tmp.1.
$$$$
||
exit
2
;
\
./
${
TARGET
}
-p
$$
pdu
-b
$$
b
-ixer
-oxer
./.tmp.1.
$$$$
>
./.tmp.2.
$$$$
||
exit
3
;
\
./
${
ASN_PROGRAM
}
-p
$$
pdu
-b
$$
b
-iber
-oxer
$$
f
>
./.tmp.1.
$$$$
||
exit
2
;
\
./
${
ASN_PROGRAM
}
-p
$$
pdu
-b
$$
b
-ixer
-oxer
./.tmp.1.
$$$$
>
./.tmp.2.
$$$$
||
exit
3
;
\
diff ./.tmp.1.
$$$$
./.tmp.2.
$$$$
||
exit
4
;
\
rm
-f
./.tmp.[12].
$$$$
;
\
echo
"Test junking
$$
f (please wait)..."
;
\
./
${
TARGET
}
-J0
.0001
-n
1000
-p
$$
pdu
-b
$$
b
-iber
-onull
$$
f
||
exit
5
;
\
./
${
TARGET
}
-J0
.001
-n
1000
-p
$$
pdu
-b
$$
b
-iber
-onull
$$
f
||
exit
6
;
\
./
${
ASN_PROGRAM
}
-J0
.0001
-n
1000
-p
$$
pdu
-b
$$
b
-iber
-onull
$$
f
||
exit
5
;
\
./
${
ASN_PROGRAM
}
-J0
.001
-n
1000
-p
$$
pdu
-b
$$
b
-iber
-onull
$$
f
||
exit
6
;
\
done
;
done
;
fi
check-xer
:
...
...
@@ -70,13 +43,13 @@ check-xer:
pdu
=
`
echo
$$
f |
sed
-E
-e
"s/sample-([A-Za-z0-9-]+)-[0-9].*/
\1
/"
`
;
\
for
b
in
1 17 33 980 8192
;
do
\
echo
"Recoding
$$
f (
$$
pdu) into DER and back (
$$
b)..."
;
\
./
${
TARGET
}
-p
$$
pdu
-b
$$
b
-ixer
-oder
$$
f
>
./.tmp.1.
$$$$
||
exit
2
;
\
./
${
TARGET
}
-p
$$
pdu
-b
$$
b
-iber
-oxer
./.tmp.1.
$$$$
>
./.tmp.2.
$$$$
||
exit
3
;
\
./
${
ASN_PROGRAM
}
-p
$$
pdu
-b
$$
b
-ixer
-oder
$$
f
>
./.tmp.1.
$$$$
||
exit
2
;
\
./
${
ASN_PROGRAM
}
-p
$$
pdu
-b
$$
b
-iber
-oxer
./.tmp.1.
$$$$
>
./.tmp.2.
$$$$
||
exit
3
;
\
diff
$$
f ./.tmp.2.
$$$$
||
exit
4
;
\
rm
-f
./.tmp.[12].
$$$$
;
\
echo
"Test junking
$$
f (please wait)..."
;
\
./
${
TARGET
}
-J0
.0001
-n
1000
-p
$$
pdu
-b
$$
b
-ixer
-onull
$$
f
||
exit
5
;
\
./
${
TARGET
}
-J0
.001
-n
1000
-p
$$
pdu
-b
$$
b
-ixer
-onull
$$
f
||
exit
6
;
\
./
${
ASN_PROGRAM
}
-J0
.0001
-n
1000
-p
$$
pdu
-b
$$
b
-ixer
-onull
$$
f
||
exit
5
;
\
./
${
ASN_PROGRAM
}
-J0
.001
-n
1000
-p
$$
pdu
-b
$$
b
-ixer
-onull
$$
f
||
exit
6
;
\
done
;
done
;
fi
check-oer
:
...
...
@@ -85,13 +58,13 @@ check-oer:
pdu
=
`
echo
$$
f |
sed
-E
-e
"s/sample-([A-Za-z0-9-]+)-[0-9].*/
\1
/"
`
;
\
for
b
in
1 17 33 980 8192
;
do
\
echo
"Recoding
$$
f (
$$
pdu) into XER and back (
$$
b)..."
;
\
./
${
TARGET
}
-p
$$
pdu
-b
$$
b
-ioer
-oxer
$$
f
>
./.tmp.1.
$$$$
||
exit
2
;
\
./
${
TARGET
}
-p
$$
pdu
-b
$$
b
-ixer
-ooer
./.tmp.1.
$$$$
>
./.tmp.2.
$$$$
||
exit
3
;
\
./
${
ASN_PROGRAM
}
-p
$$
pdu
-b
$$
b
-ioer
-oxer
$$
f
>
./.tmp.1.
$$$$
||
exit
2
;
\
./
${
ASN_PROGRAM
}
-p
$$
pdu
-b
$$
b
-ixer
-ooer
./.tmp.1.
$$$$
>
./.tmp.2.
$$$$
||
exit
3
;
\
diff
$$
f ./.tmp.2.
$$$$
||
exit
4
;
\
rm
-f
./.tmp.[12].
$$$$
;
\
echo
"Test junking
$$
f (please wait) (
$$
b) ..."
;
\
./
${
TARGET
}
-J0
.0001
-n
1000
-p
$$
pdu
-b
$$
b
-ioer
-onull
$$
f
||
exit
5
;
\
./
${
TARGET
}
-J0
.001
-n
1000
-p
$$
pdu
-b
$$
b
-ioer
-onull
$$
f
||
exit
6
;
\
./
${
ASN_PROGRAM
}
-J0
.0001
-n
1000
-p
$$
pdu
-b
$$
b
-ioer
-onull
$$
f
||
exit
5
;
\
./
${
ASN_PROGRAM
}
-J0
.001
-n
1000
-p
$$
pdu
-b
$$
b
-ioer
-onull
$$
f
||
exit
6
;
\
done
;
done
;
fi
check-per
:
...
...
@@ -100,28 +73,28 @@ check-per:
pdu
=
`
echo
$$
f |
sed
-E
-e
"s/sample-([A-Za-z0-9-]+)-[0-9].*/
\1
/"
`
;
\
for
b
in
1 17 33 980 8192
;
do
\
echo
"Recoding non-padded
$$
f (
$$
pdu) into DER into XER and back (
$$
b)..."
;
\
./
${
TARGET
}
-p
$$
pdu
-b
$$
b
-per-nopad
-iper
-oder
$$
f
>
./.tmp.1.
$$$$
||
exit
2
;
\
./
${
TARGET
}
-p
$$
pdu
-b
$$
b
-iber
-oxer
./.tmp.1.
$$$$
>
./.tmp.2.
$$$$
||
exit
3
;
\
./
${
TARGET
}
-p
$$
pdu
-b
$$
b
-ixer
-oder
./.tmp.2.
$$$$
>
./.tmp.3.
$$$$
||
exit
4
;
\
./
${
ASN_PROGRAM
}
-p
$$
pdu
-b
$$
b
-per-nopad
-iper
-oder
$$
f
>
./.tmp.1.
$$$$
||
exit
2
;
\
./
${
ASN_PROGRAM
}
-p
$$
pdu
-b
$$
b
-iber
-oxer
./.tmp.1.
$$$$
>
./.tmp.2.
$$$$
||
exit
3
;
\
./
${
ASN_PROGRAM
}
-p
$$
pdu
-b
$$
b
-ixer
-oder
./.tmp.2.
$$$$
>
./.tmp.3.
$$$$
||
exit
4
;
\
diff ./.tmp.1.
$$$$
./.tmp.3.
$$$$
||
exit
5
;
\
rm
-f
./.tmp.[123].
$$$$
;
\
echo
"Test junking
$$
f (please wait)..."
;
\
./
${
TARGET
}
-J0
.0001
-n
1000
-p
$$
pdu
-b
$$
b
-per-nopad
-iper
-onull
$$
f
||
exit
6
;
\
./
${
TARGET
}
-J0
.001
-n
1000
-p
$$
pdu
-b
$$
b
-per-nopad
-iper
-onull
$$
f
||
exit
7
;
\
./
${
ASN_PROGRAM
}
-J0
.0001
-n
1000
-p
$$
pdu
-b
$$
b
-per-nopad
-iper
-onull
$$
f
||
exit
6
;
\
./
${
ASN_PROGRAM
}
-J0
.001
-n
1000
-p
$$
pdu
-b
$$
b
-per-nopad
-iper
-onull
$$
f
||
exit
7
;
\
done
;
done
;
fi
@
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-z0-9-]+)-[0-9].*/
\1
/"
`
;
\
for
b
in
1 17 33 980 8192
;
do
\
echo
"Recoding
$$
f (
$$
pdu) into DER into XER and back (
$$
b)..."
;
\
./
${
TARGET
}
-p
$$
pdu
-b
$$
b
-iper
-oder
$$
f
>
./.tmp.1.
$$$$
||
exit
3
;
\
./
${
TARGET
}
-p
$$
pdu
-b
$$
b
-iber
-oxer
./.tmp.1.
$$$$
>
./.tmp.2.
$$$$
||
exit
4
;
\
./
${
TARGET
}
-p
$$
pdu
-b
$$
b
-ixer
-oper
./.tmp.2.
$$$$
>
./.tmp.1.
$$$$
||
exit
5
;
\
./
${
ASN_PROGRAM
}
-p
$$
pdu
-b
$$
b
-iper
-oder
$$
f
>
./.tmp.1.
$$$$
||
exit
3
;
\
./
${
ASN_PROGRAM
}
-p
$$
pdu
-b
$$
b
-iber
-oxer
./.tmp.1.
$$$$
>
./.tmp.2.
$$$$
||
exit
4
;
\
./
${
ASN_PROGRAM
}
-p
$$
pdu
-b
$$
b
-ixer
-oper
./.tmp.2.
$$$$
>
./.tmp.1.
$$$$
||
exit
5
;
\
diff
$$
f ./.tmp.1.
$$$$
||
exit
6
;
\
rm
-f
./.tmp.[12].
$$$$
;
\
echo
"Test junking
$$
f (please wait)..."
;
\
./
${
TARGET
}
-J0
.0001
-n
1000
-p
$$
pdu
-b
$$
b
-iper
-onull
$$
f
||
exit
7
;
\
./
${
TARGET
}
-J0
.001
-n
1000
-p
$$
pdu
-b
$$
b
-iper
-onull
$$
f
||
exit
8
;
\
./
${
ASN_PROGRAM
}
-J0
.0001
-n
1000
-p
$$
pdu
-b
$$
b
-iper
-onull
$$
f
||
exit
7
;
\
./
${
ASN_PROGRAM
}
-J0
.001
-n
1000
-p
$$
pdu
-b
$$
b
-iper
-onull
$$
f
||
exit
8
;
\
done
;
done
;
fi
maybe-wip-pause
:
...
...
@@ -130,5 +103,5 @@ maybe-wip-pause:
distclean
:
clean
rm
-f
$(ASN_MODULE_SOURCES)
rm
-f
$(ASN_MODULE_HEADERS)
rm
-f
$(ASN_
CONVERTER_SOURCES)
$(ASN_CONVERTER
_HEADERS)
rm
-f
$(ASN_
PROGRAM_SOURCES)
$(ASN_PROGRAM
_HEADERS)
rm
-f
Makefile.am.example
examples/sample.source.ULP/Makefile
View file @
294aebc7
-include
Makefile.am.libasncodec
TARGET
=
ulp-dump
ASN_LIBRARY
=
libasncodec.a
LIBS
+=
-lm
CFLAGS
+=
-DASN_CONVERTER_TITLE
=
"OMA UserPlane Location Protocol decoder"
-DHAVE_CONFIG_H
-DJUNKTEST
-D_DEFAULT_SOURCE
$(ASN_MODULE_CFLAGS)
-DPDU
=
ULP_PDU
-DASN_PDU_COLLECTION
-I
.
ASN_CONVERTER_SOURCES
:=
\
converter-example.c
\
pdu_collection.c
all
:
maybe-wip-pause ULP-PDU.c $(TARGET)
$(TARGET)
:
$(ASN_LIBRARY) $(ASN_CONVERTER_SOURCES:.c=.o)
$(CC)
$(CFLAGS)
$(CPPFLAGS)
-o
$(TARGET)
$(ASN_CONVERTER_SOURCES:.c=.o)
$(LDFLAGS)
$(ASN_LIBRARY)
$(LIBS)
$(ASN_LIBRARY)
:
$(ASN_MODULE_SOURCES:.c=.o)
$(AR)
rcs
$@
$^
.SUFFIXES
:
.SUFFIXES
:
.c .o
.c.o
:
$(CC)
$(CFLAGS)
-o
$@
-c
$<
clean
:
rm
-f
$(TARGET)
$(ASN_LIBRARY)
rm
-f
$(ASN_MODULE_SOURCES:.c=.o)
$(ASN_CONVERTER_SOURCES:.c=.o)
regen
:
regenerate-from-asn1-source
regenerate-from-asn1-source
:
../../asn1c/asn1c
-S
../../skeletons
-pdu
=
ULP-PDU
-pdu
=
SUPLINIT
-fcompound-names
-gen-PER
../ulp.asn1
ASN_PROGRAM
=
ulp-dump
CFLAGS
+=
-DASN_CONVERTER_TITLE
=
"OMA UserPlane Location Protocol decoder"
-DHAVE_CONFIG_H
-DJUNKTEST
-D_DEFAULT_SOURCE
begin
:
ULP-PDU.c maybe-wip-pause all
-include
Makefile.am.example
ULP-PDU.c
:
../sample.makefile.regen ../ulp.asn1
make regen-makefile
...
...
@@ -45,7 +17,7 @@ regen-makefile:
ASN_PROGRAM
=
ulp-dump
\
../sample.makefile.regen
check
:
${
TARGET
} check-ber check-xer check-oer check-per
check
:
${
ASN_PROGRAM
} check-ber check-xer check-oer check-per
@
echo
================
@
echo
All tests passed
@
echo
================
...
...
@@ -56,13 +28,13 @@ check-ber:
pdu
=
`
echo
$$
f |
sed
-E
-e
"s/sample-([A-Za-z0-9-]+)-[0-9].*/
\1
/"
`
;
\
for
b
in
1 17 33 980 8192
;
do
\
echo
"Recoding
$$
f (
$$
pdu) into XER and back (
$$
b)..."
;
\
./
${
TARGET
}
-p
$$
pdu
-b
$$
b
-iber
-oxer
$$
f
>
./.tmp.1.
$$$$
||
exit
2
;
\
./
${
TARGET
}
-p
$$
pdu
-b
$$
b
-ixer
-oxer
./.tmp.1.
$$$$
>
./.tmp.2.
$$$$
||
exit
3
;
\
./
${
ASN_PROGRAM
}
-p
$$
pdu
-b
$$
b
-iber
-oxer
$$
f
>
./.tmp.1.
$$$$
||
exit
2
;
\
./
${
ASN_PROGRAM
}
-p
$$
pdu
-b
$$
b
-ixer
-oxer
./.tmp.1.
$$$$
>
./.tmp.2.
$$$$
||
exit
3
;
\
diff ./.tmp.1.
$$$$
./.tmp.2.
$$$$
||
exit
4
;
\
rm
-f
./.tmp.[12].
$$$$
;
\
echo
"Test junking
$$
f (please wait)..."
;
\
./
${
TARGET
}
-J0
.0001
-n
1000
-p
$$
pdu
-b
$$
b
-iber
-onull
$$
f
||
exit
5
;
\
./
${
TARGET
}
-J0
.001
-n
1000
-p
$$
pdu
-b
$$
b
-iber
-onull
$$
f
||
exit
6
;
\
./
${
ASN_PROGRAM
}
-J0
.0001
-n
1000
-p
$$
pdu
-b
$$
b
-iber
-onull
$$
f
||
exit
5
;
\
./
${
ASN_PROGRAM
}
-J0
.001
-n
1000
-p
$$
pdu
-b
$$
b
-iber
-onull
$$
f
||
exit
6
;
\
done
;
done
;
fi
check-xer
:
...
...
@@ -71,13 +43,13 @@ check-xer:
pdu
=
`
echo
$$
f |
sed
-E
-e
"s/sample-([A-Za-z0-9-]+)-[0-9].*/
\1
/"
`
;
\
for
b
in
1 17 33 980 8192
;
do
\
echo
"Recoding
$$
f (
$$
pdu) into DER and back (
$$
b)..."
;
\
./
${
TARGET
}
-p
$$
pdu
-b
$$
b
-ixer
-oder
$$
f
>
./.tmp.1.
$$$$
||
exit
2
;
\
./
${
TARGET
}
-p
$$
pdu
-b
$$
b
-iber
-oxer
./.tmp.1.
$$$$
>
./.tmp.2.
$$$$
||
exit
3
;
\
./
${
ASN_PROGRAM
}
-p
$$
pdu
-b
$$
b
-ixer
-oder
$$
f
>
./.tmp.1.
$$$$
||
exit
2
;
\
./
${
ASN_PROGRAM
}
-p
$$
pdu
-b
$$
b
-iber
-oxer
./.tmp.1.
$$$$
>
./.tmp.2.
$$$$
||
exit
3
;
\
diff
$$
f ./.tmp.2.
$$$$
||
exit
4
;
\
rm
-f
./.tmp.[12].
$$$$
;
\
echo
"Test junking
$$
f (please wait)..."
;
\
./
${
TARGET
}
-J0
.0001
-n
1000
-p
$$
pdu
-b
$$
b
-ixer
-onull
$$
f
||
exit
5
;
\
./
${
TARGET
}
-J0
.001
-n
1000
-p
$$
pdu
-b
$$
b
-ixer
-onull
$$
f
||
exit
6
;
\
./
${
ASN_PROGRAM
}
-J0
.0001
-n
1000
-p
$$
pdu
-b
$$
b
-ixer
-onull
$$
f
||
exit
5
;
\
./
${
ASN_PROGRAM
}
-J0
.001
-n
1000
-p
$$
pdu
-b
$$
b
-ixer
-onull
$$
f
||
exit
6
;
\
done
;
done
;
fi
check-oer
:
...
...
@@ -86,13 +58,13 @@ check-oer:
pdu
=
`
echo
$$
f |
sed
-E
-e
"s/sample-([A-Za-z0-9-]+)-[0-9].*/
\1
/"
`
;
\
for
b
in
1 17 33 980 8192
;
do
\
echo
"Recoding
$$
f (
$$
pdu) into XER and back (
$$
b)..."
;
\
./
${
TARGET
}
-p
$$
pdu
-b
$$
b
-ioer
-oxer
$$
f
>
./.tmp.1.
$$$$
||
exit
2
;
\
./
${
TARGET
}
-p
$$
pdu
-b
$$
b
-ixer
-ooer
./.tmp.1.
$$$$
>
./.tmp.2.
$$$$
||
exit
3
;
\
./
${
ASN_PROGRAM
}
-p
$$
pdu
-b
$$
b
-ioer
-oxer
$$
f
>
./.tmp.1.
$$$$
||
exit
2
;
\
./
${
ASN_PROGRAM
}
-p
$$
pdu
-b
$$
b
-ixer
-ooer
./.tmp.1.
$$$$
>
./.tmp.2.
$$$$
||
exit
3
;
\
diff
$$
f ./.tmp.2.
$$$$
||
exit
4
;
\
rm
-f
./.tmp.[12].
$$$$
;
\
echo
"Test junking
$$
f (please wait) (
$$
b) ..."
;
\
./
${
TARGET
}
-J0
.0001
-n
1000
-p
$$
pdu
-b
$$
b
-ioer
-onull
$$
f
||
exit
5
;
\
./
${
TARGET
}
-J0
.001
-n
1000
-p
$$
pdu
-b
$$
b
-ioer
-onull
$$
f
||
exit
6
;
\
./
${
ASN_PROGRAM
}
-J0
.0001
-n
1000
-p
$$
pdu
-b
$$
b
-ioer
-onull
$$
f
||
exit
5
;
\
./
${
ASN_PROGRAM
}
-J0
.001
-n
1000
-p
$$
pdu
-b
$$
b
-ioer
-onull
$$
f
||
exit
6
;
\
done
;
done
;
fi
check-per
:
...
...
@@ -101,28 +73,28 @@ check-per:
pdu
=
`
echo
$$
f |
sed
-E
-e
"s/sample-([A-Za-z0-9-]+)-[0-9].*/
\1
/"
`
;
\
for
b
in
1 17 33 980 8192
;
do
\
echo
"Recoding non-padded
$$
f (
$$
pdu) into DER into XER and back (
$$
b)..."
;
\
./
${
TARGET
}
-p
$$
pdu
-b
$$
b
-per-nopad
-iper
-oder
$$
f
>
./.tmp.1.
$$$$
||
exit
2
;
\
./
${
TARGET
}
-p
$$
pdu
-b
$$
b
-iber
-oxer
./.tmp.1.
$$$$
>
./.tmp.2.
$$$$
||
exit
3
;
\
./
${
TARGET
}
-p
$$
pdu
-b
$$
b
-ixer
-oder
./.tmp.2.
$$$$
>
./.tmp.3.
$$$$
||
exit
4
;
\
./
${
ASN_PROGRAM
}
-p
$$
pdu
-b
$$
b
-per-nopad
-iper
-oder
$$
f
>
./.tmp.1.
$$$$
||
exit
2
;
\
./
${
ASN_PROGRAM
}
-p
$$
pdu
-b
$$
b
-iber
-oxer
./.tmp.1.
$$$$
>
./.tmp.2.
$$$$
||
exit
3
;
\
./
${
ASN_PROGRAM
}
-p
$$
pdu
-b
$$
b
-ixer
-oder
./.tmp.2.
$$$$
>
./.tmp.3.
$$$$
||
exit
4
;
\
diff ./.tmp.1.
$$$$
./.tmp.3.
$$$$
||
exit
5
;
\
rm
-f
./.tmp.[123].
$$$$
;
\
echo
"Test junking
$$
f (please wait)..."
;
\
./
${
TARGET
}
-J0
.0001
-n
1000
-p
$$
pdu
-b
$$
b
-per-nopad
-iper
-onull
$$
f
||
exit
6
;
\
./
${
TARGET
}
-J0
.001
-n
1000
-p
$$
pdu
-b
$$
b
-per-nopad
-iper
-onull
$$
f
||
exit
7
;
\
./
${
ASN_PROGRAM
}
-J0
.0001
-n
1000
-p
$$
pdu
-b
$$
b
-per-nopad
-iper
-onull
$$
f
||
exit
6
;
\
./
${
ASN_PROGRAM
}
-J0
.001
-n
1000
-p
$$
pdu
-b
$$
b
-per-nopad
-iper
-onull
$$
f
||
exit
7
;
\
done
;
done
;
fi
@
if
test
-f
sample-ULP-PDU-1.per
;
then
\
for
f
in
sample-
*
-[1-9].per
;
do
\
pdu
=
`
echo
$$
f |
sed
-E
-e
"s/sample-([A-Za-z0-9-]+)-[0-9].*/
\1
/"
`
;
\
for
b
in
1 17 33 980 8192
;
do
\
echo
"Recoding
$$
f (
$$
pdu) into DER into XER and back (
$$
b)..."
;
\
./
${
TARGET
}
-p
$$
pdu
-b
$$
b
-iper
-oder
$$
f
>
./.tmp.1.
$$$$
||
exit
3
;
\
./
${
TARGET
}
-p
$$
pdu
-b
$$
b
-iber
-oxer
./.tmp.1.
$$$$
>
./.tmp.2.
$$$$
||
exit
4
;
\
./
${
TARGET
}
-p
$$
pdu
-b
$$
b
-ixer
-oper
./.tmp.2.
$$$$
>
./.tmp.1.
$$$$
||
exit
5
;
\
./
${
ASN_PROGRAM
}
-p
$$
pdu
-b
$$
b
-iper
-oder
$$
f
>
./.tmp.1.
$$$$
||
exit
3
;
\
./
${
ASN_PROGRAM
}
-p
$$
pdu
-b
$$
b
-iber
-oxer
./.tmp.1.
$$$$
>
./.tmp.2.
$$$$
||
exit
4
;
\
./
${
ASN_PROGRAM
}
-p
$$
pdu
-b
$$
b
-ixer
-oper
./.tmp.2.
$$$$
>
./.tmp.1.
$$$$
||
exit
5
;
\
diff
$$
f ./.tmp.1.
$$$$
||
exit
6
;
\
rm
-f
./.tmp.[12].
$$$$
;
\
echo
"Test junking
$$
f (please wait)..."
;
\
./
${
TARGET
}
-J0
.0001
-n
1000
-p
$$
pdu
-b
$$
b
-iper
-onull
$$
f
||
exit
7
;
\
./
${
TARGET
}
-J0
.001
-n
1000
-p
$$
pdu
-b
$$
b
-iper
-onull
$$
f
||
exit
8
;
\
./
${
ASN_PROGRAM
}
-J0
.0001
-n
1000
-p
$$
pdu
-b
$$
b
-iper
-onull
$$
f
||
exit
7
;
\
./
${
ASN_PROGRAM
}
-J0
.001
-n
1000
-p
$$
pdu
-b
$$
b
-iper
-onull
$$
f
||
exit
8
;
\
done
;
done
;
fi
maybe-wip-pause
:
...
...
@@ -131,5 +103,5 @@ maybe-wip-pause:
distclean
:
clean
rm
-f
$(ASN_MODULE_SOURCES)
rm
-f
$(ASN_MODULE_HEADERS)
rm
-f
$(ASN_
CONVERTER_SOURCES)
$(ASN_CONVERTER
_HEADERS)
rm
-f
$(ASN_
PROGRAM_SOURCES)
$(ASN_PROGRAM
_HEADERS)
rm
-f
Makefile.am.example
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment