mirror of
				https://github.com/yggdrasil-network/water.git
				synced 2025-11-04 03:05:10 +03:00 
			
		
		
		
	Multi-platform support
This commit is contained in:
		
							parent
							
								
									36aebfeb35
								
							
						
					
					
						commit
						d2ac4607bb
					
				
					 1 changed files with 19 additions and 0 deletions
				
			
		
							
								
								
									
										19
									
								
								syscalls_other.go
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								syscalls_other.go
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
					@ -0,0 +1,19 @@
 | 
				
			||||||
 | 
					// +build !linux
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					package water
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					const (
 | 
				
			||||||
 | 
						cIFF_TUN   = 0
 | 
				
			||||||
 | 
						cIFF_TAP   = 0
 | 
				
			||||||
 | 
						cIFF_NO_PI = 0
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					type ifReq struct {
 | 
				
			||||||
 | 
						Name  [0]byte
 | 
				
			||||||
 | 
						Flags uint16
 | 
				
			||||||
 | 
						pad   [0]byte
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					func createInterface(fd uintptr, ifName string, flags uint16) (createdIFName string, err error) {
 | 
				
			||||||
 | 
						panic("water: createInterface not implemented on this platform")
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue