Support RFC3580

This commit is contained in:
moznion
2020-12-06 15:36:00 +09:00
parent bb1743a96c
commit a792e174c1
4 changed files with 35 additions and 1 deletions

View File

@@ -17,6 +17,7 @@ This supports the following RFC dictionaries at the moment:
- [RFC2869](https://tools.ietf.org/html/rfc2869)
- [RFC3162](https://tools.ietf.org/html/rfc3162)
- [RFC3576](https://tools.ietf.org/html/rfc3576)
- [RFC3580](https://tools.ietf.org/html/rfc3580)
- [RFC4072](https://tools.ietf.org/html/rfc4072)
- [RFC5090](https://tools.ietf.org/html/rfc5090)
- [RFC5607](https://tools.ietf.org/html/rfc5607)
@@ -34,7 +35,6 @@ Simple example implementations are here:
- retransmission feature on the client
- Support the following RFC dictionaries:
- rfc3580
- rfc4372
- rfc4603
- rfc4675

19
dicts/dictionary.rfc3580 Normal file
View File

@@ -0,0 +1,19 @@
# -*- 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

View File

@@ -10,6 +10,7 @@ pub mod rfc2868;
pub mod rfc2869;
pub mod rfc3162;
pub mod rfc3576;
pub mod rfc3580;
pub mod rfc4072;
pub mod rfc5090;
pub mod rfc5607;

14
radius/src/rfc3580.rs Normal file
View File

@@ -0,0 +1,14 @@
// Code generated by machine generator; DO NOT EDIT.
pub type AcctTerminateCause = u32;
pub const ACCT_TERMINATE_CAUSE_SUPPLICANT_RESTART: AcctTerminateCause = 19;
pub const ACCT_TERMINATE_CAUSE_REAUTHENTICATION_FAILURE: AcctTerminateCause = 20;
pub const ACCT_TERMINATE_CAUSE_PORT_REINIT: AcctTerminateCause = 21;
pub const ACCT_TERMINATE_CAUSE_PORT_DISABLED: AcctTerminateCause = 22;
pub type NasPortType = u32;
pub const NAS_PORT_TYPE_TOKEN_RING: NasPortType = 20;
pub const NAS_PORT_TYPE_FDDI: NasPortType = 21;
pub type TunnelType = u32;
pub const TUNNEL_TYPE_VLAN: TunnelType = 13;