Simon Kelley
2a82db4caf
Supply zero preference in advertise and reply messages
2012-03-10 21:40:10 +00:00
Simon Kelley
dd88c17f15
Add status code containing "success" to all IA_TA and IA_NA
...
which have IAADDR options. This communicates zero information and
RFC3315 is unclear that it's needed, but at least one client seems
to require it.
2012-03-10 20:46:57 +00:00
Simon Kelley
8b37270410
Implement --dhcp-duid
2012-03-09 17:45:10 +00:00
Simon Kelley
a7cf58cc47
Merge branch 'ra-names'
2012-03-09 11:37:42 +00:00
Simon Kelley
e25d1a2ea2
Fix prefix-map build code logic.
2012-03-08 13:24:17 +00:00
Simon Kelley
70969c1757
move #include for Solaris and Apple.
2012-03-07 20:46:28 +00:00
Simon Kelley
3803437dcc
tidying
2012-03-07 20:39:40 +00:00
Simon Kelley
96fafe2ed6
Fixed typos and tested.
2012-03-07 20:25:39 +00:00
Simon Kelley
08456c61f6
Use getifaddrs to find interfaces on *BSD
2012-03-07 19:08:11 +00:00
Simon Kelley
bc26f9a03f
Handle firewire and EUI-64 addresses in the SLAAC code.
2012-03-07 13:13:56 +00:00
Simon Kelley
6ffeff86be
Teach emit_dbus_signal() about IPv6 DHCPv6 leases.
2012-03-07 10:32:35 +00:00
Simon Kelley
f444cddbaf
Don't waste time calculating EUI-64 when a lease doesn't have a name.
2012-03-07 10:15:57 +00:00
Simon Kelley
801ca9a7b7
Add ra-names SLAAC-hostnames from DHCPv4 option.
2012-03-06 19:30:17 +00:00
Simon Kelley
22b135a116
Fix paretheses in ADD_RDLEN - it always returned 1 before.
2012-03-01 19:54:50 +00:00
Simon Kelley
0f08983d85
Be more picly about the MAC address we use for DUID-creation.
2012-03-01 13:43:39 +00:00
Simon Kelley
e3e86343fc
Fix DUID generation with HAVE_BROKEN_RTC.
2012-03-01 10:35:34 +00:00
Simon Kelley
7b6dd880f7
Fix socklen_t/size_t confusion in radv.c
2012-03-01 10:26:16 +00:00
Simon Kelley
b7f4020133
Fix FTBFS when HAVE_BROKEN_RTC defined.
2012-02-29 21:43:37 +00:00
Simon Kelley
552af8b988
Fix --localise-queries via interface lo bug.
2012-02-29 20:10:31 +00:00
Simon Kelley
0010b47439
RA configuration tweaks and documentation improvements.
2012-02-29 12:18:30 +00:00
Simon Kelley
4b86b65d07
Substitute local address for [::] DHCPv6 options, like DHCPv4.
2012-02-29 11:45:37 +00:00
Simon Kelley
0d5d35d052
RA lifetimes must be at least 2 hours
2012-02-27 20:24:40 +00:00
Simon Kelley
843c96b4b3
Make RA without DHCPv6 possible.
2012-02-27 17:42:38 +00:00
Simon Kelley
58dc02ebf2
Order of fields in DHCPv6 log lines now consistent with DHCPv4
2012-02-27 11:49:37 +00:00
Simon Kelley
c239f7de25
rename header files.
2012-02-27 10:56:18 +00:00
Simon Kelley
22d904db95
Fix RA on *BSD (missing sa_len)
2012-02-26 20:13:45 +00:00
Simon Kelley
741c2952d4
Tidy up RA scheduling.
2012-02-25 13:09:18 +00:00
Simon Kelley
c5379c1ab6
Don't send hoplimit 1 when multicasting RAs
2012-02-24 20:05:52 +00:00
Simon Kelley
a4a5205fd7
Fix ordering problem in multicast setup.
2012-02-24 19:44:05 +00:00
Simon Kelley
c5ad4e7998
Router Advertisement
2012-02-24 16:06:20 +00:00
Simon Kelley
270dc2e199
Fix wrong fallback address in DHCPv6
2012-02-19 20:53:20 +00:00
Simon Kelley
87b8ecb13a
Fixed code passing tags to helper to work when there are no context tags.
...
Fixed call to sendto() in dhcp6.c. How did it every work before?
2012-02-18 21:23:16 +00:00
Simon Kelley
e44ddcac63
Fix hang at startup when DHCPv6 enabled on a complex network
...
configuration - we have to read all the MAC addresses from netlink,
not bail when we find a suitable one.
Fix thinko in dhcp_update_configs - thanks to Hartmut for spotting
that.
Get a sensible address for the default DNS server even when using a
relay.
2012-02-18 17:08:50 +00:00
Simon Kelley
00e9ad5217
Fixes for DHCPv6 tag system.
2012-02-16 21:53:11 +00:00
Simon Kelley
57f460de2f
tweak Lua script argument passing and add --dhcp-luascript sectino to manpage.
2012-02-16 20:00:32 +00:00
Simon Kelley
6caacacf6d
Putative fix to crash in IPv4 DHCP, introduced whilst
...
generalising the DHCP option filter code:
don't match options against context tag when
context->netid.net == NULL, since there's no tag then.
2012-02-15 21:58:33 +00:00
Simon Kelley
60ac5af682
Remove extact-MAC address from DUID code.
2012-02-15 10:41:03 +00:00
Simon Kelley
caa94380ac
bugs in IPv6 script calling - wrong DUID and lua relay_address
2012-02-15 10:29:50 +00:00
Simon Kelley
0793380b40
Implement dhcp-ignore-names and DNSMASQ_RELAY_ADDRESS for IPv6
...
Build DHCPv6 by default.
2012-02-14 20:55:25 +00:00
Simon Kelley
2307eac613
Fix code parsing --domain, broken whilst added IPv6 stuff.
2012-02-13 10:13:13 +00:00
Simon Kelley
127ea40ae7
Don't build DHCPv6 by default, except when build Debian package.
2012-02-11 22:14:52 +00:00
Simon Kelley
6aef600d48
Correct duid generate on FreeBSD
2012-02-11 22:01:50 +00:00
Simon Kelley
98d76a0326
Tweaks to fix compilation on FreeBSD.
2012-02-10 22:16:45 +00:00
Simon Kelley
627797800d
Report correct error if prefix in dhcp-range is less than 64
...
Update debian/rules to provide no_dhcp6 and use_lua build opts.
Log DHCPv6 information request packets.
2012-02-10 21:19:25 +00:00
Simon Kelley
c6cc03ed0c
Merge branch 'dhcpv6'
2012-02-10 17:36:20 +00:00
Simon Kelley
3d7b550f52
missed DHCP6 conditional compilation.
2012-02-10 17:35:37 +00:00
Simon Kelley
751d6f4ae6
Allow the TFP server or boot server in --pxe-service, to
...
be a domain name instead of an IP address. This allows for
round-robin to multiple servers, in the same way as
--dhcp-boot.
2012-02-10 15:24:51 +00:00
Simon Kelley
a5c72ab51d
DHCPv6 vendor class option includes an enterprise number. Handle that.
2012-02-10 13:42:47 +00:00
Simon Kelley
ceae00dddf
lease script should work with IPv6 now.
2012-02-09 21:28:14 +00:00
Simon Kelley
3634c54e8d
dhcp-ignore and dhcp-match implemented for DHCPv6 now.
2012-02-08 14:22:37 +00:00