On 05/12/11 09:53 PM, Vladimir Kotal wrote:

I'd like to test a path in Solaris TCP stack where FIN segment with
piggybacked data is processed (server side).

My first issue is how to effectively/easily generate such connection
(3WHS + optionally some data segments + FIN with data) on the client
side. Is there easier way than using raw sockets ?


If you use Solaris 11, you can try the TCP_CORK option.  Do
something like

1. Set up the connection.
2. Use setsockopt() to turn on TCP_CORK.
3. Send some data with length less than 1 MSS, say 100 bytes.
4. Call close().

TCP should send out the 100 bytes of data with FIN set.


Secondly, and this is tied to the first question, is what can make TCP
stack (primarily interested in client side) to emit FIN+data segment,
both on Solaris and other systems.


The above should also work in Linux.


--

                                        K. Poon.
                                        ka-cheong.p...@oracle.com
_______________________________________________
networking-discuss mailing list
networking-discuss@opensolaris.org

Reply via email to