[PATCH v2 0/4] lib/socket: use proper typed constant UINT32_MAX for uint32_t typed port

Thomas Haller thaller at redhat.com
Wed Apr 9 03:16:06 PDT 2014


On Wed, 2014-04-09 at 12:08 +0200, Thomas Haller wrote:
> Rework the 3 patches sent on "Tue,  8 Apr 2014 14:06:24 +0200",
> including some bugfixes and actual testing of the code.
> It seems to work correctly now (which it didn't before).
> 
> I also included the patch from "Mon,  7 Apr 2014 20:26:51 +0200"
> > [PATCH 1/1] lib/socket: randomize the generated local port
> so, that one is obsolete as well.
> The "randomization" now also shuffles the order of how to access the
> lower 32 bits. In testing, this actually makes a lot of a difference.


For the record, I attach the python script I used to test this.

Thomas


-------------- next part --------------
A non-text attachment was scrubbed...
Name: nl_connect.py
Type: text/x-python
Size: 1780 bytes
Desc: 
URL: <http://lists.infradead.org/pipermail/libnl/attachments/20140409/e07eaab9/attachment.py>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part
URL: <http://lists.infradead.org/pipermail/libnl/attachments/20140409/e07eaab9/attachment.sig>


More information about the libnl mailing list