[PATCH] libosmo-sccp[master]: xua_msg: Add support for encoding IPv4 addr in osmo_sccp_addr

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Harald Welte gerrit-no-reply at lists.osmocom.org
Mon Apr 3 15:50:35 UTC 2017


Review at  https://gerrit.osmocom.org/2202

xua_msg: Add support for encoding IPv4 addr in osmo_sccp_addr

Change-Id: I956f069ce4cea78cb0db0470265ca8365093c0e5
---
M src/xua_msg.c
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.osmocom.org:29418/libosmo-sccp refs/changes/02/2202/1

diff --git a/src/xua_msg.c b/src/xua_msg.c
index 65ccaa7..73c5c24 100644
--- a/src/xua_msg.c
+++ b/src/xua_msg.c
@@ -351,7 +351,7 @@
 		msgb_t16l16vp_put_u32(tmp, SUA_IEI_SSN, addr->ssn);
 	}
 	if (addr->presence & OSMO_SCCP_ADDR_T_IPv4) {
-		/* FIXME: IPv4 address */
+		msgb_t16l16vp_put_u32(tmp, SUA_IEI_IPv4, ntohl(addr->ip.v4.s_addr));
 	} else if (addr->presence & OSMO_SCCP_ADDR_T_IPv6) {
 		/* FIXME: IPv6 address */
 	}

-- 
To view, visit https://gerrit.osmocom.org/2202
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I956f069ce4cea78cb0db0470265ca8365093c0e5
Gerrit-PatchSet: 1
Gerrit-Project: libosmo-sccp
Gerrit-Branch: master
Gerrit-Owner: Harald Welte <laforge at gnumonks.org>



More information about the gerrit-log mailing list