sccp_codec: SCCP point codes are little-endian !
we parsed and generated them as big-endian so far, which is wrong.
diff --git a/src/sccp_codec.erl b/src/sccp_codec.erl
index 25ad05b..137812b 100644
--- a/src/sccp_codec.erl
+++ b/src/sccp_codec.erl
@@ -32,7 +32,7 @@
parse_point_code(BinPC, PCind) when is_binary(BinPC) ->
case PCind of
1 ->
- <<PointCode:16/big, Remain/binary>> = BinPC;
+ <<PointCode:16/little, Remain/binary>> = BinPC;
_ ->
Remain = BinPC,
PointCode = undef
@@ -272,7 +272,7 @@
undef ->
{0, <<>>};
_ ->
- {1, <<PointCode:16/big>>}
+ {1, <<PointCode:16/little>>}
end.
encode_ssn(SSN) ->