Hello!

> 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...

A part of segment must touch interval s_win...e_win.

if (!after(end_seq, s_win))
        it is before start of window

if (!before(seq, e_win))
        it is after end of window

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

Reply via email to