11 releases

Uses old Rust 2015

0.1.4 Apr 16, 2019
0.1.3 Sep 23, 2016
0.1.2 Aug 30, 2016
0.1.1 Jun 1, 2016
0.0.8 Mar 27, 2015

#23 in #linux-networking

Download history 48/week @ 2024-07-29 45/week @ 2024-08-05 34/week @ 2024-08-12 38/week @ 2024-08-19 46/week @ 2024-08-26 30/week @ 2024-09-02 36/week @ 2024-09-09 32/week @ 2024-09-16 63/week @ 2024-09-23 36/week @ 2024-09-30 33/week @ 2024-10-07 39/week @ 2024-10-14 35/week @ 2024-10-21 38/week @ 2024-10-28 42/week @ 2024-11-04 31/week @ 2024-11-11

151 downloads per month
Used in 5 crates (2 directly)

BSD-2-Clause

15KB
346 lines

netmap_sys

Rust bindings to netmap, currently at version 3.17 (Linux).

Usage

To use within your own project, add:

[dependencies.netmap_sys]
version = "0.1.4"
# Uncomment this line where you wish to use features guarded by the
# NETMAP_WITH_LIBS macro in C.
#features = "netmap_with_libs"

To your Cargo.toml.

Troubleshooting

missing rust_netmap_user

If you get an error containing the message:

error: could not find native static library `rust_netmap_user`, perhaps an -L flag is missing?

You should check the following things:

  1. You have gcc / clang installed
  2. Make sure that /usr/include/net/netmap.h and /usr/include/net/netmap_user.h both exist. If they do not, you should check your netmap installation. You can either manually add these files or symlinks to the, or change the paths searched in build.rs.
  3. If you still have issues, please file an issue in the bug tracker, along with the output of cargo build -v, your operating system and distribution, how you installed netmap, and the output of clang -DNETMAP_WITH_LIBS -Dstatic= -Dinline= -x c -fPIC -O2 -c /usr/include/net/netmap_user.h -o $(mktemp).

Dependencies

~0.4–325KB