Description
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.
Published: 28 Aug 2022
Dependencies (4)
- ppx_cstruct
-
cstruct
>= "6.1.0"
-
dune
>= "3.2"
-
ocaml
>= "4.09.0"
Reverse Dependencies (4)
-
charrua-unix
>= "0.11.2" & < "1.5.0"
-
mirage-flow-rawlink
>= "1.1.0"
- rawlink-eio
- rawlink-lwt
Conflicts
-
None
Portable library to read and write raw packets
Install
copied = false, 2000)"
:class="{ 'border-gray-700': !copied, 'text-gray-100': !copied, 'focus:ring-orange-500': !copied, 'focus:border-orange-500': !copied, 'border-green-600': copied, 'text-green-600': copied, 'focus:ring-green-500': copied, 'focus:border-green-500': copied }">
Authors
Maintainers
Sources
rawlink-2.1.tbz
sha256=046b9450e71bb13f2d44efcd49e5ce75850d38bf2bf53da9e62fd96a51b386ce
sha512=9445a8362f68dcad827bbbf7e5583f2c3986c496dcfc8edc4a270824ad3ff97b3caca3e6c925924913a42cbd86adee91719922e979728056b11ec36e87054846