1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
use std::net::SocketAddr;
use structopt::clap::AppSettings;
use structopt::StructOpt;
#[derive(Debug, StructOpt)]
#[structopt(global_settings = &[AppSettings::ColoredHelp], after_help=r#"The original shijack in C was written by spwny and released around 2001.
shijack credited cyclozine for inspiration."#)]
pub struct Args {
pub interface: String,
pub src: SocketAddr,
pub dst: SocketAddr,
#[structopt(long)]
pub seq: Option<u32>,
#[structopt(long)]
pub ack: Option<u32>,
#[structopt(short = "r", long)]
pub reset: bool,
#[structopt(short = "0", long)]
pub send_null: bool,
#[structopt(short, long, parse(from_occurrences))]
pub quiet: u8,
}