From 9c3b1bb25f37c0d9634a9460ac2d709ee81e20d6 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Wed, 12 Oct 2011 17:00:34 +0200 Subject: sccp_codec: SCCP point codes are little-endian ! we parsed and generated them as big-endian so far, which is wrong. --- src/sccp_codec.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -> - <> = BinPC; + <> = BinPC; _ -> Remain = BinPC, PointCode = undef @@ -272,7 +272,7 @@ encode_pc(PointCode) -> undef -> {0, <<>>}; _ -> - {1, <>} + {1, <>} end. encode_ssn(SSN) -> -- cgit v1.2.3