Michael Santos

Results 82 comments of Michael Santos

Hey @benoitc ! @colrack's answer is excellent and pretty much covers everything. Basically the erlang process creates and attaches to a virtual interface and receives either ethernet (tap interface) or...

@joagre the code looks correct! In this case, there just isn't any data coming from the device. For testing, try setting the netmask wider: ``` ifconfig tun0 10.0.0.1 netmask 255.255.255.0...

Yes, currently you have to manually handle if the file descriptor is not ready. You can also pass the file descriptor into erlang:open_port/2 (this is what tuncer does for active...

@alexshavelev sorry I didn't see this issue! Which OS are you using?

@alexshavelev commenting out down/1 and persist/2 should've worked. I'll run some tests and check out what is going on. About the persist flag being reset on terminate, that is probably...

After applying the fix you suggested to persist the interface after tuncer shuts down, I can see what is going on: ~~~ erlang % $ ip addr show dev test0...

I think the {error,ehostunreach} is happening because of the way routing is handled when both interfaces are local. The kernel is generating an ICMP host unreachable because it doesn't know...

@SergejJurecko Basically the 192.168.100.100 interface is the gateway to the 192.168.100.0/24 network. If a packet is sent to, e.g., 192.168.100.33, the packet will be sent via the tunnel. Since this...

Hey @romanr321! Are you using tunctl directly or the tuncer gen_server? If you're using tuncer, are you using {active, true|false}?

Just to be clear, the rate was: ~~~ 0.35MB/s * 1024 * 1024 = 367001 bytes/s or 2.9Mb/s 367001 / 1750 = 210 byte packet ~~~ Have you been able...