allow inflight filter
This commit is contained in:
1 parent
aeb827b361
commit
8b111ddfdc
9 files changed
+956
-55
No files matched your search
+25
@@ -33,6 +33,21 @@ pub struct ClientCli {
|
||||
#[arg(long, default_value = "scpcap")]
|
||||
pub remote_exe: String,
|
||||
|
||||
/// How long a partial chunk may wait before being sent anyway, bounding
|
||||
/// latency on a still-growing source: "100ms", "2s", or a bare number of
|
||||
/// milliseconds. Chunks that reach --chunk sooner are sent immediately;
|
||||
/// this only governs the leftover. Matters most with --ip, where a
|
||||
/// selective filter would otherwise take a long time to fill a chunk.
|
||||
#[arg(long, value_name = "DURATION", default_value = "100ms")]
|
||||
pub flush_interval: String,
|
||||
|
||||
/// Only forward packets whose source or destination IP matches. May be
|
||||
/// repeated; a packet is kept if it matches any entry. Accepts a bare
|
||||
/// address ("1.1.1.1", "2606:4700::1111") or a CIDR prefix
|
||||
/// ("10.0.0.0/8"). Requires an Ethernet-linktype pcap source.
|
||||
#[arg(long = "ip", value_name = "ADDR")]
|
||||
pub ip: Vec<String>,
|
||||
|
||||
/// Append a diagnostic trace of this (local) process's transfer events
|
||||
/// to this file -- positions, rename detection, finalize -- for
|
||||
/// figuring out where a stalled transfer is stuck.
|
||||
@@ -80,6 +95,16 @@ pub struct ServerCli {
|
||||
#[arg(long, default_value_t = crate::zstd_frame::DEFAULT_LEVEL)]
|
||||
pub level: i32,
|
||||
|
||||
/// Flush interval for a partial chunk (--send mode). See the client's
|
||||
/// --flush-interval.
|
||||
#[arg(long, value_name = "DURATION", default_value = "100ms")]
|
||||
pub flush_interval: String,
|
||||
|
||||
/// IP filter for --send mode; repeated, one per address/prefix. See the
|
||||
/// client's --ip.
|
||||
#[arg(long = "ip", value_name = "ADDR")]
|
||||
pub ip: Vec<String>,
|
||||
|
||||
/// Destination final path (--recv mode).
|
||||
#[arg(long)]
|
||||
pub dest_final: Option<String>,
|
||||
|
||||
Reference in new issue
Block a user