diameter

package
v1.30.0 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DIAMETER         = "diameter"
	DIAMETER_PORT    = 3868
	DIAMETER_VERSION = 1
	CER_COMMAND_CODE = 257
	R_BIT            = 0x80 // Request bit
	DIAMETER_SUCCESS = 2001
	AVP_RESULT_CODE  = 268
	AVP_ORIGIN_HOST  = 264
	AVP_ORIGIN_REALM = 296
	AVP_HOST_IP_ADDR = 257
	AVP_VENDOR_ID    = 266
	AVP_PRODUCT_NAME = 269
	AVP_FIRMWARE_REV = 267
	M_BIT            = 0x40 // Mandatory bit
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DIAMETERPlugin

type DIAMETERPlugin struct{}

func (*DIAMETERPlugin) Name

func (p *DIAMETERPlugin) Name() string

Name returns the protocol name

func (*DIAMETERPlugin) PortPriority

func (p *DIAMETERPlugin) PortPriority(port uint16) bool

PortPriority returns true if the port is 3868 (default Diameter port)

func (*DIAMETERPlugin) Priority

func (p *DIAMETERPlugin) Priority() int

Priority returns the plugin execution priority Diameter uses port 3868 exclusively, run at medium priority (after common services)

func (*DIAMETERPlugin) Run

func (p *DIAMETERPlugin) Run(conn net.Conn, timeout time.Duration, target plugins.Target) (*plugins.Service, error)

Run implements the main fingerprinting logic

func (*DIAMETERPlugin) Type

func (p *DIAMETERPlugin) Type() plugins.Protocol

Type returns the protocol type (TCP)

type ServiceDiameter

type ServiceDiameter struct {
	CPEs    []string `json:"cpes,omitempty"`
	Version string   `json:"version,omitempty"`
	Vendor  string   `json:"vendor,omitempty"`
	Product string   `json:"product,omitempty"`
}

ServiceDiameter contains metadata for Diameter services

func (ServiceDiameter) Type

func (s ServiceDiameter) Type() string

Type implements the Metadata interface

Jump to

Keyboard shortcuts

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