Commit Graph

9 Commits

Author SHA1 Message Date
6549f3467f
Fix padding of mac addresses 2024-07-07 12:18:53 +00:00
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
b98771012d
Handle empty as full empty and fix discarding of previous results 2024-06-25 13:21:30 +00:00
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
d83ba0bff0
Upgrade to use latest netlink and add old interface name to alt names 2024-06-25 10:27:25 +00:00
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
f409e57312
Remove debug print 2024-06-14 21:35:45 +00:00
33855a0799
Add README 2024-06-14 21:32:06 +00:00
444b8b2f2f
Initial commit 2024-06-14 21:26:46 +00:00