Commit Graph

155 Commits

Author SHA1 Message Date
Patrick J Cherry
6e75dc4e17 Re-instate this as an arch-independent package, and remove gcc call
We're now assuming that the size of size_t is a long unsigned integer.
In the kernel there's a comment:

/*
 * Most 32 bit architectures use "unsigned int" size_t,
 * and all 64 bit architectures use "unsigned long" size_t.
 */

On 32 bit architectures, an unsigned int is the same size as an unsigned
long anyway, so I think this assumption is OK.
2017-05-10 11:38:10 +01:00
Patrick J Cherry
a539a87132 Revert "Revert "This is really an arch-independent package""
This reverts commit c7d9554d63.
2017-05-10 11:38:02 +01:00
Patrick J Cherry
c7d9554d63 Revert "This is really an arch-independent package"
This reverts commit 2614fdd90d.
2017-05-10 10:11:14 +01:00
Ian Chilton
e2543fb32b Merge branch 'package-gem' into 'master'
Added gem packaging job

See merge request !2
2017-03-07 16:52:00 +00:00
Patrick J Cherry
e7ba3b40c2 Added gem packaging job 2017-03-07 16:25:15 +00:00
Steve Kemp
f591cd8dcb Merge branch '2-package-and-publish-in-gitlab-ci-retire-maker2-job' into 'master'
Build in gitlab-ci

Closes #2

See merge request !1
2017-03-01 08:38:06 +00:00
Patrick J Cherry
b25a4b8744 Updated changelog 2017-02-28 16:44:50 +00:00
Patrick J Cherry
a389edbf27 Set correct image for publishing 2017-02-28 16:39:58 +00:00
Patrick J Cherry
8c21f7c28f Use docker images to build 2017-02-28 16:34:13 +00:00
Patrick J Cherry
2614fdd90d This is really an arch-independent package 2017-02-28 16:33:28 +00:00
Patrick J Cherry
230c5f8641 Added quilt as a build-dep 2017-02-28 16:28:56 +00:00
Patrick J Cherry
17cf206279 Added correct debbuildopt 2017-02-28 16:25:05 +00:00
Patrick J Cherry
15a303cb97 Use quilt to build 2017-02-28 16:21:31 +00:00
Patrick J Cherry
7488920028 Update sautobuild just do do a binary build; also save artifacts 2017-02-28 16:20:27 +00:00
Patrick J Cherry
ae655dde0e added wheezy 2017-02-28 16:17:10 +00:00
Patrick J Cherry
4c7488d928 gitlab-ci: Checkout master before trying to do stuff 2017-02-22 13:06:20 +00:00
Patrick J Cherry
1aff2698f7 gitlab-ci: Updated some more 2017-02-22 13:05:19 +00:00
Patrick J Cherry
c3a79718fa Use sautobuild to do the building 2017-02-22 12:09:19 +00:00
Patrick J Cherry
27e9ba595b Add more git-buildpackage flags 2017-01-24 16:54:15 +00:00
Patrick J Cherry
ad1fbc788d Checkout the branch, don't create it 2017-01-24 16:52:05 +00:00
Patrick J Cherry
1f2b994c45 First pass at gitlab-ci 2017-01-24 16:51:07 +00:00
Patrick J Cherry
885990c5b3 Updated changelog 0.18-1+jessie1 2016-10-17 13:11:17 +01:00
Patrick J Cherry
da46b0ec2a Merge branch 'master' into debian/jessie 2016-10-17 13:10:35 +01:00
Patrick J Cherry
552696e3b0 Updated to 0.18 0.18 2016-10-17 13:08:53 +01:00
Patrick J Cherry
23d710e94b Updated linux header constants 2016-10-17 13:07:47 +01:00
Patrick J Cherry
9e6ce9d913 Merged in another test fix 2015-04-02 11:53:48 +01:00
Patrick J Cherry
06d78d4168 Scaled back the massive allocation of IPs from 11 /24s to 4.
Otherwise I get

Error: test_massively_parallel_IP_address_addition(TestAddr::TestWithNetlinkRouteSocket)
  Errno::EMFILE: Too many open files - socket(2)
  lib/linux/netlink/nlsocket.rb:61:in `initialize'
  lib/linux/netlink/nlsocket.rb:61:in `new'
  lib/linux/netlink/nlsocket.rb:61:in `initialize'
  lib/linux/netlink/route.rb:21:in `initialize'
  test/t_route.rb:54:in `new'
  test/t_route.rb:54:in `block (4 levels) in <class:TestAddr>'
2015-04-02 11:52:56 +01:00
Patrick J Cherry
a97bbe0d7c Merged in new tests 2015-04-02 11:47:17 +01:00
Patrick J Cherry
2ceb0fbf6d Make sure link exists before proceeding with test 2015-04-02 11:44:40 +01:00
Patrick J Cherry
d771a2be9c New tests 2015-04-01 23:12:30 +01:00
Patrick J Cherry
51b8bbcd8a Fixed new massive IP test thing to work with ruby1.8 and also non-root users 2015-04-01 23:05:41 +01:00
Patrick J Cherry
118903d9d5 Added tag 0.17-1+jessie1 for changeset 149ff4e2efb4 2015-04-01 22:52:30 +01:00
Patrick J Cherry
0ed037fc9d New jessie release 0.17-1+jessie1 2015-04-01 22:52:10 +01:00
Patrick J Cherry
aa45b7fa3e Added tag 0.17 for changeset ecf38b43dd66 2015-04-01 22:43:23 +01:00
Patrick J Cherry
981eb2ec29 Version bump 0.17 2015-04-01 22:43:20 +01:00
Patrick J Cherry
4b17ea4714 new branch 2015-04-01 17:40:19 +01:00
nick
6ebbdbbf87 Update gemspec 0.16 2014-08-27 10:24:13 +01:00
nick
71ac26af38 Automated merge with ssh://dev.bytemark.co.uk//repos/netlinkrb 2014-08-27 09:06:49 +01:00
nick
4afbfa91c0 tests: Add a create-many-IPs-in-parallel test, as this is a common operation 2014-08-27 09:06:44 +01:00
Patrick J Cherry
05e54f22e8 Added tag 0.16-1+wheezy1 for changeset c0eb6a0f135a 2014-08-26 16:34:27 +01:00
Patrick J Cherry
f2f99ce8e4 New upstream release. 0.16-1+wheezy1 2014-08-26 16:34:20 +01:00
Patrick J Cherry
617129b707 Don't whinge about missing attributes 2014-08-26 16:31:34 +01:00
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