[En-Nut-Discussion] local tcp port randomisation

Ole Reinhardt ole.reinhardt at embedded-it.de
Mon Jul 9 16:17:05 CEST 2012


Hi All,

> I'm a little bit in doubt about NutGetMillis() providing enough
> variations. But as Michel reported, it indeed solved his problem. In
> addition, this code provides
> 
> 1. Less predictable port numbers than simple incrementing with reasonable re-use frequency.
> 2. Keeping port numbers in the range recommended by IANA.

I implemented the suggested changes today and updated tcpsock.c and
udpsock.c accordingly. See the trunk.

For further security much more effort would have to be spend, but I
think this will give us at least better results than the old
implementation.

Best regards,

Ole Reinhardt

-- 

Thermotemp GmbH, Embedded-IT

Embedded Hard-/ Software and Open Source Development, 
Integration and Consulting

http://www.embedded-it.de

Geschäftsstelle Siegen - Steinstraße 67 - D-57072 Siegen - 
tel +49 (0)271 5513597, +49 (0)271-73681 - fax +49 (0)271 736 97

Hauptsitz - Hademarscher Weg 7 - 13503 Berlin
Tel +49 (0)30 4315205 - Fax +49 (0)30 43665002
Geschäftsführer: Jörg Friedrichs, Ole Reinhardt
Handelsregister Berlin Charlottenburg HRB 45978 UstID DE 156329280 




More information about the En-Nut-Discussion mailing list