// $ANTLR start "iface_type"
    // interfaces.g:72:1: iface_type : INET ;
    public interfacesParser.iface_type_return iface_type() // throws RecognitionException [1]
    {
        interfacesParser.iface_type_return retval = new interfacesParser.iface_type_return();
        retval.Start = input.LT(1);

        try
        {
            // interfaces.g:73:2: ( INET )
            // interfaces.g:73:4: INET
            {
                Match(input, INET, FOLLOW_INET_in_iface_type443);
            }

            retval.Stop = input.LT(-1);
        }
        catch (RecognitionException re)
        {
            ReportError(re);
            Recover(input, re);
        }
        finally
        {
        }
        return(retval);
    }
    // $ANTLR end "auto_iface"


    // $ANTLR start "iface_def"
    // interfaces.g:68:1: iface_def : IFACE id iface_type iface_conf ;
    public void iface_def() // throws RecognitionException [1]
    {
        interfacesParser.id_return id2 = default(interfacesParser.id_return);

        interfacesParser.iface_type_return iface_type3 = default(interfacesParser.iface_type_return);

        interfacesParser.iface_conf_return iface_conf4 = default(interfacesParser.iface_conf_return);


        try
        {
            // interfaces.g:69:2: ( IFACE id iface_type iface_conf )
            // interfaces.g:69:4: IFACE id iface_type iface_conf
            {
                Match(input, IFACE, FOLLOW_IFACE_in_iface_def424);
                PushFollow(FOLLOW_id_in_iface_def426);
                id2 = id();
                state.followingStackPointer--;

                PushFollow(FOLLOW_iface_type_in_iface_def428);
                iface_type3 = iface_type();
                state.followingStackPointer--;

                PushFollow(FOLLOW_iface_conf_in_iface_def430);
                iface_conf4 = iface_conf();
                state.followingStackPointer--;

                lliurex.net.InterfacesConfig.GetInstance().AddInterface(((id2 != null) ? input.ToString((IToken)(id2.Start), (IToken)(id2.Stop)) : null), ((iface_type3 != null) ? input.ToString((IToken)(iface_type3.Start), (IToken)(iface_type3.Stop)) : null), ((iface_conf4 != null) ? input.ToString((IToken)(iface_conf4.Start), (IToken)(iface_conf4.Stop)) : null));
            }
        }
        catch (RecognitionException re)
        {
            ReportError(re);
            Recover(input, re);
        }
        finally
        {
        }
        return;
    }