mirror of
				https://gitea.osmocom.org/cellular-infrastructure/osmo-ggsn.git
				synced 2025-11-03 21:53:25 +00:00 
			
		
		
		
	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:
		@@ -1514,7 +1514,7 @@ static int create_pdp_conf(struct pdp_t *pdp, void *cbp, int cause)
 | 
				
			|||||||
			if (addr[i].len == 16)
 | 
								if (addr[i].len == 16)
 | 
				
			||||||
				prefixlen = 64;
 | 
									prefixlen = 64;
 | 
				
			||||||
			/* printf("Setting up interface and routing\n"); */
 | 
								/* 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) {
 | 
								if (options.defaultroute) {
 | 
				
			||||||
				struct in_addr rm;
 | 
									struct in_addr rm;
 | 
				
			||||||
				rm.s_addr = 0;
 | 
									rm.s_addr = 0;
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user