frenetic-lang / ocaml-packet Goto Github PK
View Code? Open in Web Editor NEWSerialization for some common network packets, including ethernet frames, IP, TCP, and ARP.
License: Other
Serialization for some common network packets, including ethernet frames, IP, TCP, and ARP.
License: Other
Need tests for new IGMP functionality added in #3
Need test cases for new functionality added in #6
A VLAN-tagged packet has four parts:
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.
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?
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).
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.