Change in osmo-ggsn[master]: sgsnemu: tun_addaddr: Don't set local addr as dstaddr

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

pespin gerrit-no-reply at lists.osmocom.org
Wed Apr 15 14:42:25 UTC 2020


pespin has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ggsn/+/17822 )


Change subject: sgsnemu: tun_addaddr: Don't set local addr as dstaddr
......................................................................

sgsnemu: tun_addaddr: Don't set local addr as dstaddr

That should be used for point-to-point destination address.

Change-Id: Iead7e9c7570ba6a9de3089a164997b1db81dc59a
---
M sgsnemu/sgsnemu.c
1 file changed, 1 insertion(+), 1 deletion(-)



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

diff --git a/sgsnemu/sgsnemu.c b/sgsnemu/sgsnemu.c
index 45f07f5..6b05ac5 100644
--- a/sgsnemu/sgsnemu.c
+++ b/sgsnemu/sgsnemu.c
@@ -1514,7 +1514,7 @@
 			if (addr[i].len == 16)
 				prefixlen = 64;
 			/* printf("Setting up interface and routing\n"); */
-			tun_addaddr(tun, &addr[i], &addr[i], prefixlen);
+			tun_addaddr(tun, &addr[i], NULL, prefixlen);
 			if (options.defaultroute) {
 				struct in_addr rm;
 				rm.s_addr = 0;

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-ggsn/+/17822
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-ggsn
Gerrit-Branch: master
Gerrit-Change-Id: Iead7e9c7570ba6a9de3089a164997b1db81dc59a
Gerrit-Change-Number: 17822
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200415/941578b8/attachment.htm>


More information about the gerrit-log mailing list