Re: Controlling a TCP connection

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Henrik Nordstrom wrote:
On Thu, 21 Oct 2004, Ronaldo Z. Afonso wrote:

Hello,

I'm looking for an application that allows me to manage the a TCP connection.
What I need is some form to control the TCP communication in the middle of a connection , so that I can say:


1) Send a message with SYN set
2) Send a message with SYN/ACK set


You can't SYN in the middle of a connection. TCP does not allow this.

3) Send a message with PSH set


I think there is a setsockopt which allows you to do this.

yes. TCP_CORK is the option
4) And after some more messages with PSH set and others flags set, I send a message with RST set.


This can be done by using the SO_LINGER(0) option when closing the connection.



If you need additional control then you need to use a packet generator with support for TCP.

Regards
Henrik
-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


--
/***************************************************
 *Neil Horman
 *Software Engineer
 *Red Hat, Inc.
 *nhorman@redhat.com
 *gpg keyid: 1024D / 0x92A74FA1
 *http://pgp.mit.edu
 ***************************************************/
-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux