Training courses

Kernel and Embedded Linux

Bootlin training courses

Embedded Linux, kernel,
Yocto Project, Buildroot, real-time,
graphics, boot time, debugging...

Bootlin logo

Elixir Cross Referencer

{
  #
  # Define the DHCPv6 option space.
  #
  # Option numbers are assigned by IANA:
  # http://www.iana.org/assignments/dhcpv6-parameters
  #
  /// This configuration declares some subnets but has no interfaces-config
  /// Reference Kea #245
  "Dhcp6": {
    "option-def": [
      {
        "space": "dhcp6",
        "name": "time-servers",
        "code": 1040,
        "array": true,
        "type": "ipv6-address"
      },
      {
        "space": "dhcp6",
        "name": "time-offset",
        "code": 1041,
        "type": "int32"
      }
    ],
    "option-data": [
      #option docsis.device-id code 36 = string;
      # 
      # Declare some options.
      #
      {
        "space": "dhcp6",
        "name": "time-servers",
        "code": 1040,
        "data": "3ffe:bbbb:aaaa:aaaa::1, 3ffe:bbbb:aaaa:aaaa::2"
      },
      {
        "space": "dhcp6",
        "name": "vendor-opts",
        "code": 17,
        "data": "4491"
      },
      {
        "space": "vendor-4491",
        "name": "tftp-servers",
        "code": 32,
        "data": "3ffe:cccc:aaaa:aaaa::1, 3ffe:cccc:aaaa:aaaa::2"
      }
    ],
//  /// Unsupported ddns-update-style interim
//  "ddns-update-style": "interim",
    "dhcp-ddns": {
      "enable-updates": true,
      "qualifying-suffix": "foo.com"
    },
    "host-reservation-identifiers": [
      "flex-id"
    ],
    /// The flexible host identifier is a premium feature
    "hooks-libraries": [
      {
        /// Please update the path here
        "library": "/path/libdhcp_flex_id.so",
        "parameters": {
          "identifier-expression": "option[1].hex"
        }
      }
    ],
    "subnet6": [
      #host cablemodem-2 {
      #	host-identifier option docsis.device-id 00:06:5B:50:99:F6;
      #	option dhcp6.time-servers 3ffe:dddd:aaaa:aaaa::1, 
      #				   3ffe:dddd:aaaa:aaaa::2;
      #	option docsis.tftp-servers 3ffe:dddd:aaaa:aaaa::1,
      #				   3ffe:dddd:aaaa:aaaa::2;
      #	option dhcp6.time-offset -14400;	# -4 hours
      #	option docsis.cablelabs-configuration-file "bootfile.cfg";
      #	option docsis.cablelabs-syslog-servers 3ffe:aaaa:aaaa:aaaa::1,
      #					       3ffe:aaaa:aaaa:aaaa::2;
      #}
      # XXX: for testing
      {
        "id": 1,
        "subnet": "3ffe:aaaa:aaaa:aaaa::/64",
        "reservations": [
          #
          # Per-host settings.
          #
          {
            "hostname": "cablemodem-1",
            "flex-id": "000100010c00a14100065b5099f6",
            "ip-addresses": [
              "3ffe:aaaa:aaaa:aaaa::ffff"
            ],
//          /// Only global qualifying-suffix is supported
//          "qualifying-suffix": "bar.com",
            "option-data": [
              {
                "space": "dhcp6",
                "name": "time-servers",
                "code": 1040,
//              "original-data": "3ffe:aaaa:aaaa:aaaa::1, \n\t\t\t\t   3ffe:aaaa:aaaa:aaaa::2",
                "data": "3ffe:aaaa:aaaa:aaaa::1, 3ffe:aaaa:aaaa:aaaa::2"
              },
              {
                "space": "dhcp6",
                "name": "vendor-opts",
                "code": 17,
                "data": "4491"
              },
              {
                "space": "vendor-4491",
                "name": "tftp-servers",
                "code": 32,
//              "original-data": "3ffe:aaaa:aaaa:aaaa::1,\n\t\t\t\t   3ffe:aaaa:aaaa:aaaa::2",
                "data": "3ffe:aaaa:aaaa:aaaa::1, 3ffe:aaaa:aaaa:aaaa::2"
              },
              {
                "space": "dhcp6",
                "name": "time-offset",
                "code": 1041,
                "data": "-14400"
              },
              # -4 hours
              {
                "space": "vendor-4491",
                "name": "config-file",
                "code": 33,
                "data": "bootfile.cfg"
              },
              {
                "space": "vendor-4491",
                "name": "syslog-servers",
                "code": 34,
//              "original-data": "3ffe:aaaa:aaaa:aaaa::1,\n\t\t\t\t\t       3ffe:aaaa:aaaa:aaaa::2",
                "data": "3ffe:aaaa:aaaa:aaaa::1, 3ffe:aaaa:aaaa:aaaa::2"
              }
            ]
          }
        ]
      }
    ]
  }
}