On Nov 26, 2013, at 6:53 AM, Silvia Fichera wrote:
> You are right! I want to pretend that a connection is open.
> I've done this:
>
> def send_tcp(seqNum, srcMAC, dstMAC,srcIP,dstIP,srcPort,dstPort,inport):
>tcp_packet = tcp()
>tcp_packet.srcport = dstPort
>tcp_packet.dstport = src
You are right! I want to pretend that a connection is open.
I've done this:
def send_tcp(seqNum, srcMAC, dstMAC,srcIP,dstIP,srcPort,dstPort,inport):
tcp_packet = tcp()
tcp_packet.srcport = dstPort
tcp_packet.dstport = srcPort
tcp_packet.len = tcp.MIN_LEN+20
tcp_packet.win=1
tcp_p
The .win attribute of the TCP class should be an integer, and it's just put
into the 16-bit window field verbatim. IIRC, in the absence of window scaling,
this is just the number of bytes (beyond whatever is being ACKed) that you're
willing to receive. (If you're just trying to get a client to
Hi all,
I would like send a TCP - SYN/ACK packet from the controller to one host.
I already know how to buid UDP packet and send it in flooding, so I think I
can follow the same way with TCP fields.
I need to set a minimal congestion window as I can receive only the ACK. Is
it measured in bit? How