DHCP Option help

Hi

Need some urgent help.
Replacing a Linux DHCP server (ISCDHCP) with Mikrotik DHCP server.
And having trouble configuring DHCP options for IPTV solution.
How can I configure this on the Mikrotik server (from dhcpd.conf)

option ntp-servers time.nist.gov;
option domain-name-servers 10.50.0.5;
ddns-update-style none;
option meta-data code 128 = text;
option splash-order code 131 = text;


# New Kreatel Vendor specific information

option space Kreatel;

option Kreatel.splash-protocol code 1 = string;
option Kreatel.kernel-protocol code 2 = string;
option Kreatel.bootcast-address code 10 = string;
option Kreatel.tftp-splash-filename code 20 = string;
option Kreatel.tftp-kernel-filename code 21 = string;
option Kreatel.sap-address code 40 = string;
option Kreatel.renewal-method code 100 = boolean;

vendor-option-space Kreatel;

authoritative;

# IPTV VLAN
subnet 10.0.22.0 netmask 255.255.255.0 {
      	option domain-name-servers 10.50.0.5;
        option routers 10.50.22.1;
        option domain-name "multicast.tv";
        option meta-data "233.136.6.102:22222";
        option Kreatel.splash-protocol "3,1";
        option Kreatel.kernel-protocol "3,1";
        option Kreatel.bootcast-address "239.255.1.3:2222";
        max-lease-time 86400;
        default-lease-time 86400;
        range 10.50.22.20 10.50.22.254;
        }

DHCP Vendor Class Sub Options

First the “sub options code” and then the length of the data(string) and then the data(string).

0x01 = sub options code (splash-protocol)
03 = length in hex
‘3,1’ = the string

0x02 = sub options code (kernel-protocol)
03 = length in hex
‘3,1’ = the string

0x0a = sub options code (bootcast-address)
10 = length in hex
‘239.255.1.3:2222’ = the string

And so on…

You have to breakdown the vendor-class code into a very long code, like this.

0x0103'3,1'0x0203'3,1'0x0a10'239.255.1.3:2222'

So the mikrotik cli code line like this.

dhcp-server option add code 43 name vendor-class value="0x0103'3,1'0x0203'3,1'0x0a10'239.255.1.3:2222'"