Documentation ¶
Index ¶
- Constants
- func Capture(opts ...g.Option) *g.Capture
- func DefaultGatewayIP(str string) g.Route
- func DefaultGatewayIPv4(a, b, c, d byte) g.Route
- func Filter(h g.FilterHook, stmts ...filters.Statement) g.FilterRule
- func Interface(name string, opts ...g.Option) *g.Interface
- func Route(network net.IPNet, gw net.IP) g.Route
- type Address
- type AgingTime
- type BPFilter
- type Buffer
- type CaptureLength
- type CaptureNetwork
- type Comment
- type Corruption
- type Duplicate
- type ExistingDockerContainer
- type ExistingNamespace
- type File
- type Filename
- type FilterInterfaces
- type Forwarding
- type Gap
- type Group
- type HardwareAddress
- type HelloTime
- type Jitter
- type Latency
- type Limit
- type LogToDebug
- type Loss
- type MTU
- type MinBurst
- type MulticastSnooping
- type NSPrefix
- type Netem
- type NetemOption
- type PeakRate
- type PeerHardwareAddress
- type Persistent
- type Probability
- type Promisc
- type Rate
- type Reordering
- type Tbf
- type TbfOption
- type TxQLen
- type VLANFiltering
Constants ¶
View Source
const ( SouthBound = Group(g.DeviceGroupSouthBound) NorthBound = Group(g.DeviceGroupNorthBound) )
Variables ¶
This section is empty.
Functions ¶
func DefaultGatewayIP ¶ added in v0.2.3
func DefaultGatewayIPv4 ¶ added in v0.2.3
func Filter ¶ added in v0.3.0
func Filter(h g.FilterHook, stmts ...filters.Statement) g.FilterRule
Types ¶
type Address ¶
func AddressIPv4 ¶
type CaptureLength ¶ added in v1.2.0
type CaptureLength int
func (CaptureLength) Apply ¶ added in v1.2.0
func (sl CaptureLength) Apply(c *g.Capture)
type CaptureNetwork ¶ added in v1.2.0
func CaptureAll ¶ added in v1.2.0
func CaptureAll(opts ...g.Option) CaptureNetwork
func (CaptureNetwork) Apply ¶ added in v1.2.0
func (c CaptureNetwork) Apply(n *g.Network)
type Corruption ¶ added in v0.1.0
type Corruption Probability
func (Corruption) ApplyNetem ¶ added in v0.1.0
func (c Corruption) ApplyNetem(n *Netem)
type Duplicate ¶ added in v0.1.0
type Duplicate Probability
func (Duplicate) ApplyNetem ¶ added in v0.1.0
type ExistingDockerContainer ¶ added in v0.1.0
type ExistingDockerContainer string
func (ExistingDockerContainer) Apply ¶ added in v0.1.0
func (d ExistingDockerContainer) Apply(n *g.BaseNode)
type ExistingNamespace ¶
type ExistingNamespace string
func (ExistingNamespace) Apply ¶
func (e ExistingNamespace) Apply(n *g.BaseNode)
type FilterInterfaces ¶ added in v1.2.0
type FilterInterfaces g.CaptureFilterInterfaceFunc
func (FilterInterfaces) Apply ¶ added in v1.2.0
func (f FilterInterfaces) Apply(c *g.Capture)
type Forwarding ¶ added in v0.1.0
type Forwarding bool
func (Forwarding) Apply ¶ added in v0.1.0
func (b Forwarding) Apply(h *g.Host)
type HardwareAddress ¶
type HardwareAddress net.HardwareAddr
func AddressMAC ¶ added in v0.2.0
func AddressMAC(s string) HardwareAddress
func AddressMACBytes ¶ added in v0.2.0
func AddressMACBytes(b []byte) HardwareAddress
func (HardwareAddress) Apply ¶
func (a HardwareAddress) Apply(la *nl.LinkAttrs)
type Jitter ¶ added in v0.1.0
func (Jitter) ApplyNetem ¶ added in v0.1.0
type Latency ¶ added in v0.1.0
func (Latency) ApplyNetem ¶ added in v0.1.0
type LogToDebug ¶ added in v1.1.0
type LogToDebug bool
func (LogToDebug) Apply ¶ added in v1.1.0
func (l LogToDebug) Apply(n *g.BaseNode)
type MulticastSnooping ¶
type MulticastSnooping bool
func (MulticastSnooping) Apply ¶
func (mcs MulticastSnooping) Apply(b *nl.Bridge)
type Netem ¶ added in v0.1.0
type Netem nl.NetemQdiscAttrs
func WithNetem ¶ added in v0.1.0
func WithNetem(opts ...NetemOption) Netem
type NetemOption ¶ added in v0.1.0
type NetemOption interface {
ApplyNetem(n *Netem)
}
type PeerHardwareAddress ¶
type PeerHardwareAddress net.HardwareAddr
func (PeerHardwareAddress) Apply ¶ added in v0.1.0
func (p PeerHardwareAddress) Apply(v *nl.Veth)
type Persistent ¶
type Persistent bool
func (Persistent) Apply ¶
func (p Persistent) Apply(n *g.Network)
type Probability ¶ added in v0.1.0
type Reordering ¶ added in v0.1.0
type Reordering Probability
func (Reordering) ApplyNetem ¶ added in v0.1.0
func (p Reordering) ApplyNetem(n *Netem)
type VLANFiltering ¶
type VLANFiltering bool
func (VLANFiltering) Apply ¶
func (vf VLANFiltering) Apply(b *nl.Bridge)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.