Documentation
¶
Overview ¶
Copyright © 2020 Stamus Networks oss@stamus-networks.com
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var DelayGrace = 100 * time.Microsecond
Functions ¶
func DumpSetJSON ¶
DumpSetJSON writes a Set object to user-defined JSON file
func FindPcapFiles ¶
Types ¶
type Config ¶
type Config struct { Set PcapSet WriteInterface string FilterRegex *regexp.Regexp OutBpf string DisableWait bool Reorder bool ScaleDuration time.Duration ScaleEnabled bool ScalePerFile bool SkipOutOfOrder bool SkipMTU int TimeFrom, TimeTo time.Time Ctx context.Context }
Config is used for passing Handle configurations when creating a new replay object
type Handle ¶
type Handle struct { FileSet PcapSet // contains filtered or unexported fields }
Handle is the core object managing replay state
type PcapSet ¶
func LoadSetJSON ¶
LoadSetJSON loads Set object from filesystem JSON dump
func NewPcapSet ¶
NewPcapSetFromList instantiates a new Set object from a list of Pcaps from filesystem module. Used for initial metadata scan.
func (*PcapSet) FilterFilesByRegex ¶
FilterFilesByRegex subsets pcap Set by applying regexp pattern on file names.
func (*PcapSet) FilterFilesByTime ¶
FilterFilesByTime subsets pcap Set by extracting only files where Period beginning is after or end is before user-provided timestamp value.