To add some filter rules in conf file

Ashmath Khan hashmat.email at gmail.com
Fri Nov 6 06:47:40 UTC 2009


>
> This is dhcpd, not perl. There is no regular expression pattern
> matching.  Suggested reading is the man pages for dhcpd.conf,
> dhcp-eval, dhcp-options.
>

Hhhm...
My man page(ver 4.0.0) says this:
.PP
.I data-expression-1 \fB~=\fR \fIdata-expression-2\fR
.I data-expression-1 \fB~~\fR \fIdata-expression-2\fR
.RS 0.25i
.PP
The \fB~=\fR and \fB~~\fR operators (not available on all systems) perform
extended regex(7) matching of the values of two data expressions, returning
true if \fIdata-expression-1\fR matches against the regular expression
evaluated by \fIdata-expression-2\fR, or false if it does not match or
encounters some error.  If either the left-hand side or the right-hand side
are null, the result is also false.  The \fB~~\fR operator differs from the
\fB~=\fR operator in that it is case-insensitive.


and the link:
http://linux.die.net/man/5/dhcp-eval

And I don't get any syntax errors when I use ~=.

rgds
Ashmath
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20091106/dc162f39/attachment.html>


More information about the dhcp-users mailing list