fmt.Fprint(os.Stderr, "nncp-toss -- process inbound packets\n\n")
fmt.Fprintf(os.Stderr, "Usage: %s [options]\nOptions:\n", os.Args[0])
flag.PrintDefaults()
fmt.Fprint(os.Stderr, "nncp-toss -- process inbound packets\n\n")
fmt.Fprintf(os.Stderr, "Usage: %s [options]\nOptions:\n", os.Args[0])
flag.PrintDefaults()
noTrns = flag.Bool("notrns", false, "Do not process \"transitional\" packets")
noArea = flag.Bool("noarea", false, "Do not process \"area\" packets")
noACK = flag.Bool("noack", false, "Do not process \"ack\" packets")
noTrns = flag.Bool("notrns", false, "Do not process \"transitional\" packets")
noArea = flag.Bool("noarea", false, "Do not process \"area\" packets")
noACK = flag.Bool("noack", false, "Do not process \"ack\" packets")
spoolPath = flag.String("spool", "", "Override path to spool")
logPath = flag.String("log", "", "Override path to logfile")
quiet = flag.Bool("quiet", false, "Print only errors")
spoolPath = flag.String("spool", "", "Override path to spool")
logPath = flag.String("log", "", "Override path to logfile")
quiet = flag.Bool("quiet", false, "Print only errors")
- nice,
- *dryRun, *doSeen, *noFile, *noFreq, *noExec, *noTrns, *noArea, *noACK,
+ &nncp.TossOpts{
+ Nice: nice,
+ DoSeen: *doSeen,
+ NoFile: *noFile,
+ NoFreq: *noFreq,
+ NoExec: *noExec,
+ NoTrns: *noTrns,
+ NoArea: *noArea,
+ NoACK: *noACK,
+ GenACK: *genACK,
+ },
- nice,
- *dryRun, false, true, true, true, true, *noArea, *noACK,
+ &nncp.TossOpts{
+ Nice: nice,
+ NoFile: true,
+ NoFreq: true,
+ NoExec: true,
+ NoTrns: true,
+ NoArea: *noArea,
+ NoACK: *noACK,
+ },
- nice,
- *dryRun, *doSeen, *noFile, *noFreq, *noExec, *noTrns, *noArea, *noACK,
+ &nncp.TossOpts{
+ Nice: nice,
+ DryRun: *dryRun,
+ DoSeen: *doSeen,
+ NoFile: *noFile,
+ NoFreq: *noFreq,
+ NoExec: *noExec,
+ NoTrns: *noTrns,
+ NoArea: *noArea,
+ NoACK: *noACK,
+ GenACK: *genACK,
+ },
- nice,
- *dryRun, false, true, true, true, true, *noArea, *noACK,
+ &nncp.TossOpts{
+ Nice: nice,
+ NoFile: true,
+ NoFreq: true,
+ NoExec: true,
+ NoTrns: true,
+ NoArea: *noArea,
+ NoACK: *noACK,
+ },