dhccra and dhclient from branch built, but...

Dave Taht dave.taht at gmail.com
Tue Mar 20 23:42:51 UTC 2012


Regrettably I just destroyed the lab almost completely in alistair's
rush out the door, and need to re-organize, retask, and reflash some
hardware before being able to continue.

I hope you have copies of the scripts that were living on the sd-cpe2
box. I have setup4, setup6, and the relevant dhclient script from last
night.


On Tue, Mar 20, 2012 at 4:28 PM, Francis Dupont <fdupont at isc.org> wrote:
> from dnsmasq man:
>
>      -z, --bind-interfaces
>              On systems which support it, dnsmasq binds the wildcard address,
>              even when it is listening on only some interfaces. It then  dis-
>              cards  requests  that it shouldn't reply to. This has the advan-
>              tage of working even when interfaces  come  and  go  and  change
>              address.  This  option  forces  dnsmasq  to really bind only the
>              interfaces it is listening on. About the only time when this  is
>              useful  is  when running another nameserver (or another instance
>              of dnsmasq) on  the  same  machine.  Setting  this  option  also
>              enables multiple instances of dnsmasq which provide DHCP service
>              to run in the same machine.
>
> The last sentence is about what we want.

Well this affects wireless interfaces. They come and go every time the
network is reset.

> Please try (even I fixed the CRA too.

I did a cvs up from the branch. I am puzzled as to what the -l option
was supposed to be doing in the first place.

 "Usage: dhccra [-d] [-q] [-L] [-c <hops>] [-p <port>]\n" \
-"              [-pf <pid-file>] [--no-pid] [-l <local-address>]\n" \
+"              [-pf <pid-file>] [--no-pid] [-l{4|6} <local-address>]\n" \
 "              -i ifname server0 [ ... serverN]\n\n"

 static void usage() {
@@ -162,7 +162,13 @@
 			local_port = validate_port(argv[i]);
 			log_debug("binding to user-specified port %d",
 				  ntohs(local_port));
-		} else if (!strcmp(argv[i], "-l")) {
+		} else if (!strcmp(argv[i], "-l4")) {
+			if (++i == argc)
+				usage();
+			if (inet_pton(AF_INET, argv[i], &local_address) != 1)
+				log_fatal("%s: bad IPv4 local address",
+					  argv[i]);
+		} else if (!strcmp(argv[i], "-l6")) {



>
> Thanks
>
> Francis Dupont <fdupont at isc.org>



-- 
Dave Täht
SKYPE: davetaht
US Tel: 1-239-829-5608
http://www.bufferbloat.net


More information about the sdcpe-devel mailing list