In article <008801bf40eb$7fbe66a0$387ee5c1@mjpnt>,
"=?iso-8859-1?Q?Mika_Penttil=E4?=" <[EMAIL PROTECTED]> writes:
> 2.3.30 file net/ipv4/tcp_input.c :
> static __inline__ int tcp_in_window(u32 seq, u32 end_seq, u32 s_win, u32 e_win)
> {
>  if (seq == s_win)
>   return 1;
---> if (after(end_seq, s_win) && before(seq, e_win))<---
>   return 1;
>  return (seq == e_win && seq == end_seq);
> }

> Seems that in the marked line above "end_seq" and "seq" are swapped? This test is 
>only used in the SYN-RECEIVED state and normally the first "if" holds anyway...

The test is ok, because end_seq >= seq and s_win < e_win holds (all modulo
2^32-1)

-Andi


-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]

Reply via email to