// Equal returns true if t and x have the same source and destination IP:Port
// address.
Equal returns true if t and x have the same source and destination IP:Port
address.
// Equal returns true if t and x have the same source and destination IP : Port // address .
func (t *TCPTuple) Equal(x *TCPTuple) bool {
	if x == nil {
		return false
	}
	if t.Src.Port == x.Src.Port {
		if t.Dst.Port == x.Dst.Port {
			if t.Src.IP.Equal(x.Src.IP) {
				return t.Dst.IP.Equal(x.Dst.IP)
			}
		}
	}
	return false
}
func ( t * TCPTuple ) Equal ( x * TCPTuple ) bool { if x == nil { return false } if t . Src . Port == x . Src . Port { if t . Dst . Port == x . Dst . Port { if t . Src . IP . Equal ( x . Src . IP ) { return t . Dst . IP . Equal ( x . Dst . IP ) } } } return false }
Equal returns true if t and x have the same source and destination IP:Port
address.
Equal returns true if t and x have the same source and destination IP : Port address .