How does DHCPD determine what IP address to assign and...

David W. Hankins David_Hankins at isc.org
Thu Jan 3 18:12:23 UTC 2008


On Thu, Jan 03, 2008 at 11:30:37AM -0600, Frank Bulk wrote:
> What we really need is standard regex in this matching stuff.

wget ftp://ftp.isc.org/isc/dhcp/dhcp-3.1.0.tar.gz
tar xzf dhcp-3.1.0.tar.gz
cd dhcp-3.1.0
./configure ; make ; sudo make install
man dhcp-eval
/~=

       data-expression-1  ~=  data-expression-2
       data-expression-1  ~~  data-expression-2

          The ~= and ~~ operators  (not  available  on  all  systems)  perform
          extended  regex(7)  matching  of the values of two data expressions,
          returning true if  data-expression-1  matches  against  the  regular
          expression  evaluated  by data-expression-2, 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 ~~ operator
          differs from the ~= operator in that it is case-insensitive.

-- 
Ash bugud-gul durbatuluk agh burzum-ishi krimpatul.
Why settle for the lesser evil?	 https://secure.isc.org/store/t-shirt/
-- 
David W. Hankins	"If you don't do it right the first time,
Software Engineer		     you'll just have to do it again."
Internet Systems Consortium, Inc.		-- Jack T. Hankins


More information about the dhcp-users mailing list