Skip to content

Instantly share code, notes, and snippets.

View ShadowBelmolve's full-sized avatar

Renan Tomal Fernandes ShadowBelmolve

View GitHub Profile
@ShadowBelmolve
ShadowBelmolve / README.md
Created April 22, 2025 00:56 — forked from lukasnellen/README.md
Connect host and VM when using MACVTAP instead of TAP interfaces

Connect host and VM when using a MACVTAP interface

NB: The following is only of interest if you want to share the host network with your virtual machine. The most common way this gets implemented is by setting up a bridge which includes the physical interface. Using a [MACVTAP] inerface is suposed to be more efficient, since it avoids the additional bridge in the network setup.

In this gist, we extend the information provided in the documenation on linux virtual interfaces.

In the following, we assume you host interface is eth0. IP addresses used:

  • host: 198.51.100.50/24
  • virtual machine: 198.51.100.198/24
  • default gateway: 198.51.100.254
@ShadowBelmolve
ShadowBelmolve / Main.hx
Last active January 2, 2016 10:19 — forked from anonymous/Main.hx
haxe-traits break with this. Seems that if you import an "interface A"(IEntity) that has a variable of type "class B"(EntityData) that has a function with return type "class C"(Entity) and "class C" implements the "interface A", then variables from "interface A" simply aren't copied to "class C" or something like this. The same if you import "Cl…
package;
//works
//import world.Entity;
//works
//import world.IEntity;
//import world.Entity;
//not work