Screenshot instructions:
Windows
Mac
Red Hat Linux
Ubuntu
Click URL instructions:
Right-click on ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)
From: Luke Gorrie <lukeg@us...> - 2004-03-25 19:19:35
|
Update of /cvsroot/jungerl/jungerl/lib/tuntap/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7273/src Modified Files: eth2udp.erl Log Message: Fixed numerous brokennesses. Index: eth2udp.erl =================================================================== RCS file: /cvsroot/jungerl/jungerl/lib/tuntap/src/eth2udp.erl,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- eth2udp.erl 7 Mar 2003 10:42:35 -0000 1.5 +++ eth2udp.erl 25 Mar 2004 19:08:44 -0000 1.6 @@ -12,6 +12,7 @@ -export([start_link/2, start_link/3]). -export([init/3]). +-export([loop/3]). %% start_link(Port, [EndPoint]) -> pid() %% @@ -25,6 +26,7 @@ init(Port, EPs, Dev) -> {ok, Socket} = gen_udp:open(Port, [binary]), {ok, Tunnel} = init_tunnel(Dev), + tuntap:set_active(Tunnel, true), loop(Tunnel, Socket, EPs). loop(Tunnel, Socket, EPs) -> @@ -43,7 +45,7 @@ init_tunnel(Dev) -> Tun = tuntap:open_tuntap(tap, Dev), - Dev = tuntap:device_name(Tun), - io:format("Alive and kicking on ~p~n", [Dev]), + Name = tuntap:device_name(Tun), + io:format("Alive and kicking on ~p~n", [Name]), {ok, Tun}. |