1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#![feature(libc)]

#![allow(dead_code)]
#![allow(non_camel_case_types)]

pub mod message;
pub mod socket;
pub mod callback;
pub mod attribute;

/**
 * Abstraction of libnl core functionality
 */
extern crate libc;
#[link(name="nl-3")]

// RSNL datatypes wrapping the libnl data structures
pub enum NetlinkProtocol {
	route,
	unused,
	usersock,
	firewall,
	sock_diag,
	nflog,
	xfrm,
	selinux,
	iscsi,
	audit,
	fib_lookup,
	connector,
	netfilter,
	ip6_fw,
	dnrtmsg,
	kobject_uevent,
	DMEVENTS,
	scsitransport,
	ecryptfs,
	rdma,
	crypto,
}