socket: SIOCGIFINDEX

This commit is contained in:
Matheus
2026-09-10 23:52:48 -03:00
parent 485cf616b2
commit 5aca46e22c
4 changed files with 9 additions and 0 deletions
+1
View File
@@ -264,6 +264,7 @@ int netdev_register(netdev_t *netdev, char *name) {
hashtable_remove(&nametable, name, strlen(name));
minors[minor] = netdev;
netdev->ifindex = minor + 1;
leave:
MUTEX_RELEASE(&tablelock);