libnfqueue 0.1.0

Bindings for the libnetfilter_queue library
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use handle::*;
use error::*;

#[test]
fn create_handle() {
    let _h = Handle::new().unwrap();
}

#[test]
fn bind_unbind() {
    let mut h = Handle::new().unwrap();
    h.bind(ProtocolFamily::INET).unwrap();
    h.unbind(ProtocolFamily::INET).unwrap();
}