Hi List,
C is a foreign language to me but after a compile error i found a
small bug in obsd_rand.c:
ip_randomisn(void)
{
if (tcp_rndiss_cnt >= TCP_RNDISS_MAX ||
time_after(xtime.tv_sec, tcp_rndiss_reseed))
tcp_rndiss_init();
return (((tcp_rndiss_encrypt(tcp_rndiss_cnt++) |
(tcp_rndiss_msb) << 16) | (get_random_long() & 0x7fff));
}
correct is:
ip_randomisn(void)
{
if (tcp_rndiss_cnt >= TCP_RNDISS_MAX ||
time_after(xtime.tv_sec, tcp_rndiss_reseed))
tcp_rndiss_init();
return (((tcp_rndiss_encrypt(tcp_rndiss_cnt++) |
(tcp_rndiss_msb) << 16) | (get_random_long() & 0x7fff)));
}
after that it works