nick
a8ad8c1e09
Fix the tests now that you can have multiple sockets open at once
2014-04-15 15:17:09 +01:00
nick
cac6e7698b
Fix a multiple-sockets-in-one-process issue.
...
"pid" is not "process id" in netlink, but rather, "port id". If you bind to a
sockaddr == 0 then Linux automatically assigns your socket a port id - which
happens to be the same as the process ID for the first one concurrently open.
For the second and subsequent concurrently-open sockets, binding 0 (as most
users of this library will do) gets you back a random high-numbered port id.
This change preserves the existing use case (one port open in the process,
binding to 0) while fixing multiple-ports-open-in-the-same-process, socket-is-
passed-in-and-pid-is-not-specified, and specific-pid-is-requested-but-could-
not-bind-to-it.
We're probably still not thread-safe - the seq handling looks dodgy - but at
least now we can use multiple sockets in separate threads and have them all
work.
Using the same socket from multiple threads is a slightly niche use case, and
it's tempting to say "don't do this" instead...
2014-04-15 15:10:39 +01:00
nick
28cda0ee62
Add the IFA_FLAGS RTAttr and a couple of new flags
2014-04-15 14:12:06 +01:00
nick
810c743583
Make the test helper path absolute
2014-04-15 13:49:18 +01:00
Patrick J Cherry
8d47c623c4
Added tag 0.15-1+wheezy1 for changeset 73cc3d95f810
2014-01-21 10:01:59 +00:00
Patrick J Cherry
827ca74740
New upstream release
0.15-1+wheezy1
2014-01-21 10:01:42 +00:00
Patrick J Cherry
6cbda4bb58
Added tag 0.15 for changeset 3dae37c40d73
0.15
2014-01-21 09:59:32 +00:00
Patrick J Cherry
e0aae9c67c
re-tidied up warnings.
2014-01-21 09:51:37 +00:00
Patrick J Cherry
e96601981b
Tidied up warnings in nlsocket
2014-01-18 07:08:19 +00:00
Patrick J Cherry
75a6eaca70
Added tag 0.14-1+wheezy1 for changeset babbc25e15f5
2013-11-14 13:38:35 +00:00
Patrick J Cherry
427fa40ef4
New upstream release
0.14-1+wheezy1
2013-11-14 13:37:57 +00:00
Patrick J Cherry
8bbb45af33
Added tag 0.14 for changeset b75625aab29e
0.14
2013-11-14 11:50:06 +00:00
nick
d86d0c8408
Automated merge with ssh://dev.bytemark.co.uk/netlinkrb
2013-11-13 17:52:55 +00:00
nick
0281a5e4eb
VlanInfo: Parse the new protocol attribute
2013-11-13 17:52:32 +00:00
Patrick J Cherry
84c0414550
Added tag 0.13 for changeset 2344803abef0
2013-11-13 16:19:11 +00:00
Patrick J Cherry
7ad9816fc3
Added tag 0.13-1+wheezy1 for changeset 6681f37480ff
2013-11-13 16:17:36 +00:00
Patrick J Cherry
4e4d0e02b6
New upstream release
0.13-1+wheezy1
2013-11-13 16:16:57 +00:00
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
a4afa867a1
Added tag 0.12-1+wheezy1 for changeset 5a2086dbce00
2013-09-12 14:27:19 +01:00
Patrick J Cherry
72ce94ef59
Merge, new upstream release
0.12-1+wheezy1
2013-09-12 14:27:08 +01:00
Patrick J Cherry
2e47380c9e
Added tag 0.12 for changeset f95fbb61dafc
2013-09-12 14:21:24 +01:00
Patrick J Cherry
b0f17ca852
Version bump
0.13
2013-09-12 14:21:20 +01: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
a16a66ccdd
More test robustification
2013-09-11 15:44:25 +00:00
Patrick J Cherry
1772341df6
Robustification of tests.
2013-09-11 16:16:22 +01:00
Patrick J Cherry
32309e4797
Updated test to fall back to eth0 when trying to create a dummy interface
2013-09-11 14:37:40 +00:00
Patrick J Cherry
ee38239429
merge
2013-07-16 16:50:24 +01:00
Patrick J Cherry
f2657674aa
updated gemspec
2013-07-16 16:49:15 +01:00
Patrick J Cherry
33fe733d3f
merge
2013-07-16 16:47:11 +01:00
Patrick J Cherry
796724e012
Foo
0.12
2013-07-16 16:28:40 +01:00
Patrick J Cherry
181d3cd30a
Foo
2013-07-16 16:28:40 +01:00
Patrick J Cherry
4ed52c07dd
Added tag 0.11-1+wheezy2 for changeset 123ea9ee6130
2013-07-05 14:25:40 +01:00
Patrick J Cherry
ffe52106cd
merged heads
0.11-1+wheezy2
2013-07-05 14:25:08 +01:00
Patrick J Cherry
10f11d9bc1
Updated package name to match ruby-packaging standards.
...
Added patch to remove rubygems requirements.
2013-07-05 14:23:49 +01:00
Patrick J Cherry
4cba09d819
Added patches to remove rubygems requirements.
2013-07-05 14:17:24 +01:00
Patrick J Cherry
9e1b28a8b1
Added tag 0.11-1+wheezy1 for changeset 5db0aa45b5e2
2013-07-05 13:58:14 +01:00
Patrick J Cherry
08050fbec7
Updated packaging for wheezy.
0.11-1+wheezy1
2013-07-05 13:58:07 +01:00
Patrick J Cherry
7eb0b073ec
Added wheezy branch
2013-07-05 13:54:39 +01:00
Patrick J Cherry
d8a9da0521
Removed debian packaging from upstream branch
2013-07-05 13:53:59 +01:00
Patrick J Cherry
1b599fe046
Added upstream branch
2013-07-05 13:53:21 +01:00
Patrick J Cherry
ef2a7b1f56
Added squeeze branch
2013-07-05 13:53:09 +01:00
Patrick J Cherry
87ad5d9c75
version bump
0.11-1+squeeze1
2013-07-05 13:52:42 +01:00
Patrick J Cherry
3a2d9e8bef
Added tag 0.11 for changeset 65d439b0d689
2013-07-05 13:51:58 +01:00
Patrick J Cherry
a712e651a7
Version bump
0.11
2013-07-05 13:51:54 +01:00
Patrick J Cherry
760b973303
Updated tests to operate on a dummy interface, rather than lo.
2013-07-05 13:51:48 +01: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
88369d914d
pkg: Fix the metapackage Depends:
2013-06-26 09:40:07 +01:00
nick
f9166d1d8a
Add ip rule support
2012-07-05 15:21:39 +01:00