]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
dictionaries for BFD
authorAlan T. DeKok <aland@freeradius.org>
Sat, 25 Feb 2023 15:06:03 +0000 (10:06 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Mon, 27 Feb 2023 14:12:26 +0000 (09:12 -0500)
share/dictionary/README.md
share/dictionary/bfd/dictionary [new file with mode: 0644]
share/dictionary/bfd/dictionary.rfc5880 [new file with mode: 0644]

index 6bcc1af2db469837a1941e28bda2a7c78a799e01..19e3116d28275be4448bc992f4fb7d23f85c2302 100644 (file)
@@ -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 (file)
index 0000000..1c92670
--- /dev/null
@@ -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 (file)
index 0000000..617bda2
--- /dev/null
@@ -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]
+