mirror of
				https://github.com/samba-team/samba.git
				synced 2025-10-31 12:23:52 +03:00 
			
		
		
		
	r10677: Add smb_composite_connectmulti: Send out multiple SYN packets at once, use the
first one that replies correctly. Add a talloc context to smb_composite_connect() Volker
This commit is contained in:
		
				
					committed by
					
						 Gerald (Jerry) Carter
						Gerald (Jerry) Carter
					
				
			
			
				
	
			
			
			
						parent
						
							c755788484
						
					
				
				
					commit
					6b88de182e
				
			| @@ -150,3 +150,21 @@ struct smb_composite_appendacl { | ||||
| 		struct security_descriptor *sd; | ||||
| 	} out; | ||||
| }; | ||||
|  | ||||
| /* | ||||
|   a composite API to fire connect() calls to multiple targets, picking the | ||||
|   first one. | ||||
| */ | ||||
|  | ||||
| struct smb_composite_connectmulti { | ||||
| 	struct { | ||||
| 		int num_dests; | ||||
| 		const char **hostnames; | ||||
| 		const char **addresses; | ||||
| 		int *ports; 	/* Either NULL for lp_smb_ports() per | ||||
| 				 * destination or a list of explicit ports */ | ||||
| 	} in; | ||||
| 	struct { | ||||
| 		struct smbcli_socket *socket; | ||||
| 	} out; | ||||
| }; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user