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
// Code generated by machine generator; DO NOT EDIT.

//! Utility for rfc3580 packet.
//!
//! This module handles the packet according to the following definition:
//! ```text
//! //! # -*- text -*-
//! # Copyright (C) 2020 The FreeRADIUS Server project and contributors
//! # This work is licensed under CC-BY version 4.0 https://creativecommons.org/licenses/by/4.0
//! # Version $Id$
//! #
//! #    Attributes and values defined in RFC 3580.
//! #    http://www.ietf.org/rfc/rfc3580.txt
//! #
//! #    $Id$
//! #
//! VALUE    Acct-Terminate-Cause        Supplicant-Restart    19
//! VALUE    Acct-Terminate-Cause        Reauthentication-Failure    20
//! VALUE    Acct-Terminate-Cause        Port-Reinit        21
//! VALUE    Acct-Terminate-Cause        Port-Disabled        22
//!
//! VALUE    NAS-Port-Type            Token-Ring        20
//! VALUE    NAS-Port-Type            FDDI            21
//!
//! VALUE    Tunnel-Type            VLAN            13
//! ```

use crate::core::rfc2865;
use crate::core::rfc2866;

use crate::core::rfc2868;

pub const ACCT_TERMINATE_CAUSE_SUPPLICANT_RESTART: rfc2866::AcctTerminateCause = 19;
pub const ACCT_TERMINATE_CAUSE_REAUTHENTICATION_FAILURE: rfc2866::AcctTerminateCause = 20;
pub const ACCT_TERMINATE_CAUSE_PORT_REINIT: rfc2866::AcctTerminateCause = 21;
pub const ACCT_TERMINATE_CAUSE_PORT_DISABLED: rfc2866::AcctTerminateCause = 22;

pub const NAS_PORT_TYPE_TOKEN_RING: rfc2865::NasPortType = 20;
pub const NAS_PORT_TYPE_FDDI: rfc2865::NasPortType = 21;

pub const TUNNEL_TYPE_VLAN: rfc2868::TunnelType = 13;