Giter Site home page Giter Site logo

kdiameter's People

Contributors

ignatberesnev avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

kdiameter's Issues

Diameter packet parser

Decode and encode diameter packets. Full packet format MUST be supported.

DiameterMessage class must not contain any business logic and should be responsible solely for encoding/decoding diameter messages.

Write unit tests using a real tcp dump

Expand AvpData mappings

AvpData consists of multiple methods that convert received raw bytes to a predefined type, such as int, String, etc.

Right now it supports only String and Int, but we should support AT LEAST the types defined in Base Protocol

  • Integer32
  • Integer64 (?)
  • Unsigned32 (Long)
  • Unsigned64 (?)
  • Float32 (Float)
  • Float64 (Double)

As well as common derived avp formats

  • Address (InetAddress)
  • Time (Java 8 time API)
  • DiameterIdentity
  • Enumerated
  • IPFilterRule

Each one MUST have at least one test that checks the validity of mapping. Also, we'll need tests for existing methods: asString, asInt and asGroupedAvps.

Better real diameter dump for unit tests

At the moment tests for message encoding/decoding use a a real CER dump

A good start, but it's too simple to cover all of the encoding/decoding functionality. It lacks grouped AVPs, most flags are set to false, has very basic avp data (int and string), etc.

Unfortunately, that was the only real diameter dump at hand. We need to get a dump with a more complicated (diverse) message, and use it in the tests instead.

If anyone can provide such a dump, that'd be half the issue solved :) Just make sure it contains no private information (i.e your company name, clients, etc)

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.