-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5202071
commit 8243af1
Showing
3 changed files
with
49 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,27 @@ | ||
(executable | ||
(name rawcap) | ||
(modules rawcap) | ||
(package rawlink-bin) | ||
(public_name rawcap) | ||
(libraries rawlink)) | ||
|
||
(executable | ||
(name rawcap_lwt) | ||
(modules rawcap_lwt) | ||
(package rawlink-bin) | ||
(public_name rawcap-lwt) | ||
(libraries lwt_rawlink)) | ||
|
||
(executable | ||
(name rawcap_eio) | ||
(modules rawcap_eio) | ||
(package rawlink-bin) | ||
(public_name rawcap-eio) | ||
(libraries eio_rawlink eio_main)) | ||
|
||
(executable | ||
(name test_arp) | ||
(modules test_arp) | ||
(package rawlink-bin) | ||
(public_name test-arp) | ||
(libraries eio_rawlink eio_main arp ethernet)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
(lang dune 3.2) | ||
(name rawlink) | ||
|
||
(formatting disabled) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
opam-version: "2.0" | ||
maintainer: "Christiano F. Haesbaert <[email protected]>" | ||
authors: "Christiano F. Haesbaert <[email protected]>" | ||
license: "ISC" | ||
homepage: "https://github.com/haesbaert/rawlink" | ||
bug-reports: "https://github.com/haesbaert/rawlink/issues" | ||
dev-repo: "git+https://github.com/haesbaert/rawlink.git" | ||
doc: "https://haesbaert.github.io/rawlink/" | ||
build: [ | ||
[ "dune" "subst" ] {dev} | ||
[ "dune" "build" "-p" name "-j" jobs ] ] | ||
depends: [ | ||
"ocaml" {>= "4.09.0"} | ||
"dune" {>= "3.2"} | ||
"rawlink" | ||
"rawlink-eio" | ||
"rawlink-lwt" | ||
"ethernet" | ||
"arp" | ||
"eio_main" | ||
] | ||
depexts: [ | ||
["linux-headers"] {os-distribution = "alpine"} | ||
] | ||
synopsis: "Portable library to read and write raw packets" | ||
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. | ||
""" |