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

Harald Welte gerrit-no-reply at lists.osmocom.org
Fri Oct 13 14:28:08 UTC 2017


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

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(-)


  git pull ssh://gerrit.osmocom.org:29418/osmo-ggsn refs/changes/49/4249/1

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: newchange
Gerrit-Change-Id: Ia2f9ac60f08823d5f7c1a76c0b7cbd65ac615e26
Gerrit-PatchSet: 1
Gerrit-Project: osmo-ggsn
Gerrit-Branch: master
Gerrit-Owner: Harald Welte <laforge at gnumonks.org>


More information about the gerrit-log mailing list