packetforward

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: MIT Imports: 21 Imported by: 0

Documentation

Overview

package packetforward contains the Retina packetforward plugin. It utilizes eBPF to measures packets and bytes passing through the eth0 interface of each node, along with the direction of the packets.

Copyright (c) Microsoft Corporation. Licensed under the MIT license.

Index

Constants

View Source
const (
	PacketForwardSocketAttach int            = 50
	Name                      api.PluginName = "packetforward"
)

Variables

This section is empty.

Functions

func New

func New(cfg *kcfg.Config) api.Plugin

New creates a new packetforward plugin.

Types

type IMap

type IMap interface {
	Lookup(key, valueOut interface{}) error
	Close() error
}

Interface to https://pkg.go.dev/github.com/cilium/ebpf#Map. Added for unit tests.

type PacketForwardData

type PacketForwardData struct {
	// contains filtered or unexported fields
}

func (PacketForwardData) String

func (p PacketForwardData) String() string

Directories

Path Synopsis
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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