Commit Graph

17 Commits

Author SHA1 Message Date
Patrick J Cherry
2438a43c31 Updated contstants to be down with linux 3.2. 2012-06-11 10:38:46 +01:00
Patrick J Cherry
3184759135 Made "missing attribute" message more informative. 2012-06-11 10:38:29 +01:00
Patrick J Cherry
888f9f5156 Removed need for gcc as a dependency for debian packages. 2012-01-24 15:59:30 +00:00
nick
8f8b0b040c Add a mising rtattr 2011-07-11 10:36:30 +01:00
mbloch
d31c521fdb Merge 2011-06-30 17:58:38 +01:00
mbloch
cd58b64499 Added working NLSocket.open and scope handling. 2011-05-18 15:26:53 +01:00
Alex Young
30d633cf09 Add a gemspec and support loading ffi as a gem 2011-05-16 11:29:07 +01:00
Brian Candler
aeed00a5d5 Fix for Errno::EOPNOTSUPP when adding vlan with Ubuntu 10.04 (32 or 64 bit) 2011-05-08 11:50:04 +01:00
Brian Candler
57b011b4cf Note about vlan problem on 10.04 2011-05-08 11:22:30 +01:00
Brian Candler
0df9fc6b32 Convenience tweaks to FFI::Struct 2011-05-08 11:21:58 +01:00
Brian Candler
40fbefa06b Experiment: try using FFI::Struct for iptables instead of CStruct
FFI::Struct handles nested structs and nested arrays much better, and avoids
duplicating logic about structure alignment (which it probably does more
correctly that CStruct)

However it's awkward to use in other ways. e.g. no accessor methods;
no proper #inspect; no ntohl for in_addr; no zero-sized arrays at end
of struct; no hooks to convert int32 <-> IPAddr as far as I can see.
2011-05-06 17:01:50 +01:00
Brian Candler
7d3671e9d1 Read list of tables/targets/matches 2011-05-06 15:23:01 +01:00
Brian Candler
15d26f5595 Apply dest_sockaddr in sendmsg 2011-05-06 14:48:15 +01:00
Brian Candler
da2db43c8a Implement sendmsg/recvmsg for 1.8 using ffi 2011-05-06 13:41:42 +01:00
Brian Candler
bce9d81377 Fix error table for 1.8 2011-05-06 13:40:41 +01:00
Brian Candler
0cb1429c62 Experimental code for reading iptables 2011-05-06 11:41:06 +01:00
Brian Candler
e07af9a315 Reorganise under Linux:: 2011-05-06 09:49:47 +01:00