Changeset 2733
- Timestamp:
- 15.11.2008 20:53:44 (7 weeks ago)
- Location:
- trunk
- Files:
-
- 5 modified
-
CHANGELOG (modified) (1 diff)
-
make/dnsmasq/Config.in (modified) (1 diff)
-
make/dnsmasq/dnsmasq.mk (modified) (1 diff)
-
make/dnsmasq/patches/100-config.h.patch (modified) (3 diffs)
-
make/dnsmasq/patches/100-multid-leases.patch (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/CHANGELOG
r2732 r2733 66 66 * curl 7.19.1 67 67 * devmapper 1.02.27 68 * dnsmasq 2.46 68 69 * dropbear 0.52 69 70 * dns2tcp 0.4.3 -
trunk/make/dnsmasq/Config.in
r2380 r2733 1 1 config FREETZ_PACKAGE_DNSMASQ 2 bool "Dnsmasq 2.4 5"2 bool "Dnsmasq 2.46" 3 3 default n 4 4 help -
trunk/make/dnsmasq/dnsmasq.mk
r2380 r2733 1 $(call PKG_INIT_BIN, 2.4 5)1 $(call PKG_INIT_BIN, 2.46) 2 2 $(PKG)_SOURCE:=dnsmasq-$($(PKG)_VERSION).tar.gz 3 3 $(PKG)_SITE:=http://thekelleys.org.uk/dnsmasq -
trunk/make/dnsmasq/patches/100-config.h.patch
r2381 r2733 1 --- src/config.h.orig 2008- 07-20 20:26:32.000000000 +02002 +++ src/config.h 2008- 07-21 18:05:45.000000000 +02001 --- src/config.h.orig 2008-11-10 22:47:46.000000000 +0100 2 +++ src/config.h 2008-11-15 20:37:18.000000000 +0100 3 3 @@ -43,12 +43,12 @@ 4 4 #elif defined(__sun__) || defined (__sun) … … 16 16 #define DEFLEASE 3600 /* default lease time, 1 hour */ 17 17 #define CHUSER "nobody" 18 @@ - 200,9 +200,9 @@18 @@ -188,9 +188,9 @@ 19 19 #endif 20 20 #undef HAVE_ARC4RANDOM … … 29 29 # ifndef IPV6_V6ONLY 30 30 # define IPV6_V6ONLY 26 31 @@ -2 86,19 +286,19 @@31 @@ -274,19 +274,19 @@ 32 32 /* We assume that systems which don't have IPv6 33 33 headers don't have ntop and pton either */ -
trunk/make/dnsmasq/patches/100-multid-leases.patch
r2381 r2733 1 --- src/dnsmasq.h.orig 2008- 02-01 22:42:35.000000000 +01002 +++ src/dnsmasq.h 2008- 02-25 22:04:27.000000000 +01003 @@ -4 08,6 +408,7 @@1 --- src/dnsmasq.h.orig 2008-11-09 12:10:24.000000000 +0100 2 +++ src/dnsmasq.h 2008-11-15 20:44:28.000000000 +0100 3 @@ -413,6 +413,7 @@ 4 4 #endif 5 5 int hwaddr_len, hwaddr_type; … … 9 9 unsigned char *vendorclass, *userclass; 10 10 unsigned int vendorclass_len, userclass_len; 11 @@ -781,6 +782,7 @@ 11 @@ -800,6 +801,7 @@ 12 void lease_set_hwaddr(struct dhcp_lease *lease, unsigned char *hwaddr, 12 13 unsigned char *clid, int hw_len, int hw_type, int clid_len); 13 void lease_set_hostname(struct dhcp_lease *lease, char *name, 14 char *suffix, int auth); 14 void lease_set_hostname(struct dhcp_lease *lease, char *name, int auth); 15 15 +void lease_set_ifrname(struct dhcp_lease *lease, char *ifrname); 16 16 void lease_set_expires(struct dhcp_lease *lease, unsigned int len, time_t now); 17 17 void lease_set_interface(struct dhcp_lease *lease, int interface); 18 18 struct dhcp_lease *lease_find_by_client(unsigned char *hwaddr, int hw_len, int hw_type, 19 --- src/lease.c.orig 200 7-12-10 22:14:08.000000000 +010020 +++ src/lease.c 2008- 02-25 22:04:27.000000000 +010019 --- src/lease.c.orig 2008-11-03 17:27:46.000000000 +0100 20 +++ src/lease.c 2008-11-15 20:46:13.000000000 +0100 21 21 @@ -175,11 +175,16 @@ 22 22 … … 76 76 77 77 /* Set alarm for when the first lease expires + slop. */ 78 @@ -4 12,6 +435,23 @@79 78 @@ -437,6 +460,23 @@ 79 lease->hostname = lease->fqdn = NULL; 80 80 } 81 81 … … 85 85 + 86 86 + if (!(lease_ifrname = malloc(strlen(ifrname) + 1))) 87 + return; /* whoops */87 + return; /* whoops */ 88 88 + 89 89 + strcpy(lease_ifrname, ifrname); … … 97 97 +} 98 98 + 99 void lease_set_hostname(struct dhcp_lease *lease, char *name, char *suffix,int auth)99 void lease_set_hostname(struct dhcp_lease *lease, char *name, int auth) 100 100 { 101 101 struct dhcp_lease *lease_tmp; 102 --- src/rfc2131.c.orig 2008- 01-24 12:23:19.000000000 +0100103 +++ src/rfc2131.c 2008- 02-25 22:04:27.000000000 +0100104 @@ -4 40,6 +440,7 @@102 --- src/rfc2131.c.orig 2008-11-03 17:28:50.000000000 +0100 103 +++ src/rfc2131.c 2008-11-15 20:49:48.000000000 +0100 104 @@ -457,6 +457,7 @@ 105 105 lease_set_hwaddr(lease, mess->chaddr, NULL, mess->hlen, mess->htype, 0); 106 106 if (hostname) 107 lease_set_hostname(lease, hostname, daemon->domain_suffix,1);108 + lease_set_ifrname(lease, iface_name);107 lease_set_hostname(lease, hostname, 1); 108 + lease_set_ifrname(lease, iface_name); 109 109 /* infinite lease unless nailed in dhcp-host line. */ 110 110 lease_set_expires(lease, 111 111 have_config(config, CONFIG_TIME) ? config->lease_time : 0xffffffff, 112 @@ - 985,7 +986,7 @@112 @@ -1025,7 +1026,7 @@ 113 113 } 114 114 if (hostname) 115 lease_set_hostname(lease, hostname, daemon->domain_suffix,hostname_auth);115 lease_set_hostname(lease, hostname, hostname_auth); 116 116 - 117 117 + lease_set_ifrname(lease, iface_name);
