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:
parent
a1b3deefda
commit
e5d71639e5
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue