mirror of
				https://github.com/yggdrasil-network/yggdrasil-go.git
				synced 2025-11-04 11:15:07 +03:00 
			
		
		
		
	Fix OpenBSD (tested and working on 6.4)
This commit is contained in:
		
							parent
							
								
									b3d6c9a385
								
							
						
					
					
						commit
						74692b689a
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -180,12 +180,12 @@ func (i *icmpv6) parse_packet_tun(datain []byte, datamac *[]byte) ([]byte, error
 | 
			
		|||
			copy(addr[:], ipv6Header.Src[:])
 | 
			
		||||
			copy(target[:], datain[48:64])
 | 
			
		||||
			copy(mac[:], (*datamac)[:])
 | 
			
		||||
			i.tun.core.log.Printf("Learning peer MAC %x for %x\n", mac, target)
 | 
			
		||||
			// i.tun.core.log.Printf("Learning peer MAC %x for %x\n", mac, target)
 | 
			
		||||
			neighbor := i.peermacs[target]
 | 
			
		||||
			neighbor.mac = mac
 | 
			
		||||
			neighbor.learned = true
 | 
			
		||||
			neighbor.lastadvertisement = time.Now()
 | 
			
		||||
			i.peermacs[addr] = neighbor
 | 
			
		||||
			i.peermacs[target] = neighbor
 | 
			
		||||
		}
 | 
			
		||||
		return nil, errors.New("No response needed")
 | 
			
		||||
	}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue