9711107 <[EMAIL PROTECTED]> wrote:
>                  Is it possible that TCP might give to the ip "PU" first, 
>                  and T the next time? or it that it gives the whole command 
>                  to the IP at a time. (Please note that I am NOT 

You cannot assume, in any socket/network/tty char device that
read(fd, buffer, SIZE) will return exactly SIZE bytes. It will return
UPTO (inclusive) SIZE. Thus, 'PUT' *could* be, even if this will be
rare, put into two consecutive packets.

If you use stdio, the library will take care of the problem for you
and for your point of view, data written will be the data read.

>                 ftp masquerading module (masq_ftp_out) that it is assumed
>                 these commands are not split. Please correct me if I am
>                 wrong.

In that case it looks wrong for me. Of course, most people will do
a write("string"); and not a write("s"); write("t"); etc. Moreoever,
even in the latter case, NAGLE algorithm (merging packets) could
make it work most of the time ... except if it was disabled.

It's wrong in the general general case. However, IP masquerading is
a hack anyway since it needs the router to peek into high level
stream.

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

Reply via email to