[MERGED] osmo-ggsn[master]: in46a_to_sas(): Return AF_INET6 in case of IPv6 address

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
Fri Oct 13 14:34:46 UTC 2017


Harald Welte has submitted this change and it was merged.

Change subject: in46a_to_sas(): Return AF_INET6 in case of IPv6 address
......................................................................


in46a_to_sas(): Return AF_INET6 in case of IPv6 address

Change-Id: Ia2f9ac60f08823d5f7c1a76c0b7cbd65ac615e26
---
M lib/in46_addr.c
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  Harald Welte: Looks good to me, approved
  Jenkins Builder: Verified



diff --git a/lib/in46_addr.c b/lib/in46_addr.c
index 068499c..32e0f8d 100644
--- a/lib/in46_addr.c
+++ b/lib/in46_addr.c
@@ -49,7 +49,7 @@
 		sin->sin_addr = in->v4;
 		break;
 	case 16:
-		sin6->sin6_family = AF_INET;
+		sin6->sin6_family = AF_INET6;
 		sin6->sin6_addr = in->v6;
 		break;
 	default:

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

Gerrit-MessageType: merged
Gerrit-Change-Id: Ia2f9ac60f08823d5f7c1a76c0b7cbd65ac615e26
Gerrit-PatchSet: 1
Gerrit-Project: osmo-ggsn
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