mirror of
http://thekelleys.org.uk/git/dnsmasq.git
synced 2026-11-26 20:48:32 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8f6698643b | ||
|
|
c2e5c8d7cf | ||
|
|
95050a8d8b | ||
|
|
29d28dda95 | ||
|
|
421594f83d |
No files matched your search
@@ -1,3 +1,14 @@
|
|||||||
|
version 2.65
|
||||||
|
Fix regression which broke forwarding of queries sent via
|
||||||
|
TCP which are not for A and AAAA and which were directed to
|
||||||
|
non-default servers. Thanks to Niax for the bug report.
|
||||||
|
|
||||||
|
Fix failure to build with DHCP support excluded. Thanks to
|
||||||
|
Gustavo Zacarias for the patch.
|
||||||
|
|
||||||
|
Fix nasty regression in 2.64 which completely broke cacheing.
|
||||||
|
|
||||||
|
|
||||||
version 2.64
|
version 2.64
|
||||||
Handle DHCP FQDN options with all flag bits zero and
|
Handle DHCP FQDN options with all flag bits zero and
|
||||||
--dhcp-client-update set. Thanks to Bernd Krumbroeck for
|
--dhcp-client-update set. Thanks to Bernd Krumbroeck for
|
||||||
@@ -59,6 +70,15 @@ version 2.64
|
|||||||
advertisements, rather than relying on interface address
|
advertisements, rather than relying on interface address
|
||||||
configuration. Thanks to Gene Czarinski for the patch.
|
configuration. Thanks to Gene Czarinski for the patch.
|
||||||
|
|
||||||
|
Handle better attempts to transmit on interfaces which are
|
||||||
|
still doing DAD, and specifically do not just transmit
|
||||||
|
without setting source address and interface, since this
|
||||||
|
can cause very puzzling effects when a router
|
||||||
|
advertisement goes astray. Thanks again to Gene Czarinski.
|
||||||
|
|
||||||
|
Get RA timers right when there is more than one
|
||||||
|
dhcp-range on a subnet.
|
||||||
|
|
||||||
|
|
||||||
version 2.63
|
version 2.63
|
||||||
Do duplicate dhcp-host address check in --test mode.
|
Do duplicate dhcp-host address check in --test mode.
|
||||||
|
|||||||
+1
-1
@@ -17,7 +17,7 @@ elif grep '\$Format:%d\$' $1/VERSION >/dev/null 2>&1; then
|
|||||||
# unsubstituted VERSION, but no git available.
|
# unsubstituted VERSION, but no git available.
|
||||||
echo UNKNOWN
|
echo UNKNOWN
|
||||||
else
|
else
|
||||||
vers=`cat $1/VERSION | sed 's/[(), ]/,/ g' | tr ',' '\n' | grep $v[0-9]`
|
vers=`cat $1/VERSION | sed 's/[(), ]/,/ g' | tr ',' '\n' | grep ^v[0-9]`
|
||||||
|
|
||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
echo "${vers}" | sort | head -n 1 | sed 's/^v//'
|
echo "${vers}" | sort | head -n 1 | sed 's/^v//'
|
||||||
|
|||||||
Vendored
+6
@@ -1,3 +1,9 @@
|
|||||||
|
dnsmasq (2.65-1) unstable; urgency=low
|
||||||
|
|
||||||
|
* New upstream.
|
||||||
|
|
||||||
|
-- Simon Kelley <simon@thekelleys.org.uk> Fri, 14 Dec 2012 11:34:12 +0000
|
||||||
|
|
||||||
dnsmasq (2.64-1) unstable; urgency=low
|
dnsmasq (2.64-1) unstable; urgency=low
|
||||||
|
|
||||||
* New upstream.
|
* New upstream.
|
||||||
|
|||||||
+1
-1
@@ -371,7 +371,7 @@ struct crec *cache_insert(char *name, struct all_addr *addr,
|
|||||||
int freed_all = flags & F_REVERSE;
|
int freed_all = flags & F_REVERSE;
|
||||||
int free_avail = 0;
|
int free_avail = 0;
|
||||||
|
|
||||||
if(daemon->max_cache_ttl < ttl)
|
if (daemon->max_cache_ttl != 0 && daemon->max_cache_ttl < ttl)
|
||||||
ttl = daemon->max_cache_ttl;
|
ttl = daemon->max_cache_ttl;
|
||||||
|
|
||||||
/* Don't log keys */
|
/* Don't log keys */
|
||||||
|
|||||||
+8
-14
@@ -95,23 +95,16 @@ int send_from(int fd, int nowild, char *packet, size_t len,
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
retry:
|
while (sendmsg(fd, &msg, 0) == -1)
|
||||||
if (sendmsg(fd, &msg, 0) == -1)
|
|
||||||
{
|
{
|
||||||
/* certain Linux kernels seem to object to setting the source address in the IPv6 stack
|
|
||||||
by returning EINVAL from sendmsg. In that case, try again without setting the
|
|
||||||
source address, since it will nearly alway be correct anyway. IPv6 stinks. */
|
|
||||||
if (errno == EINVAL && msg.msg_controllen)
|
|
||||||
{
|
|
||||||
msg.msg_controllen = 0;
|
|
||||||
goto retry;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (retry_send())
|
if (retry_send())
|
||||||
goto retry;
|
continue;
|
||||||
|
|
||||||
|
/* If interface is still in DAD, EINVAL results - ignore that. */
|
||||||
|
if (errno == EINVAL)
|
||||||
|
break;
|
||||||
|
|
||||||
my_syslog(LOG_ERR, _("failed to send packet: %s"), strerror(errno));
|
my_syslog(LOG_ERR, _("failed to send packet: %s"), strerror(errno));
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -841,7 +834,8 @@ unsigned char *tcp_request(int confd, time_t now,
|
|||||||
int norebind = 0;
|
int norebind = 0;
|
||||||
int checking_disabled;
|
int checking_disabled;
|
||||||
size_t m;
|
size_t m;
|
||||||
unsigned short qtype, gotname;
|
unsigned short qtype;
|
||||||
|
unsigned int gotname;
|
||||||
unsigned char c1, c2;
|
unsigned char c1, c2;
|
||||||
/* Max TCP packet + slop */
|
/* Max TCP packet + slop */
|
||||||
unsigned char *packet = whine_malloc(65536 + MAXDNAME + RRFIXEDSZ);
|
unsigned char *packet = whine_malloc(65536 + MAXDNAME + RRFIXEDSZ);
|
||||||
|
|||||||
@@ -623,6 +623,8 @@ static char *set_prefix(char *arg)
|
|||||||
return arg;
|
return arg;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
char *parse_server(char *arg, union mysockaddr *addr, union mysockaddr *source_addr, char *interface, int *flags)
|
char *parse_server(char *arg, union mysockaddr *addr, union mysockaddr *source_addr, char *interface, int *flags)
|
||||||
{
|
{
|
||||||
int source_port = 0, serv_port = NAMESERVER_PORT;
|
int source_port = 0, serv_port = NAMESERVER_PORT;
|
||||||
@@ -710,6 +712,7 @@ char *parse_server(char *arg, union mysockaddr *addr, union mysockaddr *source_a
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef HAVE_DHCP
|
||||||
/* This is too insanely large to keep in-line in the switch */
|
/* This is too insanely large to keep in-line in the switch */
|
||||||
static int parse_dhcp_opt(char *errstr, char *arg, int flags)
|
static int parse_dhcp_opt(char *errstr, char *arg, int flags)
|
||||||
{
|
{
|
||||||
|
|||||||
+24
-6
@@ -457,6 +457,7 @@ time_t periodic_ra(time_t now)
|
|||||||
char interface[IF_NAMESIZE+1];
|
char interface[IF_NAMESIZE+1];
|
||||||
|
|
||||||
param.now = now;
|
param.now = now;
|
||||||
|
param.iface = 0;
|
||||||
|
|
||||||
while (1)
|
while (1)
|
||||||
{
|
{
|
||||||
@@ -482,11 +483,18 @@ time_t periodic_ra(time_t now)
|
|||||||
ever be able to send ra's and satistfy it. */
|
ever be able to send ra's and satistfy it. */
|
||||||
if (iface_enumerate(AF_INET6, ¶m, iface_search))
|
if (iface_enumerate(AF_INET6, ¶m, iface_search))
|
||||||
context->ra_time = 0;
|
context->ra_time = 0;
|
||||||
else if (indextoname(daemon->icmp6fd, param.iface, interface) &&
|
else if (param.iface != 0 &&
|
||||||
|
indextoname(daemon->icmp6fd, param.iface, interface) &&
|
||||||
iface_check(AF_LOCAL, NULL, interface))
|
iface_check(AF_LOCAL, NULL, interface))
|
||||||
send_ra(param.iface, interface, NULL);
|
{
|
||||||
|
struct iname *tmp;
|
||||||
|
for (tmp = daemon->dhcp_except; tmp; tmp = tmp->next)
|
||||||
|
if (tmp->name && (strcmp(tmp->name, interface) == 0))
|
||||||
|
break;
|
||||||
|
if (!tmp)
|
||||||
|
send_ra(param.iface, interface, NULL);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return next_event;
|
return next_event;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -506,9 +514,11 @@ static int iface_search(struct in6_addr *local, int prefix,
|
|||||||
if (context->ra_time != 0 && difftime(context->ra_time, param->now) <= 0.0)
|
if (context->ra_time != 0 && difftime(context->ra_time, param->now) <= 0.0)
|
||||||
{
|
{
|
||||||
/* found an interface that's overdue for RA determine new
|
/* found an interface that's overdue for RA determine new
|
||||||
timeout value and zap other contexts on the same interface
|
timeout value and arrange for RA to be sent unless interface is
|
||||||
so they don't timeout independently .*/
|
still doing DAD.*/
|
||||||
param->iface = if_index;
|
|
||||||
|
if (!dad)
|
||||||
|
param->iface = if_index;
|
||||||
|
|
||||||
if (difftime(param->now, ra_short_period_start) < 60.0)
|
if (difftime(param->now, ra_short_period_start) < 60.0)
|
||||||
/* range 5 - 20 */
|
/* range 5 - 20 */
|
||||||
@@ -517,6 +527,14 @@ static int iface_search(struct in6_addr *local, int prefix,
|
|||||||
/* range 450 - 600 */
|
/* range 450 - 600 */
|
||||||
context->ra_time = param->now + 450 + (rand16()/440);
|
context->ra_time = param->now + 450 + (rand16()/440);
|
||||||
|
|
||||||
|
/* zero timers for other contexts on the same subnet, so they don't timeout
|
||||||
|
independently */
|
||||||
|
for (context = context->next; context; context = context->next)
|
||||||
|
if (prefix == context->prefix &&
|
||||||
|
is_same_net6(local, &context->start6, prefix) &&
|
||||||
|
is_same_net6(local, &context->end6, prefix))
|
||||||
|
context->ra_time = 0;
|
||||||
|
|
||||||
return 0; /* found, abort */
|
return 0; /* found, abort */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user