I wanted to support the MS format for static routes so that they will be used by some older windowses. So in addition to (example):
option:classless-static-route,0.0.0.0/0,172.20.50.1,172.22.0.0/16,172.20.50.1,10.22.0.0/16,172.20.50.1
I wanted to provide ms-classless-route (option code 249). Since dnsmasq does not parse option:ms-classless-static-route(s), I went for the hexadecimal octet notation for option 249:
Decimal octet notation (not parsable on OpenWRT!):
121,0,172,20,50,1,16,172,20,172,20,50,116,10,0,172,20,50,1
Hexadecimal octet notation (accepted by OpenWRT):
121,00:ac:14:32:01:10:ac:14:ac:14:32:01:10:0a:00:ac:14:32:01
replacing 121 (classless-static-route) with 249 (ms-classless-static route):
249,00:ac:14:32:01:10:ac:14:ac:14:32:01:10:0a:00:ac:14:32:01
This is parsed by dnsmasq, and then ignored.
If I provide the hex string with 121 it works and in Wireshark I can see:
If I replace 121 with 249, the option is not there in the packet.
Is option 249 deprecated or not support due to other reasons?
Anyone can shed light on this behavior of dnsmasq?
The same holds for option 201: new-static-route, it is also ignored by dnsmasq.