DHCPv6 interface issues
Shane Kerr
Shane_Kerr at isc.org
Fri Aug 3 10:31:13 UTC 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Marcus,
Marcus Goller wrote:
>
> Now I am wondering why an IPv4 interface is necessary for DHCPd to find the
> interface at all, I thought using the "-6" switch causes it to use only
> IPv6
It shouldn't be necessary. It might be because of the way we're using the
Solaris extended interface scanning stuff. Can you try the following patch and
let me know if it helps?
- --
Shane
- --- common/discover.c.old 2007-07-13 08:43:40.000000000 +0200
+++ common/discover.c 2007-08-03 12:29:14.000000000 +0200
@@ -233,7 +233,7 @@
int lifnum;
#endif
- - ifaces->sock = socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP);
+ ifaces->sock = socket(local_family, SOCK_DGRAM, IPPROTO_UDP);
if (ifaces->sock < 0) {
log_error("Error creating socket to list interfaces; %m");
return 0;
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFGswPsMsfZxBO4kbQRAm1WAJ9FcgF7MVWnZbl+t7o/BaeZyz6hIQCfYttR
wwo5o1IdRWJ35wDwooCCOQs=
=ybf6
-----END PGP SIGNATURE-----
More information about the dhcp-users
mailing list