Option 82 problem

Patrick Trapp ptrapp at nex-tech.com
Fri Apr 17 16:57:57 UTC 2020


LOL - I knew as soon as I tried to answer, someone that knew something would correct me. Sorry to mislead you, Alexander.
________________________________
From: dhcp-users <dhcp-users-bounces at lists.isc.org> on behalf of Tony Finch <dot at dotat.at>
Sent: Friday, April 17, 2020 11:33 AM
To: Users of ISC DHCP <dhcp-users at lists.isc.org>
Subject: Re: Option 82 problem

CAUTION: This email originated from outside of the company. Do not click links or open attachments unless you recognize the sender and know the content is safe.

Александр Сандецкий <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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20200417/3587f1b1/attachment.htm>


More information about the dhcp-users mailing list