Commit Graph

30 Commits

Author SHA1 Message Date
Brian Candler
9d920ce4e8 Allow CStructs to be created with nil members 2011-05-03 16:05:24 +01:00
Brian Candler
3f4c6c7235 More handler separation: e.g. RouteHandler or VlanHandler can call LinkHandler 2011-05-03 15:59:07 +01:00
Brian Candler
a2735b4d4d Higher-level VLAN API 2011-05-03 13:50:01 +01:00
Brian Candler
0a7297a86d Reorg to separate different NETLINK_ROUTE functions. Try adding vlan interfaces 2011-05-03 12:41:10 +01:00
Brian Candler
6688d17cab Tidying of nlsocket 2011-05-03 08:47:18 +01:00
Brian Candler
c551e805e6 Basic interface address manipulation 2011-05-02 22:52:47 +01:00
Brian Candler
ddba99c3b3 Add NETFILTER_NFLOG (ULOG) support 2011-05-02 20:27:05 +01:00
Brian Candler
a6eda43b2e Another little reorg; we are quite tightly bound to implementation of CStruct 2011-05-02 18:17:24 +01:00
Brian Candler
14f8a27d2b Tidy receive_stream 2011-05-01 18:17:03 +01:00
Brian Candler
63fd7d18b6 Factor out Cstruct 2011-05-01 18:12:46 +01:00
Brian Candler
f205d19591 Alignment of structure members 2011-05-01 17:39:47 +01:00
Brian Candler
b78327c3b6 Basic NETLINK_FIREWALL support. Highlights need for struct alignment 2011-05-01 12:32:22 +01:00
Brian Candler
aefd94093c Move NETLINK_ROUTE user objects under Netlink::Route 2011-05-01 09:29:02 +01:00
Brian Candler
b39ff5da76 Rename messages to match their C names 2011-05-01 09:20:23 +01:00
Brian Candler
ac8175fb32 Return String bodies for unknown message types 2011-05-01 09:12:53 +01:00
Brian Candler
49a72682a3 Allow attributes to be defined inline (singleton type) 2011-05-01 00:09:34 +01:00
Brian Candler
8f453c5dc9 Restructure so messages and code specific to NETLINK_ROUTE are in one file 2011-04-30 22:39:25 +01:00
Brian Candler
3d4be4cd58 define_type metaprogramming. Auto-detect l3addr family. More comments 2011-04-30 21:46:36 +01:00
Brian Candler
fb65653159 stats as best of stats64 or stats32 2011-04-30 10:26:04 +01:00
Brian Candler
87758f82c1 When packing, can specify l3addr as '1.2.3.4' or 0x01020304 2011-04-30 10:21:34 +01:00
Brian Candler
c1db2b85d1 Pack ifmap, convert MAC addr to hex, tag some more attrs 2011-04-29 21:05:56 +01:00
Brian Candler
cf255395e1 Simple address/link/route memoization 2011-04-29 18:28:37 +01:00
Brian Candler
8c8d199a09 Unpack metrics 2011-04-29 17:04:02 +01:00
Brian Candler
54de866e97 cacheinfo structs 2011-04-29 16:34:04 +01:00
Brian Candler
f9af05d391 Import more constants/flags 2011-04-29 16:33:09 +01:00
Brian Candler
66791448f7 Simple grouping by ifindex 2011-04-29 16:33:08 +01:00
Brian Candler
6b74827fc3 Allow access to unset rtattrs to return nil 2011-04-29 15:42:16 +01:00
Brian Candler
f16c819743 Format data into IPAddr and Struct LinkStats 2011-04-29 14:42:59 +01:00
Brian Candler
8c690450a7 Basic generation and parsing of rtattr values 2011-04-29 14:11:18 +01:00
Brian Candler
933f20823f Initial commit, work in progress 2011-04-29 11:51:10 +01:00