Skip to content
Snippets Groups Projects
Commit c7a4e669 authored by Guy Zana's avatar Guy Zana
Browse files

net: rename interface name to eth instead of virtio-net

parent 077d69f0
No related branches found
No related tags found
No related merge requests found
...@@ -6,6 +6,6 @@ ...@@ -6,6 +6,6 @@
// setup networking // setup networking
$("ifconfig virtio-net0 192.168.122.100 netmask 255.255.255.0 up"); $("ifconfig eth0 192.168.122.100 netmask 255.255.255.0 up");
$("route add default gw 192.168.122.1"); $("route add default gw 192.168.122.1");
...@@ -135,7 +135,7 @@ namespace virtio { ...@@ -135,7 +135,7 @@ namespace virtio {
return; return;
} }
if_initname(_ifn, _driver_name.c_str(), _id); if_initname(_ifn, "eth", _id);
_ifn->if_mtu = ETHERMTU; _ifn->if_mtu = ETHERMTU;
_ifn->if_softc = static_cast<void*>(this); _ifn->if_softc = static_cast<void*>(this);
_ifn->if_flags = IFF_BROADCAST /*| IFF_MULTICAST*/; _ifn->if_flags = IFF_BROADCAST /*| IFF_MULTICAST*/;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment