Commit Graph

11 Commits

Author SHA1 Message Date
Alex D. 8b2f6ee3fe
Change name from PCI+USB to HW Location and set it as default 2024-08-27 12:08:16 +00:00
Alex D. 5cdea1d6dd
Split processing into individual calls, add information and only rename if main option returns anything 2024-08-23 11:40:37 +00:00
Alex D. 6549f3467f
Fix padding of mac addresses 2024-07-07 12:18:53 +00:00
Alex D. f2c6fb79dc
Implement further functionality
- Detect multifunction based on functions available per PCI device
- Merge subfunctions of Loc into main function
- Handle errors better in Loc
- Rename some errors
- Don't exit if already renamed, instead skip renaming and add alias
  (useful with -force)
- Add missing altnames only
- Add alternative naming schemes as altnames
2024-06-25 16:34:47 +00:00
Alex D. b98771012d
Handle empty as full empty and fix discarding of previous results 2024-06-25 13:21:30 +00:00
Alex D. ecbda0ce3a
Switch from using one name and adding old as altname to having a list of main and altnames, merge PCI and USB into Loc, let Proc*() process entire name themselves 2024-06-25 12:44:53 +00:00
Alex D. d83ba0bff0
Upgrade to use latest netlink and add old interface name to alt names 2024-06-25 10:27:25 +00:00
Alex D. 1220119aed
MAC matching, forcing, skipping physical
Multiple changes, listed here:
- Parse MAC address of the interface to use MAC-based naming
- Allow forcing renames with -force
- Allow skipping physical naming with -phys=false
- Pre-generate netpath and keep in interface object
- Don't process pci path unless -phys=true
- Let Proc*() store results directly in object
- Handle cases where PCI domain != 0 (very rare)
2024-06-24 20:17:31 +00:00
Alex D. f409e57312
Remove debug print 2024-06-14 21:35:45 +00:00
Alex D. 33855a0799
Add README 2024-06-14 21:32:06 +00:00
Alex D. 444b8b2f2f
Initial commit 2024-06-14 21:26:46 +00:00