From 0402b8f1acca19a798d2dfc2a2e32bba2bfd2df9 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Tue, 27 Aug 2013 12:12:02 +0200 Subject: MTP3: OPC and DPC elements were switched --- src/mtp3_codec.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/mtp3_codec.erl b/src/mtp3_codec.erl index 49d575e..39c8c5f 100644 --- a/src/mtp3_codec.erl +++ b/src/mtp3_codec.erl @@ -45,7 +45,7 @@ parse_mtp3_routing_label(_, LabelBin) when is_binary(LabelBin) -> % we need to swap the four bytes and then parse the fields <> = LabelBin, LabelRev = <>, - <> = LabelRev, + <> = LabelRev, {ok, #mtp3_routing_label{sig_link_sel = Sls, origin_pc = Opc, dest_pc = Dpc}, Remain}. parse_mtp3_msg(DataBin) when is_binary(DataBin) -> @@ -61,7 +61,7 @@ encode_mtp3_routing_label(#mtp3_routing_label{sig_link_sel = Sls, origin_pc = Op Opc = osmo_util:pointcode2int(OpcIn), Dpc = osmo_util:pointcode2int(DpcIn), % we need to swap the four bytes after encoding the fields - <> = <>, + <> = <>, <>. encode_mtp3_msg(#mtp3_msg{network_ind = NetInd, service_ind = ServiceInd, -- cgit v1.2.3