Commit 9220f1ac authored by Vincent Seguin's avatar Vincent Seguin

Desactivation du changement de chaine en --novlan

parent 694d473d
...@@ -134,8 +134,6 @@ static int ZeTrucMucheFunction( int Channel) ...@@ -134,8 +134,6 @@ static int ZeTrucMucheFunction( int Channel)
struct sockaddr_in sa_client; struct sockaddr_in sa_client;
char mess[80]; char mess[80];
return( 0 );
/* /*
*Looking for informations about the eth0 interface *Looking for informations about the eth0 interface
*/ */
......
...@@ -140,6 +140,13 @@ void intf_Destroy( intf_thread_t *p_intf ) ...@@ -140,6 +140,13 @@ void intf_Destroy( intf_thread_t *p_intf )
int intf_SelectInput( intf_thread_t * p_intf, int i_index ) int intf_SelectInput( intf_thread_t * p_intf, int i_index )
{ {
intf_DbgMsg("\n"); intf_DbgMsg("\n");
/* If VLANs are not active, return with an error */
if( !p_main->b_vlans )
{
intf_ErrMsg("error: VLANs are not activated\n");
return( 1 );
}
/* Kill existing input, if any */ /* Kill existing input, if any */
if( p_intf->p_input != NULL ) if( p_intf->p_input != NULL )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment