netlink-sys 0.0.1

netlink socket and messages
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// extern crate bindgen;

fn main() {
    // This was used to generate the constants.rs file
    //
    // To cleanup the generated file, only keep the lines that start with "pub const", and replace
    // all the custom int type by u32

    // bindgen::Builder::default()
    //     .header("/usr/include/linux/rtnetlink.h")
    //     .header("/usr/include/linux/if_arp.h")
    //     .constified_enum_module(".*")
    //     .generate()
    //     .expect("Unable to generate bindings")
    //     .write_to_file("foo.rs")
    //     .expect("could not write bindings");
}