net: implement netdev flags

This commit is contained in:
Matheus
2026-04-01 16:53:00 -03:00
parent e294f9814c
commit 7509d17f1c
4 changed files with 16 additions and 5 deletions
+1
View File
@@ -59,6 +59,7 @@ void loopback_init() {
loopbacknetdev.allocdesc = loopback_allocdesc;
loopbacknetdev.freedesc = loopback_freedesc;
loopbacknetdev.ip = 0x7f000001;
loopbacknetdev.flags = NETDEV_FLAGS_UP | NETDEV_FLAGS_LOOPBACK | NETDEV_FLAGS_RUNNING;
__assert(hashtable_init(&loopbacknetdev.arpcache, 30) == 0);
for (int i = 0; i < 6; ++i)