mirror of
https://github.com/bettercap/bettercap
synced 2025-08-14 02:36:57 -07:00
new: new -pcap-buf-size option to set a custom pcap buffer size (closes #896)
This commit is contained in:
parent
59dce4ced6
commit
81ae731b9f
3 changed files with 10 additions and 2 deletions
|
@ -1,6 +1,8 @@
|
|||
package core
|
||||
|
||||
import "flag"
|
||||
import (
|
||||
"flag"
|
||||
)
|
||||
|
||||
type Options struct {
|
||||
InterfaceName *string
|
||||
|
@ -18,6 +20,7 @@ type Options struct {
|
|||
MemProfile *string
|
||||
CapletsPath *string
|
||||
Script *string
|
||||
PcapBufSize *int
|
||||
}
|
||||
|
||||
func ParseOptions() (Options, error) {
|
||||
|
@ -37,6 +40,7 @@ func ParseOptions() (Options, error) {
|
|||
MemProfile: flag.String("mem-profile", "", "Write memory profile to `file`."),
|
||||
CapletsPath: flag.String("caplets-path", "", "Specify an alternative base path for caplets."),
|
||||
Script: flag.String("script", "", "Load a session script."),
|
||||
PcapBufSize: flag.Int("pcap-buf-size", -1, "PCAP buffer size, leave to 0 for the default value."),
|
||||
}
|
||||
|
||||
flag.Parse()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue