<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.5880" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff 
size=2></FONT> </DIV><BR>
<BLOCKQUOTE dir=ltr 
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
  <DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
  <HR tabIndex=-1>
  <FONT face=Tahoma size=2><B>From:</B> dhcp-users-bounces@lists.isc.org 
  [mailto:dhcp-users-bounces@lists.isc.org] <B>On Behalf Of </B>Ashmath 
  Khan<BR><B>Sent:</B> Monday, October 19, 2009 1:48 AM<BR><B>To:</B> Users of 
  ISC DHCP; dhcp-users@isc.org<BR><B>Subject:</B> Re: To add some filter rules 
  in conf file<BR></FONT><BR></DIV>
  <DIV></DIV>
  <DIV>That's correct, I have the same understanding. But the issue is 
  this:<BR>I have a series of rules to be run in order, if a rule is met, then 
  stop. It would be something like this:<BR>rule1: match a string in vendor 
  option, select a pool etc<BR>rule2: match a different string in vendor 
  option<BR>rule3: if vendor option doesn't exist select a pool etc<BR>rule4: 
  see if client falls in the h/w address range, select a pool etc.<BR>rule5: see 
  if client has requested for so and so option<BR>etc<BR>So, I can't put all 
  denies in one pool, like you did below.<BR><BR>If dhcpd doesn't currently 
  support this, I need to do code changes to move further. Can you or somebody 
  suggest me, if you have already worked on making changes ? or is there any 
  other separate list which has dhcpd developers(may not be the actual owners) ? 
  or is there any other GPL based dhcpd for Linux 
  ?<BR><BR>thanks<BR>Ashmath<BR><BR><SPAN class=324003217-19102009><FONT 
  face=Arial color=#0000ff size=2> </FONT></SPAN></DIV>
  <DIV><SPAN class=324003217-19102009><FONT face=Arial color=#0000ff size=2>Just 
  a thought that might work for you without code changes.</FONT></SPAN></DIV>
  <DIV><SPAN class=324003217-19102009><FONT face=Arial color=#0000ff 
  size=2></FONT></SPAN> </DIV>
  <DIV><SPAN class=324003217-19102009><FONT face=Arial color=#0000ff size=2>I 
  would think that any set of sequentially applied rules like the above 
  could be represented by an equivalent set of non-sequentially applied 
  rules, at the cost of additional complexity in the non-sequential rules. 
  For example, say your sequential rule set was:</FONT></SPAN></DIV>
  <DIV><SPAN class=324003217-19102009><FONT face=Arial color=#0000ff 
  size=2></FONT></SPAN> </DIV>
  <DIV><SPAN class=324003217-19102009><FONT face=Arial color=#0000ff size=2>rule 
  1: If its red, use the red pool, else</FONT></SPAN></DIV>
  <DIV><SPAN class=324003217-19102009><FONT face=Arial color=#0000ff size=2>rule 
  2: If its fat, use the fat pool, else</FONT></SPAN></DIV>
  <DIV><SPAN class=324003217-19102009><FONT face=Arial color=#0000ff size=2>rule 
  3: If its tall, use the tall pool, else</FONT></SPAN></DIV>
  <DIV><SPAN class=324003217-19102009><FONT face=Arial color=#0000ff size=2>rule 
  4: Use the cold pool</FONT></SPAN></DIV>
  <DIV><SPAN class=324003217-19102009><FONT face=Arial color=#0000ff 
  size=2></FONT></SPAN> </DIV>
  <DIV><SPAN class=324003217-19102009><FONT face=Arial color=#0000ff size=2>This 
  could be represented by an equivalent set of class statements that I believe 
  would yield the same results without any dependency on the order of the rules' 
  evaluation:</FONT></SPAN></DIV>
  <DIV><SPAN class=324003217-19102009><FONT face=Arial color=#0000ff 
  size=2></FONT></SPAN> </DIV>
  <DIV><SPAN class=324003217-19102009><FONT face=Arial color=#0000ff 
  size=2>class red: If its red, use the red pool;</FONT></SPAN></DIV>
  <DIV><SPAN class=324003217-19102009><FONT face=Arial color=#0000ff 
  size=2>class fat: If its fat and its not red, use the fat 
  pool;</FONT></SPAN></DIV>
  <DIV><SPAN class=324003217-19102009><FONT face=Arial color=#0000ff 
  size=2>class tall: If its tall and its not red and its not fat, use the tall 
  pool;</FONT></SPAN></DIV>
  <DIV><SPAN class=324003217-19102009><FONT face=Arial color=#0000ff 
  size=2>class cold: If its not red and its not fat and its not tall, use the 
  cold pool;</FONT></SPAN></DIV>
  <DIV><SPAN class=324003217-19102009><FONT face=Arial color=#0000ff 
  size=2></FONT></SPAN> </DIV>
  <DIV><SPAN class=324003217-19102009><FONT face=Arial color=#0000ff size=2>Jeff 
  Haran</FONT></SPAN></DIV>
  <DIV><SPAN class=324003217-19102009><FONT face=Arial color=#0000ff 
  size=2>Brocade</FONT></SPAN></DIV>
  <DIV><SPAN class=324003217-19102009><FONT face=Arial color=#0000ff 
  size=2></FONT></SPAN> </DIV></BLOCKQUOTE></BODY></HTML>