Lines Matching refs:dport
177 def _tcp_pick_port(self, dhost, dport): argument
180 if (dhost, dport, p) in self._tcp_fwd_out:
192 dport = pkt.ip.tcp.dport
195 if (shost, sport, dport) in self._tcp_fwd_out:
196 fhost, fport, oport = self._tcp_fwd_out[(shost, sport, dport)]
199 pkt.ip.tcp.dport = fport
206 if dport in self._tcp_fwd_ports:
208 fhost, fport = self._tcp_fwd_ports[dport]
212 if (shost, sport, dport) in self._tcp_fwd_in:
213 lport = self._tcp_fwd_in[(shost, sport, dport)]
217 self._tcp_fwd_in[(shost, sport, dport)] = lport
218 self._tcp_fwd_out[(fhost, fport, lport)] = (shost, sport, dport)
222 pkt.ip.tcp.dport = fport
317 dport = port,