structure

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2018 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Host

type Host struct {
	ID    bson.ObjectId `bson:"_id,omitempty"`
	IP    string        `bson:"ip"`
	Local bool          `bson:"local"`
	IPv4  bool          `bson:"ipv6"`
}

Host describes a computer interface found in the network traffic being analyzed

type IPv4Binary added in v1.0.0

type IPv4Binary struct {
	ID         bson.ObjectId `bson:"_id,omitempty"`
	IP         string        `bson:"ip"`
	IPv4Binary int64         `bson:"ipv4_binary"`
}

IPv4Binary provides a way to store a binary representation of an IPv4 address in MongoDB

type IPv6Binary added in v1.0.0

type IPv6Binary struct {
	ID         bson.ObjectId `bson:"_id,omitempty"`
	IP         string        `bson:"ip"`
	IPv6Binary IPv6Integers  `bson:"ipv6_binary"`
}

IPv6Binary provides a way to store a binary representation of an IPv6 address in MongoDB.

type IPv6Integers added in v1.0.0

type IPv6Integers struct {
	I1 int64 `bson:"1"`
	I2 int64 `bson:"2"`
	I3 int64 `bson:"3"`
	I4 int64 `bson:"4"`
}

IPv6Integers provides a way to store a binary representation of an IPv6 address in MongoDB. The 128 bit address is split into four 32 bit values. However, MongoDB cannot store unsigned numbers, so we use 64 bit integers to hold the values.

type UniqueConnection

type UniqueConnection struct {
	ID              bson.ObjectId `bson:"_id,omitempty"`
	ConnectionCount int           `bson:"connection_count"`
	Src             string        `bson:"src"`
	Dst             string        `bson:"dst"`
	LocalSrc        bool          `bson:"local_src"`
	LocalDst        bool          `bson:"local_dst"`
	TotalBytes      int           `bson:"total_bytes"`
	AverageBytes    float32       `bson:"average_bytes"`
	TotalDuration   float32       `bson:"total_duration"`
}

UniqueConnection describes a pair of computer interfaces which contacted each other over the observation period

Jump to

Keyboard shortcuts

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