diff options
author | Vadim Yanitskiy <vyanitskiy@sysmocom.de> | 2020-10-09 01:21:13 +0700 |
---|---|---|
committer | lynxis lazus <lynxis@fe80.eu> | 2020-10-08 20:50:07 +0000 |
commit | 74750fe2b0c19fdd4c9cf6524c89c13d985d024e (patch) | |
tree | df41339fd361e7c169da7b734c369c0a3c6cb5ce /src/common | |
parent | 912b4df76ca7352c0da3a92770a6d7f335f4b4e8 (diff) |
oml: fix handling of NSVC local port in oml_ipa_mo_set_attr_nsvc()
This is another regresion introduced by [1]. Both local and remote
port numbers recived in the network order, and must be stored as-is.
Change-Id: I3c21a2c27dcbf6de728ce2c7ccbae9e2f517c450
Fixes: I310699fabbfec4255f0474f31717f215c1201eca
Related: SYS#4915
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/oml.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/oml.c b/src/common/oml.c index 5394e8a4..2a87b031 100644 --- a/src/common/oml.c +++ b/src/common/oml.c @@ -1272,7 +1272,7 @@ static int oml_ipa_mo_set_attr_nsvc(struct gsm_bts_gprs_nsvc *nsvc, nsvc->remote.u.sin.sin_addr.s_addr = _cur_l; cur += 4; memcpy(&_cur_s, cur, 2); - nsvc->local.u.sin.sin_port = ntohs(_cur_s); + nsvc->local.u.sin.sin_port = _cur_s; } if (TLVP_PRES_LEN(tp, NM_ATT_OSMO_NS_LINK_CFG, 10)) { |