]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
Merge branch 'next' of ssh://git.ipfire.org/pub/git/ipfire-2.x into dnsmasq
authorMatthias Fischer <fischerm@ipfire.org>
Tue, 16 Jun 2015 19:40:16 +0000 (21:40 +0200)
committerMatthias Fischer <fischerm@ipfire.org>
Tue, 16 Jun 2015 19:40:16 +0000 (21:40 +0200)
1  2 
src/patches/dnsmasq/0090-Tweak-EDNS-timeout-code.patch
src/patches/dnsmasq/0092-Allow-T1-and-T2-DHCPv4-options-to-be-set.patch

index de1e0e6ef5dcb924ad49585e883a3e5b9b187d91,b6d9c47cff2b4678fb7a5be92d17daae3baa2e35..d50872bb360c2d297e2b05fbbe4de6303b90a65f
@@@ -1,14 -1,14 +1,14 @@@
  From 86fa1046920dedc8134136a6244ca96e8a37e9d8 Mon Sep 17 00:00:00 2001
  From: Simon Kelley <simon@thekelleys.org.uk>
  Date: Sun, 10 May 2015 13:50:59 +0100
- Subject: [PATCH] Tweak EDNS timeout code.
+ Subject: [PATCH 90/98] Tweak EDNS timeout code.
  
  ---
-  src/forward.c |    6 ++++--
+  src/forward.c | 6 ++++--
   1 file changed, 4 insertions(+), 2 deletions(-)
  
  diff --git a/src/forward.c b/src/forward.c
- index 592243f..74e5ab6 100644
+ index 592243fd4d35..74e5ab66c423 100644
  --- a/src/forward.c
  +++ b/src/forward.c
  @@ -799,8 +799,10 @@ void reply_query(int fd, int family, time_t now)
@@@ -25,5 -25,5 +25,4 @@@
     
     /* If the answer is an error, keep the forward record in place in case
  -- 
- 1.7.10.4
+ 2.1.0
 -
index a0987679c8e91e31ca24464e8c12afb3cb972b65,84246c336a4c8b6b6caa280bd2e9b208d26f1a0c..0cf44932fc87a7367da1b8fdeaefeede6db11452
@@@ -1,17 -1,17 +1,17 @@@
  From ca85a28241ef87919d68d52c843b6964b7070e11 Mon Sep 17 00:00:00 2001
  From: Simon Kelley <simon@thekelleys.org.uk>
  Date: Wed, 13 May 2015 22:33:04 +0100
- Subject: [PATCH] Allow T1 and T2 DHCPv4 options to be set.
+ Subject: [PATCH 92/98] Allow T1 and T2 DHCPv4 options to be set.
  
  ---
-  CHANGELOG            |    3 +++
-  dnsmasq.conf.example |    8 ++++++
-  src/dhcp-common.c    |    4 +--
-  src/rfc2131.c        |   71 +++++++++++++++++++++++++++++++++++---------------
+  CHANGELOG            |  3 +++
+  dnsmasq.conf.example |  8 ++++++
+  src/dhcp-common.c    |  4 +--
+  src/rfc2131.c        | 71 ++++++++++++++++++++++++++++++++++++----------------
   4 files changed, 63 insertions(+), 23 deletions(-)
  
  diff --git a/CHANGELOG b/CHANGELOG
- index 94a521f..ef39a41 100644
+ index 94a521f996e2..ef39a415788b 100644
  --- a/CHANGELOG
  +++ b/CHANGELOG
  @@ -118,6 +118,9 @@ version 2.73
@@@ -25,7 -25,7 +25,7 @@@
   version 2.72
               Add ra-advrouter mode, for RFC-3775 mobile IPv6 support.
  diff --git a/dnsmasq.conf.example b/dnsmasq.conf.example
- index 67be99a..1ae11df 100644
+ index 67be99acb028..1ae11dfb5358 100644
  --- a/dnsmasq.conf.example
  +++ b/dnsmasq.conf.example
  @@ -345,6 +345,14 @@
@@@ -44,7 -44,7 +44,7 @@@
   # is running dnsmasq
   #dhcp-option=42,0.0.0.0
  diff --git a/src/dhcp-common.c b/src/dhcp-common.c
- index ce11520..bc48f41 100644
+ index ce115202a646..bc48f41a14d7 100644
  --- a/src/dhcp-common.c
  +++ b/src/dhcp-common.c
  @@ -545,8 +545,8 @@ static const struct opttab_t {
@@@ -59,7 -59,7 +59,7 @@@
     { "client-id", 61, OT_INTERNAL },
     { "nis+-domain", 64, OT_NAME },
  diff --git a/src/rfc2131.c b/src/rfc2131.c
- index 5552644..a10e499 100644
+ index 55526443dc84..a10e499ef768 100644
  --- a/src/rfc2131.c
  +++ b/src/rfc2131.c
  @@ -52,7 +52,9 @@ static void do_options(struct dhcp_context *context,
  +       if (hval < lease_time && hval > 2)
  +         t2val = hval;
  +     }
- +
- +       /* ensure T1 is still < T2 */
- +       if (t2val <= t1val)
- +      t1val = t2val - 1; 
- +
+ +               
  +       while (fuzz > (t1val/8))
  +      fuzz = fuzz/2;
- +
+ +      
  +       t1val -= fuzz;
  +       t2val -= fuzz;
+ +       
+ +       /* ensure T1 is still < T2 */
+ +       if (t2val <= t1val)
+ +      t1val = t2val - 1; 
  +
  +       option_put(mess, end, OPTION_T1, 4, t1val);
  +       option_put(mess, end, OPTION_T2, 4, t2val);
   
         if (optno == OPTION_SNAME && done_server)
  -- 
- 1.7.10.4
+ 2.1.0
 -