<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Hi Matt:<br>
      <br>
      I suspect a fair portion of the size increase comes along with
      moving to the use of the Bind9 libraries, versus the code that
      resides in the "minires" directory.   We gained a good great deal
      by having common code,  with improved performance and robustness
      as well as in functionality, but apparently at a price of binary
      footprint.<br>
      <br>
      It may be possible to reduce the size of the Bind9 libraries based
      on capabilities excluded through compilation flags when building
      them but this would have to be researched.<br>
      <br>
      Regards,<br>
      <br>
      Thomas Markwalder<br>
      ISC Software Engineering<br>
      <br>
      <br>
      <br>
      On 9/30/16 9:09 AM, Bancroft, Matt wrote:<br>
    </div>
    <blockquote
cite="mid:552130F838187240A0C9A8B9D8371CDF61D738D0@MCHP03MSX.global-ad.net"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      <meta name="Generator" content="Microsoft Word 12 (filtered
        medium)">
      <style><!--
/* Font Definitions */
@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
@font-face
        {font-family:"Times New Roman \, serif";
        panose-1:0 0 0 0 0 0 0 0 0 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        color:black;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";
        color:black;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";
        color:black;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";
        color:black;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;
        color:black;}
span.EmailStyle20
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.EmailStyle21
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.EmailStyle22
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";
        color:black;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
      <div class="WordSection1">
        <p class="MsoNormal"><span style="color:#1F497D">It is 1.8Mb
            stripped with the changes you suggested
          </span><span style="font-family:Wingdings;color:#1F497D">J</span><span
            style="color:#1F497D"><o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D">It would be
            great to have it at about 500Kb.<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D">Matt<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
        <div>
          <div style="border:none;border-top:solid #B5C4DF
            1.0pt;padding:3.0pt 0cm 0cm 0cm">
            <p class="MsoNormal"><b><span
style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext">From:</span></b><span
style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext">
                dhcp-users [<a class="moz-txt-link-freetext" href="mailto:dhcp-users-bounces@lists.isc.org">mailto:dhcp-users-bounces@lists.isc.org</a>]
                <b>On Behalf Of </b>Thomas Markwalder<br>
                <b>Sent:</b> 30 September 2016 13:30<br>
                <b>To:</b> Users of ISC DHCP<br>
                <b>Subject:</b> Re: dhclient binary size<o:p></o:p></span></p>
          </div>
        </div>
        <p class="MsoNormal"><o:p> </o:p></p>
        <div>
          <p class="MsoNormal">Matt:<br>
            <br>
            To get a 4.1 size of 500Kb, the executable must be
            stripped.  The default bin produced isn't stripped, so you
            can start there.<br>
            <br>
            Thomas<br>
            <br>
            On 9/30/16 6:23 AM, Bancroft, Matt wrote:<o:p></o:p></p>
        </div>
        <blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
          <p class="MsoNormal"><span
              style="font-size:12.0pt;font-family:"Times New Roman
              , serif","serif"">Thomas,
            </span><o:p></o:p></p>
          <p class="MsoNormal"><span
              style="font-size:12.0pt;font-family:"Times New Roman
              , serif","serif""><br>
              Thanks for the suggestion. Your changes reduce the binary
              size by 100Kb. However, the binary went from ~500Kb to 2Mb
              when updating from 4.1-ESV-Rx to 4.3.4, so the 100Kb is
              not really a significant reduction.</span><o:p></o:p></p>
          <p class="MsoNormal"><span
              style="font-size:12.0pt;font-family:"Times New Roman
              , serif","serif"">I am compiling for arm if
              that makes any difference. And the main reason for the
              upgrade is to support all the new dhcpv6 options,
              particularly the –D option introduce in 4.2.</span><o:p></o:p></p>
          <p class="MsoNormal"><span
              style="font-size:12.0pt;font-family:"Times New Roman
              , serif","serif"">The client is being used
              in an embedded environment so binary size is an important
              issue.</span><o:p></o:p></p>
          <p class="MsoNormal"><span
              style="font-size:12.0pt;font-family:"Times New Roman
              , serif","serif""><br>
              Can you suggest any other way to reduce the binary size? </span><o:p></o:p></p>
          <p class="MsoNormal"><span
              style="font-size:12.0pt;font-family:"Times New Roman
              , serif","serif""> </span><o:p></o:p></p>
          <p class="MsoNormal"><span
              style="font-size:12.0pt;font-family:"Times New Roman
              , serif","serif"">Kind Regards,</span><o:p></o:p></p>
          <p class="MsoNormal"><span
              style="font-size:12.0pt;font-family:"Times New Roman
              , serif","serif"">Matt Bancroft</span><o:p></o:p></p>
          <p class="MsoNormal"><span style="color:#1F497D"> </span><o:p></o:p></p>
          <div>
            <div style="border:none;border-top:solid #B5C4DF
              1.0pt;padding:3.0pt 0cm 0cm 0cm">
              <p class="MsoNormal"><b><span
style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext">From:</span></b><span
style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext">
                  dhcp-users [<a moz-do-not-send="true"
                    href="mailto:dhcp-users-bounces@lists.isc.org">mailto:dhcp-users-bounces@lists.isc.org</a>]
                  <b>On Behalf Of </b>Thomas Markwalder<br>
                  <b>Sent:</b> 28 September 2016 15:55<br>
                  <b>To:</b> <a moz-do-not-send="true"
                    href="mailto:dhcp-users@lists.isc.org">dhcp-users@lists.isc.org</a><br>
                  <b>Subject:</b> Re: dhclient binary size</span><o:p></o:p></p>
            </div>
          </div>
          <p class="MsoNormal"> <o:p></o:p></p>
          <div>
            <p class="MsoNormal">On 9/28/16 10:23 AM, Bancroft, Matt
              wrote:<o:p></o:p></p>
          </div>
          <blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
            <p class="MsoNormal"><span lang="EN-GB">Hi, </span><o:p></o:p></p>
            <p class="MsoNormal"><span lang="EN-GB"> </span><o:p></o:p></p>
            <p class="MsoNormal"><span lang="EN-GB">Between </span>4.1-ESV-R12b1
              and 4.3.4 the binary size of the dhclient significantly
              increased.
              <o:p></o:p></p>
            <p class="MsoNormal"> <o:p></o:p></p>
            <p class="MsoNormal">I‘ve had a search back through posts
              and cannot see any discussion about why this is;
              presumably the DDNS changes?<o:p></o:p></p>
            <p class="MsoNormal"> <o:p></o:p></p>
            <p class="MsoNormal">Is there any way to compile a minimum
              feature version to maintain a small binary size for the
              client?<o:p></o:p></p>
            <p class="MsoNormal"> <o:p></o:p></p>
            <p class="MsoNormal">Kind Regards,<o:p></o:p></p>
            <p class="MsoNormal">Matt Bancroft<o:p></o:p></p>
            <p class="MsoNormal"><span
                style="font-size:12.0pt;font-family:"Times New
                Roman , serif","serif""><br>
                <br>
                <br>
              </span><o:p></o:p></p>
          </blockquote>
          <p class="MsoNormal"><span
              style="font-size:12.0pt;font-family:"Times New Roman
              , serif","serif"">Hello Matt:<br>
              <br>
              If you do not need the client to support DNS updates, you
              can compile it out.  To do so you need to:<br>
              <br>
              1. Undefine NSUPDATE (comment it out) in includes/site.<br>
              2. dhclient_ddns_cb_free(), needs to be wrapped with
              NSUPDATE conditional compilation.
              <br>
              <br>
              Rebuild.<br>
              <br>
              I  have attached a diff, containing these changes.  The
              resulting client is notably smaller.   Please note that,
              these changes have<br>
              not been tested and are use-at-your-own-risk.   <br>
              <br>
              Sincerely,<br>
              <br>
              Thomas Markwalder<br>
              ISC Software Engineering<br>
              <br>
              <br>
              <br>
              <br>
              <br>
              <br>
              <br>
              <br>
              <br>
              <br>
              <br>
            </span><o:p></o:p></p>
          <pre>_______________________________________________<o:p></o:p></pre>
          <pre>dhcp-users mailing list<o:p></o:p></pre>
          <pre><a moz-do-not-send="true" href="mailto:dhcp-users@lists.isc.org">dhcp-users@lists.isc.org</a><o:p></o:p></pre>
          <pre><a moz-do-not-send="true" href="https://lists.isc.org/mailman/listinfo/dhcp-users">https://lists.isc.org/mailman/listinfo/dhcp-users</a><o:p></o:p></pre>
          <p> <o:p></o:p></p>
          <p class="MsoNormal"><span
              style="font-size:12.0pt;font-family:"Times New
              Roman","serif""><br>
              <br>
              <br>
              <o:p></o:p></span></p>
          <pre>_______________________________________________<o:p></o:p></pre>
          <pre>dhcp-users mailing list<o:p></o:p></pre>
          <pre><a moz-do-not-send="true" href="mailto:dhcp-users@lists.isc.org">dhcp-users@lists.isc.org</a><o:p></o:p></pre>
          <pre><a moz-do-not-send="true" href="https://lists.isc.org/mailman/listinfo/dhcp-users">https://lists.isc.org/mailman/listinfo/dhcp-users</a><o:p></o:p></pre>
        </blockquote>
        <p><o:p> </o:p></p>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
dhcp-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:dhcp-users@lists.isc.org">dhcp-users@lists.isc.org</a>
<a class="moz-txt-link-freetext" href="https://lists.isc.org/mailman/listinfo/dhcp-users">https://lists.isc.org/mailman/listinfo/dhcp-users</a></pre>
    </blockquote>
    <p><br>
    </p>
  </body>
</html>