Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bronze1man/radius
/ functions
Functions
98 in github.com/bronze1man/radius
⨍
Functions
98
◇
Types & classes
31
↓ 35 callers
Function
ok
(t bool)
packet_test.go:77
↓ 27 callers
Method
GetAVP
get one avp
packet.go:117
↓ 26 callers
Method
Decode
(p *Packet)
avp.go:38
↓ 12 callers
Method
String
(p *Packet, a AVP)
avp.go:52
↓ 5 callers
Method
Get
Get client from list of clients based on host
client.go:18
↓ 4 callers
Function
DecodePacket
(Secret string, buf []byte)
packet.go:207
↓ 4 callers
Method
GetHerd
()
client.go:51
↓ 4 callers
Function
NewClient
NewClient return new client
client.go:72
↓ 4 callers
Function
getAttributeTypeDesc
(t AttributeType)
AttributeType.go:184
↓ 3 callers
Method
GetUsername
()
packet.go:269
↓ 2 callers
Method
AddAVP
(avp AVP)
packet.go:151
↓ 2 callers
Method
AddOrUpdate
Add new client or reset existing client based on host
client.go:26
↓ 2 callers
Method
Encode
(b []byte)
avp.go:27
↓ 2 callers
Method
Encode
此方法保证不修改包的内容 This method does not modify the contents of the package to ensure
packet.go:42
↓ 2 callers
Method
GetHost
GetHost get the client host
client.go:66
↓ 2 callers
Method
GetPassword
()
packet.go:276
↓ 2 callers
Method
Reply
()
packet.go:189
↓ 2 callers
Method
encodeNoHash
()
packet.go:88
↓ 1 callers
Method
Copy
()
avp.go:19
↓ 1 callers
Method
Copy
()
packet.go:26
↓ 1 callers
Method
DeleteOneType
delete all avps with this type
packet.go:175
↓ 1 callers
Function
EapDecode
(b []byte)
eap.go:120
↓ 1 callers
Method
Encode
()
eap.go:103
↓ 1 callers
Method
GetEAPMessage
()
packet.go:351
↓ 1 callers
Method
GetNasIpAddress
()
packet.go:284
↓ 1 callers
Method
GetSecret
GetSecret get shared secret
client.go:68
↓ 1 callers
Function
MsChapV2PacketFromEap
(eap *EapPacket)
msChapv2.go:25
↓ 1 callers
Function
NewClientList
(cs []Client)
client.go:5
↓ 1 callers
Method
RadiusHandle
(request *Packet)
server.go:23
↓ 1 callers
Method
Remove
Remove client based on host
client.go:33
↓ 1 callers
Method
Send
(c net.PacketConn, addr net.Addr)
packet.go:197
↓ 1 callers
Method
SetAVP
set one avp,remove all other same type
packet.go:146
↓ 1 callers
Method
SetHerd
SetHerd reset/initialize the herd of clients
client.go:40
↓ 1 callers
Method
String
(p *Packet, a AVP)
avp.go:157
↓ 1 callers
Method
StringWithPacket
(p *Packet)
avp.go:46
↓ 1 callers
Method
ToAVP
encode VSA attribute under Vendor-Specific AVP
avp_vendor.go:36
↓ 1 callers
Method
Value
(p *Packet, a AVP)
avp.go:51
↓ 1 callers
Method
Value
(p *Packet, a AVP)
avp.go:103
↓ 1 callers
Method
Value
(p *Packet, a AVP)
avp.go:152
↓ 1 callers
Method
Value
(p *Packet, a AVP)
avp.go:173
↓ 1 callers
Method
checkMessageAuthenticator
如果没有MessageAuthenticator也算通过 If no Message Authenticator can be considered by
packet.go:239
↓ 1 callers
Method
valueString
()
eap.go:83
Method
AddVSA
(vsa VSA)
packet.go:155
Method
Authenticate
(request *Packet)
server.go:28
Method
Copy
()
eap.go:97
Method
DeleteAVP
删除一个AVP Delete a AVP
packet.go:161
Method
GetAcctSessionId
()
packet.go:300
Method
GetAcctStatusType
()
packet.go:292
Method
GetAcctTotalInputOctets
()
packet.go:321
Method
GetAcctTotalOutputOctets
()
packet.go:308
Method
GetCalledStationId
()
packet.go:383
Method
GetCallingStationId
()
packet.go:375
Method
GetFramedIPAddress
()
packet.go:359
Method
GetHost
GetHost get the client host
client.go:88
Method
GetNASIdentifier
()
packet.go:343
Method
GetNASPort
it is ike_id in strongswan client
packet.go:335
Method
GetNASPortId
()
packet.go:391
Method
GetSecret
GetSecret get shared secret
client.go:83
Method
GetTerminateCause
()
packet.go:367
Method
GetVSA
get one vsa
packet.go:127
Method
HasAVP
(attrType AttributeType)
packet.go:107
Method
ListenAndServe
* func (s *Server) RegisterService(serviceAddr string, handler Service) { s.services[serviceAddr] = handler } */ ListenAndServe listen on the UDP net
server.go:58
Function
NewServer
NewServer return a new Server given a addr, secret, and service
server.go:36
Method
Stop
Stop will stop the server
server.go:118
Method
String
不包括eap的信息
msChapv2.go:38
Method
String
()
msChapv2.go:52
Method
String
()
avp.go:42
Method
String
(p *Packet, a AVP)
avp.go:62
Method
String
(p *Packet, a AVP)
avp.go:73
Method
String
(p *Packet, a AVP)
avp.go:84
Method
String
(p *Packet, a AVP)
avp.go:95
Method
String
(p *Packet, a AVP)
avp.go:127
Method
String
(p *Packet, a AVP)
avp.go:136
Method
String
(p *Packet, a AVP)
avp.go:183
Method
String
()
avp.go:201
Method
String
()
avp.go:233
Method
String
()
avp.go:270
Method
String
()
avp.go:309
Method
String
()
AttributeType.go:374
Method
String
()
PacketCode.go:45
Method
String
()
packet.go:259
Method
String
()
eap.go:18
Method
String
()
eap.go:47
Method
String
()
eap.go:79
Method
String
(p *Packet, a AVP)
avp_vendor.go:24
Function
TestAvpUint32Enum
(ot *testing.T)
avp_test.go:7
Function
TestClientList
(t *testing.T)
client_test.go:8
Function
TestPacket
(ot *testing.T)
packet_test.go:10
Function
TestPacket2
(ot *testing.T)
packet_test.go:57
Method
ToEAPMessage
()
eap.go:113
Method
ToEap
()
msChapv2.go:15
Method
Value
(p *Packet, a AVP)
avp.go:59
Method
Value
(p *Packet, a AVP)
avp.go:70
Method
Value
(p *Packet, a AVP)
avp.go:81
Method
Value
(p *Packet, a AVP)
avp.go:92
Method
Value
(p *Packet, a AVP)
avp.go:133
Method
Value
(p *Packet, a AVP)
avp_vendor.go:19
Method
WithClientList
WithClientList set a list of clients that have it's own secret
server.go:47