mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 16:12:44 +00:00 
			
		
		
		
	Kernel/Net: Make interfaces to have persistent names
There's no good reason to distinguish between network interfaces based on their model. It's probably a good idea to try keep the names more persistent so scripts written for a specific network interface will be useable after hotplug event (or after rebooting with new hardware setup).
This commit is contained in:
		
							parent
							
								
									1c6d2ff21c
								
							
						
					
					
						commit
						8d0280ca09
					
				
					 6 changed files with 19 additions and 13 deletions
				
			
		|  | @ -166,7 +166,7 @@ UNMAP_AFTER_INIT NE2000NetworkAdapter::NE2000NetworkAdapter(PCI::Address address | |||
|     : PCI::Device(address, irq) | ||||
|     , m_io_base(PCI::get_BAR0(pci_address()) & ~3) | ||||
| { | ||||
|     set_interface_name("ne2k"); | ||||
|     set_interface_name(address); | ||||
| 
 | ||||
|     dmesgln("NE2000: Found @ {}", pci_address()); | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Liav A
						Liav A