--- gvpe/src/vpn.C 2007/12/04 17:17:20 1.44 +++ gvpe/src/vpn.C 2007/12/06 00:35:29 1.45 @@ -89,14 +89,16 @@ } } -const char *vpn::script_if_init () +inline const char * +vpn::script_if_init () { script_init_env (); return tap->if_up (); } -const char *vpn::script_if_up () +inline const char * +vpn::script_if_up () { script_init_env (); @@ -503,7 +505,7 @@ return false; } -void +inline void vpn::ipv4_ev (ev::io &w, int revents) { if (revents & EV_READ) @@ -544,7 +546,7 @@ } #if ENABLE_ICMP -void +inline void vpn::icmpv4_ev (ev::io &w, int revents) { if (revents & EV_READ) @@ -592,7 +594,7 @@ } #endif -void +inline void vpn::udpv4_ev (ev::io &w, int revents) { if (revents & EV_READ) @@ -629,7 +631,7 @@ } } -void +inline void vpn::tap_ev (ev::io &w, int revents) { if (revents & EV_READ) @@ -671,7 +673,7 @@ abort (); } -void +inline void vpn::event_cb (ev::timer &w, int) { if (events)