Giter Site home page Giter Site logo

ocaml-packet's People

Contributors

adferguson avatar arjunguha avatar basus avatar ekotlikoff avatar fugitifduck avatar jnfoster avatar reitblatt avatar seliopou avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ocaml-packet's Issues

Change "nw" to "ip".

The packet library uses the "nw" prefix to mean "ip". For example, the nwProto field refers to the packet's IP protocol.

The OpenFlow 1.0 spec, on the other hand, uses "nw" more broadly. The nw_proto field holds either the IP protocol or the lower eight bits of the ARP opcode, and nwSrc/nwDst either refer to the source/destination IP address in IP packets or the requesting/responding IP address in ARP packets.

We should change "nw" to "ip" and add ARP accessor functions (like isRequest/isResponse).

VLAN parsing ignores Drop Eligible Indicator (DEI) field

A VLAN-tagged packet has four parts:

  • Tag Protocol Identifier (16 bits) - the constant 0x8100
  • Priority Code Point (3 bits)
  • Drop Eligible Indicator (1 bit)
  • VLAN Identifier (12 bits)

Currently the code ignores the DEI, so if you construct a packet thinking that information's stored in the PCP (in the first bit), the library will not serialize the packet as you intended. If you're expecting a packet for which the DEI field is significant, it will be dropped and you will test against the first bit of the PCP.

Protocol Factorization (DNS)

I noticed that DNS packet processing was added in #6. Is there any plan for separating protocol parsers/marshalers into libraries of their own? We also have mirage/ocaml-dns which contains a number of missing features like packet decompression support.

Do you foresee ocaml-packet's protocols being factored into libraries of their own? Would you consider using some or all of ocaml-dns? If you're not satisfied with ocaml-dns (I'm not either...), what could change to make it more usable to you? Is there some common core of functionality that both projects could use? ocaml-dnsproto?

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.