This repository has been archived by the owner on Oct 25, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathradius.go
54 lines (44 loc) · 1.88 KB
/
radius.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
package libwimark
// radius.go -- for acct/auth radius packet structure
type RadiusAccessRequest struct {
Timestamp int64 `json:"Timestamp"`
EventTimestamp string `json:"Event-Timestamp"`
UserName string `json:"User-Name"`
Password string `json:"User-Password"`
CallingStationId string `json:"Calling-Station-Id"`
CalledStationId string `json:"Called-Station-Id"`
FramedIPAddress string `json:"Framed-IP-Address"`
NasPortType string `json:"NAS-Port-Type"`
NasPort string `json:"NAS-Port"`
NasPortId string `json:"NAS-Port-Id"`
NasIdentifier string `json:"NAS-Identifier"`
NasIPAddress string `json:"NAS-IP-Address"`
}
type RadiusAccessAccept struct {
}
type RadiusAccessReject struct {
}
type RadiusAccountingRequest struct {
Timestamp int64 `json:"Timestamp"`
EventTimestamp string `json:"Event-Timestamp"`
UserName string `json:"User-Name"`
CallingStationId string `json:"Calling-Station-Id"`
CalledStationId string `json:"Called-Station-Id"`
FramedIPAddress string `json:"Framed-IP-Address"`
NasPortType string `json:"NAS-Port-Type"`
NasPort string `json:"NAS-Port"`
NasPortId string `json:"NAS-Port-Id"`
NasIdentifier string `json:"NAS-Identifier"`
NasIPAddress string `json:"NAS-IP-Address"`
AcctStatusType string `json:"Acct-Status-Type"`
AcctDelayTime int `json:"Acct-Delay-Time"`
AcctSessionTime int `json:"Acct-Session-Time"`
AcctSessionId string `json:"Acct-Session-Id"`
AcctTerminateCause string `json:"Acct-Terminate-Cause,omitempty"`
AcctInputGigawords int `json:"Acct-Input-Gigawords"`
AcctOutputGigawords int `json:"Acct-Output-Gigawords"`
AcctInputOctets int `json:"Acct-Input-Octets"`
AcctOutputOctets int `json:"Acct-Output-Octets"`
AcctInputPackets int `json:"Acct-Input-Packets"`
AcctOutputPackets int `json:"Acct-Output-Packets"`
}