From: Alan T. DeKok Date: Sat, 25 Feb 2023 15:06:03 +0000 (-0500) Subject: dictionaries for BFD X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9db096798d861bd4f127c1bed54121f58f3b33cb;p=thirdparty%2Ffreeradius-server.git dictionaries for BFD --- diff --git a/share/dictionary/README.md b/share/dictionary/README.md index 6bcc1af2db4..19e3116d282 100644 --- a/share/dictionary/README.md +++ b/share/dictionary/README.md @@ -8,7 +8,7 @@ PROTOCOL RADIUS 1 PROTOCOL DHCPv4 2 PROTOCOL DHCPv6 3 PROTOCOL Ethernet 4 -PROTOCOL TACACS 5 +PROTOCOL TACACS 5 format=string PROTOCOL VMPS 6 format=2 PROTOCOL SNMP 7 format=4 PROTOCOL ARP 8 @@ -16,6 +16,7 @@ PROTOCOL TFTP 9 PROTOCOL TLS 10 PROTOCOL DNS 11 PROTOCOL LDAP 12 +PROTOCOL BFD 13 PROTOCOL EAP-SIM 101 PROTOCOL EAP-AKA 102 PROTOCOL EAP-FAST 103 diff --git a/share/dictionary/bfd/dictionary b/share/dictionary/bfd/dictionary new file mode 100644 index 00000000000..1c92670c7fc --- /dev/null +++ b/share/dictionary/bfd/dictionary @@ -0,0 +1,16 @@ +# -*- text -*- +# Copyright (C) 2023 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$ +# +# The FreeRADIUS dictionary for BFD +# +# Version: $Id$ +# + +PROTOCOL BFD 13 +BEGIN-PROTOCOL BFD + +$INCLUDE dictionary.rfc5880 + +END-PROTOCOL BFD diff --git a/share/dictionary/bfd/dictionary.rfc5880 b/share/dictionary/bfd/dictionary.rfc5880 new file mode 100644 index 00000000000..617bda20504 --- /dev/null +++ b/share/dictionary/bfd/dictionary.rfc5880 @@ -0,0 +1,74 @@ +# -*- text -*- +# Copyright (C) 2023 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$ +# +# Structures defined in RFC 5880 +# http://www.ietf.org/rfc/rfc5880.txt +# +# Version: $Id$ +# + +DEFINE Packet struct +MEMBER version bit[3] +MEMBER diagnostic bit[5] +MEMBER state bit[2] +MEMBER poll bit[1] +MEMBER final bit[1] +MEMBER control-plane-independent bit[1] +MEMBER auth-present bit[1] +MEMBER demand bit[1] +MEMBER multipoint bit[1] +MEMBER detect-multi uint8 +MEMBER length uint8 +MEMBER my-discriminator uint32 +MEMBER your-discriminator uint32 +MEMBER desired-min-tx-internal time_delta uint32,microseconds +MEMBER required-min-tx-internal time_delta uint32,microseconds +MEMBER required-min-echo-internal time_delta uint32,microseconds +MEMBER auth-type uint8 key + +VALUE diagnostic none 0 +VALUE diagnostic control-detection-time-expired 1 +VALUE diagnostic echo-function-failed 2 +VALUE diagnostic neighbour-signaled-session-down 3 +VALUE diagnostic forwarding-plane-reset 4 +VALUE diagnostic path-down 5 +VALUE diagnostic concatenated-path-down 6 +VALUE diagnostic administratively-down 7 +VALUE diagnostic reverse-concatenated-path-down 8 + +VALUE state admin-down 0 +VALUE state down 1 +VALUE state init 2 +VALUE state up 3 + +STRUCT simple-password auth-type 1 length=uint8 +MEMBER key-id uint8 +MEMBER reserved uint8 +MEMBER password string[1] # really 1..16 + +STRUCT keyed-md5 auth-type 2 length=uint8 +MEMBER key-id uint8 +MEMBER reserved uint8 +MEMBER sequence-number uint32 +MEMBER digest octets[16] + +STRUCT meticulous-keyed-md5 auth-type 3 length=uint8 +MEMBER key-id uint8 +MEMBER reserved uint8 +MEMBER sequence-number uint32 +MEMBER digest octets[16] + +STRUCT keyed-ssha1 auth-type 4 length=uint8 +MEMBER key-id uint8 +MEMBER reserved uint8 +MEMBER sequence-number uint32 +MEMBER digest octets[20] + +STRUCT meticulous-keyed-ssha1 auth-type 5 length=uint8 +MEMBER key-id uint8 +MEMBER reserved uint8 +MEMBER sequence-number uint32 +MEMBER digest octets[20] +