Lines Matching refs:tcp
55 # Mappings used for TCP traffic forwarding.
158 """Forwards all the TCP/IP traffic on a given port to another host.
164 @param port: The TCP port on this simulated host.
166 @param dest_port: The TCP port on the destination host.
178 """Picks a new unused source TCP port on the host."""
191 sport = pkt.ip.tcp.sport
192 dport = pkt.ip.tcp.dport
198 pkt.ip.tcp.sport = oport
199 pkt.ip.tcp.dport = fport
201 pkt.ip.tcp.sum = 0 # Force checksum
221 pkt.ip.tcp.sport = lport
222 pkt.ip.tcp.dport = fport
224 pkt.ip.tcp.sum = 0 # Force checksum