mirror of
				https://gitea.osmocom.org/cellular-infrastructure/osmo-mgw.git
				synced 2025-11-03 21:43:32 +00:00 
			
		
		
		
	nat: Convert the ip to host order to allow to bind to other ips
This commit is contained in:
		@@ -1257,7 +1257,7 @@ int main(int argc, char **argv)
 | 
			
		||||
	bsc_msc_connect(nat->msc_con);
 | 
			
		||||
 | 
			
		||||
	/* wait for the BSC */
 | 
			
		||||
	rc = make_sock(&bsc_listen, IPPROTO_TCP, local_addr.s_addr,
 | 
			
		||||
	rc = make_sock(&bsc_listen, IPPROTO_TCP, ntohl(local_addr.s_addr),
 | 
			
		||||
		       5000, ipaccess_listen_bsc_cb);
 | 
			
		||||
	if (rc != 0) {
 | 
			
		||||
		fprintf(stderr, "Failed to listen for BSC.\n");
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user