package rawlink

  1. Overview
  2. No Docs
Portable library to read and write raw packets

Install

dune-project
 Dependency

Authors

Maintainers

Sources

rawlink-v1.0.tbz
sha256=f3a8ffb78bc3363905de59d260c72991ea188d46aea274368f4d93acfdd5ec28
md5=90a85604ed73955f9fefedfd6b624598

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: 18 Jan 2019

Dependencies (5)

  1. ppx_cstruct
  2. cstruct >= "3.2.0" & < "6.1.0"
  3. lwt >= "2.4.7"
  4. dune
  5. ocaml >= "4.03.0" & < "5.0"

Dev Dependencies

None

Used by (1)

  1. charrua-unix < "1.6.0"

Conflicts

None