"raw packet not available" when execute() on release (solved)
Niall O'Reilly
Niall.oReilly at ucd.ie
Thu May 3 15:09:40 UTC 2012
On 3 May 2012, at 14:38, Nicolas C. wrote:
> # Declared globally
> option cache-ipv4 code 190 = text;
> option cache-mac code 191 = text;
I'm surprised you needed to declare any options.
I didn't find it necessary. A simple 'set' was enough.
For example:
joe(user)4: grep vendor-string /var/netdb/dhcpd/scarr/tailored-dhcpd.conf
set vendor-string = option vendor-class-identifier;
joe(user)5:
IIUC, the object manipulated by the 'set' command is a
dynamically-created per-lease state variable rather than an option.
> # Declared in the subnet
> set cache-ipv4 = binary-to-ascii(10, 8, ".", leased-address);
> set cache-mac = binary-to-ascii(16, 8, ":", substring(hardware, 1, 6));
>
> on expiry {
> execute (
> "/usr/local/bin/ddns-ipv6",
> prefix,
> "-d",
> ddns-hostname,
> cache-mac,
> cache-ipv4
> );
> }
Neat!
> Thanks!
Ravi!
/Niall
More information about the dhcp-users
mailing list