option 82 logging error

Scott Baker bakers at web-ster.com
Wed Oct 15 20:31:08 UTC 2008


On 10/15/2008 01:23 PM, Marc Perea wrote:
> Hello,
> I've set some logging up to write option 82 info to our syslog with the following in our dhcpd.conf:
>
> log(info, concat("agent.circuit-id = ", option agent.circuit-id));
>
> and we sometimes get errors in the logs that looks like:
>
> Oct 15 12:40:57 isg-dhcp dhcpd: [ID 702911 daemon.error] parse_option_buffer: option<unknown>  (808464737:50) larger than buffer.
> Oct 15 12:40:57 isg-dhcp dhcpd: [ID 702911 daemon.info] agent.circuit-id = 10.150.124.105:1-17-40-0-adsl-0-35-1740
> Oct 15 12:40:57 isg-dhcp dhcpd: [ID 702911 daemon.info] DHCPDISCOVER from 00:1a:2b:0a:ad:86 via a.b.c.d
> Oct 15 12:40:57 isg-dhcp dhcpd: [ID 702911 daemon.info] DHCPOFFER on w.x.y.z to 00:1a:2b:0a:ad:86 via a.b.c.d
> Oct 15 12:40:57 isg-dhcp dhcpd: [ID 702911 daemon.error] parse_option_buffer: option<unknown>  (808464737:50) larger than buffer.
> Oct 15 12:40:57 isg-dhcp dhcpd: [ID 702911 daemon.info] agent.circuit-id = 10.150.124.105:1-17-40-0-adsl-0-35-1740
> Oct 15 12:40:57 isg-dhcp dhcpd: [ID 702911 daemon.info] DHCPREQUEST for w.x.y.z (e.f.g.h) from 00:1a:2b:0a:ad:86 via a.b.c.d
> Oct 15 12:40:57 isg-dhcp dhcpd: [ID 702911 daemon.info] DHCPACK on w.x.y.z to 00:1a:2b:0a:ad:86 via a.b.c.d

You most likely just need to convert the option 82 information into ASCII 
instead of trying to log raw binary. This is a sample from my config:

log(info, concat("DHCPUSERCALIX ", binary-to-ascii (10, 8, ".", 
leased-address), " ", option agent.remote-id));

-- 
Scott Baker - Canby Telcom
RHCE - System Administrator - 503.266.8253


More information about the dhcp-users mailing list