tcp_v4_get_port?
Quoted 4 lines
Kernel 2.4.19
Changes like; have it not starting to use ports from 1024 up, but rather from 32768 down to 1024 (and then from 65535 down again).
In 2.4.19, see tcp_v4_hash_connect() also, if youre autobinding on a connect().
thanks,
Nivedita