rawlinkversion
Portable library to read and write raw packets
Rawlink is an ocaml library for sending and receiving raw packets at the link layer level. Sometimes you need to have full control of the packet, including building the full ethernet frame.
The API is platform independent, it uses BPF on real UNIXes and AF_SOCKET on linux. Some functionality is sacrificed so that the API is portable enough.
Currently BPF and AF_PACKET are implemented, including filtering capabilities.
Writing a BPF program is a pain in the ass, so no facilities are provided for
it. If you need a BPF filter, I suggest you write a small .c file with a
function that returns the BPF program as a string, check rawlink_stubs.c
for
an example.
Author | Christiano F. Haesbaert <haesbaert@haesbaert.org> |
---|---|
License | ISC |
Published | |
Homepage | https://github.com/haesbaert/rawlink |
Issue Tracker | https://github.com/haesbaert/rawlink/issues |
Maintainer | Christiano F. Haesbaert <haesbaert@haesbaert.org> |
Dependencies |
|
Source [http] | https://github.com/haesbaert/rawlink/releases/download/v1.2/rawlink-1.2.tbz sha256=a712be95f636466536327fd92ce476fb72a4e06e1b82a85d5b471db8289a91e4 sha512=006a1d57b6e3093c929d0c1d3a53075059d0a35196eebb0b2f444aab3c7492a86befe22de700d40fb479a789470bfe4b1e8b83f02c878cf85b1b5b9d67778aad |
Edit | https://github.com/ocaml/opam-repository/tree/master/packages/rawlink/rawlink.1.2/opam |
Required by
- charrua-unix>=0.11.2
- mirage-flow-rawlink>=1.1.0