[Nagiosplug-devel] system specific defines ... Was: check_dhc p - a possible addition

Voon, Ton Ton.Voon at egg.com
Thu Jan 20 02:36:54 CET 2005


Stanley,

Is there any other open source project that uses dhcp to see how it is done?

This might be too large a change for 1.4 at this stage, so I would err on
the side of moving it to contrib.

Ton

-----Original Message-----
From: Stanley Hopcroft [mailto:Stanley.Hopcroft at IPAustralia.Gov.AU] 
Sent: 20 January 2005 09:43
To: nagiosplug-devel at lists.sourceforge.net
Subject: [Nagiosplug-devel] system specific defines ... Was: check_dhcp - a
possible addition


Dear Folks,

As pointed out by Mr Ericsson, check_dhcp will not build properly 
without preprocessor symbols being defined (__bsd__ etc).

I thought this was necessary to select _completely_ different code to 
get the MAC address of the interface from the system (eg BSD use raw 
sockets, solaris and hpux use DLPI [and prob AIX ...], Linux uses a 
Linux specific ioctl()).

Continuing down this path requires that configure.in and config.h.in be 
patched to set these symbols depending on the value of 'host'.

While tbis is feasable, doing so is seems anti-autoconf and 
anachronistic (although this is the way that fping seems to operate) - 
it looks bad and probably is too.

What is a better way ?

Chuck the system specific stuff and let the user define the broadcast 
interface _and_ the MAC address (simply set the hardware address in the 
DISCOVER packet and let the server respond with an OFFER to the real 
MAC) ?

Chuck the C version and build a Perl one (based on Net::DHCP or friends) 
?

Leave the C version Linux specific (and prob put it back in  contrib/) 
and or build a Perl one ?

Yours sincerely.

-- 
Stanley Hopcroft

IP Australia
Ph: (02) 6283 3189  Fax: (02) 6281 1353
PO Box 200 Woden  ACT 2606
http://www.ipaustralia.gov.au

-----------------------------------------
Egg is a trading name of the Egg group of companies which includes: Egg plc
(reg no 2448340), Egg Financial Products ltd (reg no 3319027), Egg
International ltd (reg no 4059266), Egg Financial Intermediation ltd (reg
no 382828), Egg Investments ltd (reg no 3403963) and Egg Banking plc (reg
no 2999842.  Egg Investments Ltd, Egg Banking plc and Egg Financial
Intermediation Ltd are authorised and regulated by the Financial Services
Authority (FSA) and are entered in the FSA register under numbers 190518,
205621 and 309551 respectively. These members of the Egg group are
registered in England and Wales. Registered offices: 1 Waterhouse Square,
138-142 Holborn, London EC1N 2NA.    This e-mail is confidential and for
use by the addressee only.  If you are not the intended recipient of this
e-mail and have received it in error, please return the message to the
sender by replying to it and then delete it from your mailbox.  Internet
e-mails are not necessarily secure. The Egg group of companies do not
accept responsibility for changes made to this message after it was sent.
Whilst all reasonable care has been taken to avoid the transmission of
viruses, it is the responsibility of the recipient to ensure that the
onward transmission, opening or use of this message and any attachments
will not adversely affect its systems or data. No responsibility is
accepted by the Egg group of companies in this regard and the recipient
should carry out such virus and other checks as it considers appropriate.
This communication does not create or modify any contract.





More information about the Devel mailing list