sid

package
v0.0.0-...-f1d3745 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 27, 2019 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Package sid reads the standard sid-msg.map file that is distributed with snort's rule set. A line of this file is of the format:

numeric-id || text-description || ref-1 || .. || ref-n

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadFile

func ReadFile(file string) (<-chan SidMap, <-chan error)

Asynchronously read sid-msg.map, the result/errors are returned over channels. The caller should use a select statement.

Types

type SID

type SID struct {
	// Textual description of the signature
	Description string

	// List of associated reference ids, e.g. cve
	References []string
}

Defines the fields for a signature

type SidMap

type SidMap map[uint32]*SID

Representation of sid-msg.map file

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL