freeradius

package
v0.0.0-...-2a05e8d Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StatisticsType = 127

	StatisticsTypeNone                  = 0
	StatisticsTypeAuthentication        = 1
	StatisticsTypeAccounting            = 2
	StatisticsTypeProxyAuthentication   = 4
	StatisticsTypeProxyAccounting       = 8
	StatisticsTypeInternal              = 16
	StatisticsTypeClient                = 32
	StatisticsTypeServer                = 64
	StatisticsTypeHomeServer            = 128
	StatisticsTypeAuthAcct              = 3
	StatisticsTypeProxyAuthAcct         = 12
	StatisticsTypeAuthAcctProxyAuthAcct = 15
	StatisticsTypeAll                   = 31
)

Statistics types.

View Source
const (
	TotalAccessRequests        = 128
	TotalAccessAccepts         = 129
	TotalAccessRejects         = 130
	TotalAccessChallenges      = 131
	TotalAuthResponses         = 132
	TotalAuthDuplicateRequests = 133
	TotalAuthMalformedRequests = 134
	TotalAuthInvalidRequests   = 135
	TotalAuthDroppedRequests   = 136
	TotalAuthUnknownTypes      = 137

	TotalProxyAccessRequests        = 138
	TotalProxyAccessAccepts         = 139
	TotalProxyAccessRejects         = 140
	TotalProxyAccessChallenges      = 141
	TotalProxyAuthResponses         = 142
	TotalProxyAuthDuplicateRequests = 143
	TotalProxyAuthMalformedRequests = 144
	TotalProxyAuthInvalidRequests   = 145
	TotalProxyAuthDroppedRequests   = 146
	TotalProxyAuthUnknownTypes      = 147

	TotalAccountingRequests    = 148
	TotalAccountingResponses   = 149
	TotalAcctDuplicateRequests = 150
	TotalAcctMalformedRequests = 151
	TotalAcctInvalidRequests   = 152
	TotalAcctDroppedRequests   = 153
	TotalAcctUnknownTypes      = 154

	TotalProxyAccountingRequests    = 155
	TotalProxyAccountingResponses   = 156
	TotalProxyAcctDuplicateRequests = 157
	TotalProxyAcctMalformedRequests = 158
	TotalProxyAcctInvalidRequests   = 159
	TotalProxyAcctDroppedRequests   = 160
	TotalProxyAcctUnknownTypes      = 161

	QueueLenInternal = 162
	QueueLenProxy    = 163
	QueueLenAuth     = 164
	QueueLenAcct     = 165
	QueueLenDetail   = 166

	ServerIPAddress           = 170 // ipaddr
	ServerPort                = 171 // integer
	ServerOutstandingRequests = 172 // integer

	// Alive 0; Zombie 1; Dead 2; Idle 3
	ServerState = 173 // integer

	// When a home server is marked "dead" or "alive"
	ServerTimeOfDeath = 174 // date
	ServerTimeOfLife  = 175 // date

	StartTime = 176 // date
	HUPTime   = 177 // date

	EmaWindow       = 178 // integer
	EmaUsecWindow1  = 179 // integer
	EmaUsecWindow10 = 180 // integer

	QueuePPSIn         = 181 // integer
	QueuePPSOut        = 182 // integer
	QueueUsePercentage = 183 // integer
	LastPacketRecv     = 184 // date
	LastPacketSent     = 185 // date
	StatsError         = 187 // string
)

Statistics attributes.

View Source
const (
	VendorID = 11344
)

FreeRADIUS vendor ID.

Variables

This section is empty.

Functions

func GetDate

func GetDate(p *radius.Packet, typ byte) (time.Time, error)

GetDate returns attribute value.

func GetIP

func GetIP(p *radius.Packet, typ byte) (string, error)

GetIP returns attribute value.

func GetInt

func GetInt(p *radius.Packet, typ byte) (value uint32, err error)

GetInt returns attribute value.

func GetString

func GetString(p *radius.Packet, typ byte) (string, error)

GetString returns attribute value.

func SetValue

func SetValue(p *radius.Packet, typ byte, attr radius.Attribute) (err error)

SetValue sets attribute value.

Types

This section is empty.

Jump to

Keyboard shortcuts

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