Option 82 problem
Tony Finch
dot at dotat.at
Fri Apr 17 16:33:21 UTC 2020
Александр Сандецкий <alexander.sandetsky at gmail.com> wrote:
> match if binary-to-ascii(10, 8, "", substring(option agent.circuit-id, 2, 2)) = "3010"
I think the problem is that this 8 needs to be 16.
The substring() returns 2 octets (16 bits) which you expect to be
0x0bc2 = 3010
You are telling binary-to-ascii() to use base 10, chunks of 8 bits,
separator "", so its result will be (I think) 11194 because 0x0b = 11
and 0xc2 = 194
Tony.
--
f.anthony.n.finch <dot at dotat.at> http://dotat.at/
Humber, Thames: Northeast 4 or 5, occasionally 6 until later in Thames.
Moderate, becoming slight later in Thames. Showers, mainly in Thames. Good,
occasionally moderate.
More information about the dhcp-users
mailing list