[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
Sun Apr 9 19:31:09 UTC 2017


Hello Jenkins Builder,

I'd like you to reexamine a change.  Please visit

    https://gerrit.osmocom.org/2202

to look at the new patch set (#3).

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/3

diff --git a/src/xua_msg.c b/src/xua_msg.c
index 0a31a96..a7f2e52 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: newpatchset
Gerrit-Change-Id: I956f069ce4cea78cb0db0470265ca8365093c0e5
Gerrit-PatchSet: 3
Gerrit-Project: libosmo-sccp
Gerrit-Branch: master
Gerrit-Owner: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Jenkins Builder



More information about the gerrit-log mailing list