For some reasons I've decided to replace isc-dhcpd with dnsmasq. I use it to receive an IP address on my STB.
Here's a part of isc-dhcpd config
option space DIB;
option DIB.address code 1 = ip-address;
option DIB.port code 2 = integer 16;
option DIB.fw_ver code 3 = text;
option DIB.ui_ver code 4 = text;
class "DIB-120"
{
match if (option vendor-class-identifier="DIB120");
vendor-option-space DIB;
option DIB.address 239.1.1.1;
option DIB.port 1234;
}
And here's DHCP Reply:
01:33:52.000704 IP (tos 0x10, ttl 16, id 0, offset 0, flags [none], proto: UDP (17), length: 328) ivis.bootps > 10.222.0.66.bootpc : [udp sum ok] BOOTP/DHCP, Reply, length: 300, xid:0xd21c430c, secs:10, flags: [none] (0x0000)
Your IP: 10.222.0.66
Client Ethernet Address: 00:22:b0:6f:f9:88 (oui Unknown)
Vendor-rfc1048:
DHCP:OFFER
SID:ivis
LT:76800
SM:255.255.255.128
DG:10.222.0.1
NS:ns0.blablabla.com,ns1.blablabla.com
NTP:time.blablabla.com
VO:1.4.239.1.1.1.2.2.4.210
I just don't understand how to config dnsmasq to make him return VO:1.4.239.1.1.1.2.2.4.210
If i write something like:
dhcp-option=vendor:DIB120,2,04:D2
dhcp-option=vendor:DIB120,1,EF:01:01:01
it will return VO:1.4.239.1.1.1.2.2.4.210.255
I've spent several hours RTFM, but couldn't understand that. =(