<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Carl Friend wrote:
<blockquote
 cite="midEFEB6396440FB440ADD8A753B5530B9C0E1ECC8B@MESSAGE-AH.ad.mathworks.com"
 type="cite">
  <pre wrap="">   Hari Sekhon wrote:

  </pre>
  <blockquote type="cite">
    <pre wrap="">[...] raise the warning code if more than 1 offer was received [...]
    </pre>
  </blockquote>
  <pre wrap=""><!---->
   The pitfall here is that if you're running redundant DHCP servers
it's possible to receive two offers.  ISC DHCPD can function in this
way.  A regular client would see the first offer, accept it, and
ignore the second one; the monitoring script would have to be aware
of the network architecture to account for that.

   One thing you could do is record the IP address(es) of your real
DHCP server(s) and if you see anything come in from *anywhere else*
raise the alarm.
  </pre>
</blockquote>
that it what I previously mentioned as a good idea to implement, making
sure that the from address matches. This could easily be supplied as a
command line flag.<br>
<br>
The other idea regarding the number of offers is also taken into
account, in the same way you should be able to specify how many offers
you should receive with another command line flag. Wish I knew C (a
lot) better, I'd add the code and send it back... If nobody has done it
by next year then I will re-learn C properly and write it.<br>
<br>
-h
</body>
</html>