nick
610a70fe12
upstream: Add constants we're interested in to Linux kernel 3.12
2013-11-13 16:11:33 +00:00
Patrick J Cherry
72c0711c98
Added new constants to IFInfo struct
2013-09-12 11:38:30 +00:00
Patrick J Cherry
0448e47a69
Added more IFLA constants
2013-09-12 11:22:59 +00:00
Patrick J Cherry
f8ffbb09c5
Updated LinkHandler#change to retry commands with SETLINK when they fail with NEWLINK
2013-07-05 13:48:22 +01:00
Patrick J Cherry
55c38a4877
Added new constants for linux3.5
2013-07-05 13:45:51 +01:00
nick
9d9cd3b70b
netlink: Add ip rule support
2012-07-05 14:54:42 +01:00
Patrick J Cherry
0e0385018d
Updated link handler to handle new attributes.
2012-06-11 10:53:31 +01:00
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
Brian Candler
f1c29980a8
Non-functioning experiment at iptables netfilter support
2011-05-03 21:44:02 +01:00
Brian Candler
9bfa6e5b2c
Rename plural to singular; cleaner and more consistent with 'ip' utility
2011-05-03 19:13:37 +01:00
Brian Candler
834f7a83d6
Handle RTAMetrics properly
2011-05-03 19:03:35 +01:00
Brian Candler
340e5e85f3
Copy route defaults from ip/iproute.c
2011-05-03 18:55:11 +01:00
Brian Candler
d13662268b
routes.get
2011-05-03 17:17:15 +01:00
Brian Candler
bdd75c611c
Factor out list/filter code
2011-05-03 16:54:05 +01:00
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