/* * Tests if the link and port are both up. * * @return [Boolean] true if link is up otherwise false. */ static VALUE port_and_link_up( VALUE self ) { if ( port_up( self ) == Qtrue && link_up( self ) == Qtrue ) { return Qtrue; } return Qfalse; }
/* * Tests if the port is down. * * @return [Boolean] true if port is down otherwise false. */ static VALUE port_down( VALUE self ) { return port_up( self ) == Qfalse ? Qtrue : Qfalse; }