跳到主要内容

5.1. Acct-Status-Type

Description (描述)

本属性指示本 Accounting-Request 标记的是用户服务的开始 (Start) 还是结束 (Stop).

Client 可以通过指定 Accounting-On 来标记 Accounting 的开始 (例如启动时), 也可以通过指定 Accounting-Off 来标记 Accounting 的结束 (例如在计划重启之前).

Acct-Status-Type 属性格式概要如下. 字段从左到右传输.

 0                   1                   2                   3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Type | Length | Value
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Value (cont) |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

Type

40, 表示 Acct-Status-Type.

Length

6

Value

Value 字段占四个 octet.

含义
1Start
2Stop
3Interim-Update
7Accounting-On
8Accounting-Off
9-14Reserved for Tunnel Accounting (保留供隧道计费)
15Reserved for Failed (保留供失败)