Code Monkey home page Code Monkey logo

Comments (3)

k-shym avatar k-shym commented on July 28, 2024

Написал тесты для 5.3-004, проблема, что не обрабатывается тэг set, исправлю в ближайшее время. Временно можно внести правки в api.xml:

<function name="rpcf_set_radius_attr" id="0x10105">
  <input>
    <integer name="sid" />
    <integer name="st" />
    <integer name="cnt" />
    <for name="i" from="0" count="cnt">
      <integer name="vendor" array_index="i" />
      <integer name="attr" array_index="i" />
      <integer name="tag" array_index="i" />
      <integer name="usage_flags" array_index="i" />
      <integer name="expire_date" array_index="i" default="2000000000"/>
      <integer name="param1" array_index="i" />
      <set dst="tmp_type" src="param1" src_index="i"/>
      <!-- integer -->
      <if variable="param1" value="0" condition="eq">
        <integer name="val" array_index="i" />
      </if>
      <!-- string -->
      <if variable="param1" value="1" condition="eq">
        <string name="val" array_index="i" />
      </if>
      <!-- IP-address -->
      <if variable="param1" value="2" condition="eq">
        <integer name="val" array_index="i" />
      </if>
      <!-- HEX string -->
      <if variable="param1" value="3" condition="eq">
        <string name="val" array_index="i" />
      </if>
      <integer name="prop_size" array_index="i"/>
      <for name="p" from="0" count="prop_size">
        <integer name="type" array_index="i,p"/>
        <string name="value" array_index="i,p"/>
      </for>
    </for>
  </input>
  <output/>
</function>

from urfaclient.

k-shym avatar k-shym commented on July 28, 2024

@bogdik спасибо, теперь метод rpcf_set_radius_attr будет работать без изменения api.xml

from urfaclient.

bogdik avatar bogdik commented on July 28, 2024

спасибо)

from urfaclient.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.