Re: dummy dhclient
On Monday 12 May 2008 18:34:32 Wojciech Puchar wrote: is there an option in dhclient (or other program) to try getting IP address but - don't set anything in system. i mean something to just check for dhcp servers. or maybe something that just detects what DHCP servers are available. The largely undocumented dhclient_exit|enter_hooks are suitable for this. Look at the source of /sbin/dhclient-script. In short, if you set exit_status to non-zero in /etc/dhclient-enter-hooks, nothing will be set. Some environment variables will be available to you, among which should be the ip of the dhcp server that responded. If you simply dump the env to stdout, you will see things available. -- Mel Problem with today's modular software: they start with the modules and never get to the software part. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: dummy dhclient
I suspect that what you are looking for is something that is just looking for DHCP traffic, but doesn¹t actually grab a lease. I don¹t think that there is a current port for this but this program http://dhcp-agent.sourceforge.net/ but dhcp-agent alleges to have a sniffer option. http://dhcp-agent.sourceforge.net/man/dhcp-sniff.1.html I haven¹t used it but I recall stumbling upon this a while back when I was looking for the same. If you try it out, let me know if it works. -J On 5/12/08 9:34 AM, Wojciech Puchar [EMAIL PROTECTED] wrote: is there an option in dhclient (or other program) to try getting IP address but - don't set anything in system. i mean something to just check for dhcp servers. or maybe something that just detects what DHCP servers are available. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] -- Johan Dowdy - CISSP Senior Systems Administrator nCircle Network Security 415.318.2880 Any sufficiently advanced technology is indistinguishable from magic. -- Arthur C. Clarke ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]