fa.netbsd.tech.net
[Top] [All Lists]

Re: randomize source port

Subject: Re: randomize source port
From: "Jeremy C. Reed" <reed@xxxxxxxxxxxxx>
Date: Fri, 11 Jul 2008 18:12:25 UTC
Newsgroups: fa.netbsd.tech.net
If anyone wants to test timing, the attached patch also allows you to 
toggle via sysctl.

I tested by doing a loop of socket and connect and close 500000 times but 
didn't notice anything yet. (In fact, I can't detect more than one source 
port so probably done wrong. See second attachment.) I used time to time 
it with net.inet.ip.randomport as 0 and 1.

Attachment: portrandom.diff
Description: Text document

Attachment: test-random.c
Description: Text document

<Prev in Thread] Current Thread [Next in Thread>