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

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

Change-Id: Iead7e9c7570ba6a9de3089a164997b1db81dc59a
This commit is contained in:
Pau Espin 2020-04-15 14:43:50 +02:00
parent a1b3deefda
commit e5d71639e5
1 changed files with 1 additions and 1 deletions

View File

@ -1514,7 +1514,7 @@ static int create_pdp_conf(struct pdp_t *pdp, void *cbp, int cause)
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;