<feed xmlns='http://www.w3.org/2005/Atom'>
<title>initscripts/sysconfig/network-scripts/network-functions, branch 9.49.50</title>
<subtitle>Mageia fork of Fedora's Init Scripts</subtitle>
<link rel='alternate' type='text/html' href='https://gitweb.mageia.org/software/forks/initscripts/'/>
<entry>
<title>Add option for IPv6 GRE tunnel.</title>
<updated>2019-08-19T10:34:23+00:00</updated>
<author>
<name>Jan Macku</name>
<email>jamacku@redhat.com</email>
</author>
<published>2019-08-19T10:34:23+00:00</published>
<link rel='alternate' type='text/html' href='https://gitweb.mageia.org/software/forks/initscripts/commit/?id=533cd7289d500bfdc50d9b71544d888662b0cb92'/>
<id>533cd7289d500bfdc50d9b71544d888662b0cb92</id>
<content type='text'>
Resolve: BZ #1691552</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Resolve: BZ #1691552</pre>
</div>
</content>
</entry>
<entry>
<title>network-functions: use tr to upper case strings rather than awk</title>
<updated>2018-05-17T15:47:07+00:00</updated>
<author>
<name>Matteo Croce</name>
<email>mcroce@redhat.com</email>
</author>
<published>2018-04-09T22:48:11+00:00</published>
<link rel='alternate' type='text/html' href='https://gitweb.mageia.org/software/forks/initscripts/commit/?id=c29fbec03a13d7cfaac46af72aafc44f78902cc4'/>
<id>c29fbec03a13d7cfaac46af72aafc44f78902cc4</id>
<content type='text'>
network-functions uses awk to tranform the mac address to upper case.
Replace awk with tr which is two order of magnitude faster:

    $ time awk '{ print toupper($0) }' &lt;/usr/share/dict/words &gt;/dev/null

    real    0m0,227s
    user    0m0,224s
    sys     0m0,004s
    $ time tr '[a-z]' '[A-Z]' &lt;/usr/share/dict/words &gt;/dev/null

    real    0m0,005s
    user    0m0,000s
    sys     0m0,005s

Also use here-strings instead of spawning a subshell and a pipe.

Signed-off-by: Matteo Croce &lt;mcroce@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
network-functions uses awk to tranform the mac address to upper case.
Replace awk with tr which is two order of magnitude faster:

    $ time awk '{ print toupper($0) }' &lt;/usr/share/dict/words &gt;/dev/null

    real    0m0,227s
    user    0m0,224s
    sys     0m0,004s
    $ time tr '[a-z]' '[A-Z]' &lt;/usr/share/dict/words &gt;/dev/null

    real    0m0,005s
    user    0m0,000s
    sys     0m0,005s

Also use here-strings instead of spawning a subshell and a pipe.

Signed-off-by: Matteo Croce &lt;mcroce@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>network-functions: add error messages for bonding installation</title>
<updated>2018-05-17T12:49:45+00:00</updated>
<author>
<name>David Kaspar [Dee'Kej]</name>
<email>dkaspar@redhat.com</email>
</author>
<published>2018-05-02T13:53:04+00:00</published>
<link rel='alternate' type='text/html' href='https://gitweb.mageia.org/software/forks/initscripts/commit/?id=e811abf000f525932f6334ce0c06adb3d2860a6d'/>
<id>e811abf000f525932f6334ce0c06adb3d2860a6d</id>
<content type='text'>
  Instead of displaying messages without context, like this:

  ./network-functions: line 571: echo: write error: Invalid argument
  ./network-functions: line 598: echo: write error: Permission denied

  We will now display pretty error messages (via net_log) about what has
  actually failed...

  This has been requested by our customer:
  https://bugzilla.redhat.com/show_bug.cgi?id=1542514
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
  Instead of displaying messages without context, like this:

  ./network-functions: line 571: echo: write error: Invalid argument
  ./network-functions: line 598: echo: write error: Permission denied

  We will now display pretty error messages (via net_log) about what has
  actually failed...

  This has been requested by our customer:
  https://bugzilla.redhat.com/show_bug.cgi?id=1542514
</pre>
</div>
</content>
</entry>
<entry>
<title>ifup-post: always update nameserver &amp; search entries in /etc/resolv.conf</title>
<updated>2017-11-02T10:54:44+00:00</updated>
<author>
<name>David Kaspar [Dee'Kej]</name>
<email>dkaspar@redhat.com</email>
</author>
<published>2017-10-30T16:08:42+00:00</published>
<link rel='alternate' type='text/html' href='https://gitweb.mageia.org/software/forks/initscripts/commit/?id=4da9dbaffba4af74eb632d1a5d10e5c366475516'/>
<id>4da9dbaffba4af74eb632d1a5d10e5c366475516</id>
<content type='text'>
  This is complete rework of how we generate the /etc/resolv.conf.

  Fixes:
   * always update 'nameserver' &amp; 'search' entries when DNS* &amp; DOMAIN
     options (respectively) were updated in ifcfg-* files
   * always update the order of 'nameserver' entries when the order of
     DNS* options was updated

  Enhancements:
   * added support for DNS3 option (equals to MAXNS value in GLIBC)
   * added logic to process duplicate DNS* options
   * added logic to process randomly omitted DNS* options (e.g. omitting
     DNS1 while specifying DNS2 and/or DNS3 will still work now)

  This work was based on these two RHEL-7.5 BZs:
  https://bugzilla.redhat.com/show_bug.cgi?id=1364895
  https://bugzilla.redhat.com/show_bug.cgi?id=1357658
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
  This is complete rework of how we generate the /etc/resolv.conf.

  Fixes:
   * always update 'nameserver' &amp; 'search' entries when DNS* &amp; DOMAIN
     options (respectively) were updated in ifcfg-* files
   * always update the order of 'nameserver' entries when the order of
     DNS* options was updated

  Enhancements:
   * added support for DNS3 option (equals to MAXNS value in GLIBC)
   * added logic to process duplicate DNS* options
   * added logic to process randomly omitted DNS* options (e.g. omitting
     DNS1 while specifying DNS2 and/or DNS3 will still work now)

  This work was based on these two RHEL-7.5 BZs:
  https://bugzilla.redhat.com/show_bug.cgi?id=1364895
  https://bugzilla.redhat.com/show_bug.cgi?id=1357658
</pre>
</div>
</content>
</entry>
<entry>
<title>init.d/functions: convert2sec() function added</title>
<updated>2017-10-31T11:36:19+00:00</updated>
<author>
<name>David Kaspar [Dee'Kej]</name>
<email>dkaspar@redhat.com</email>
</author>
<published>2017-07-21T09:25:28+00:00</published>
<link rel='alternate' type='text/html' href='https://gitweb.mageia.org/software/forks/initscripts/commit/?id=3e3ff2ac3d89cd626d88b3043c7f7234dec4d4e1'/>
<id>3e3ff2ac3d89cd626d88b3043c7f7234dec4d4e1</id>
<content type='text'>
  And network-scripts/network-functions was patched to use convert2sec().

  This function can be used to convert the value of its first parameter
  to a number of seconds - based on the time unit (specified as the
  second parameter).

  This is mostly useful for converting values for use with the sleep(1).
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
  And network-scripts/network-functions was patched to use convert2sec().

  This function can be used to convert the value of its first parameter
  to a number of seconds - based on the time unit (specified as the
  second parameter).

  This is mostly useful for converting values for use with the sleep(1).
</pre>
</div>
</content>
</entry>
<entry>
<title>Replace usleep(1) calls with sleep(1) calls</title>
<updated>2017-10-31T11:36:19+00:00</updated>
<author>
<name>David Kaspar [Dee'Kej]</name>
<email>dkaspar@redhat.com</email>
</author>
<published>2017-05-25T11:25:55+00:00</published>
<link rel='alternate' type='text/html' href='https://gitweb.mageia.org/software/forks/initscripts/commit/?id=3e524c51a3438cbfc92a5ad19614b3bf8fbd4000'/>
<id>3e524c51a3438cbfc92a5ad19614b3bf8fbd4000</id>
<content type='text'>
  The time units had to be manually converted from microseconds to
  seconds. Hopefully this was done right.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
  The time units had to be manually converted from microseconds to
  seconds. Hopefully this was done right.
</pre>
</div>
</content>
</entry>
<entry>
<title>ARPUPDATE introduced</title>
<updated>2017-10-16T17:06:33+00:00</updated>
<author>
<name>David Kaspar [Dee'Kej]</name>
<email>dkaspar@redhat.com</email>
</author>
<published>2017-07-10T16:16:35+00:00</published>
<link rel='alternate' type='text/html' href='https://gitweb.mageia.org/software/forks/initscripts/commit/?id=a81b5e8ec984ca2a8ee7167eb87f6fc9db737843'/>
<id>a81b5e8ec984ca2a8ee7167eb87f6fc9db737843</id>
<content type='text'>
  The ARPUPDATE option has been introduced. It defaults to 'yes'.

  By setting the ARPUPDATE to 'no', administrator can disable
  updating neighbouring computers with ARP information about current
  NIC. This is especially needed when using LVS Load Balancing with
  Direct routing enabled.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
  The ARPUPDATE option has been introduced. It defaults to 'yes'.

  By setting the ARPUPDATE to 'no', administrator can disable
  updating neighbouring computers with ARP information about current
  NIC. This is especially needed when using LVS Load Balancing with
  Direct routing enabled.
</pre>
</div>
</content>
</entry>
<entry>
<title>DHCP_FQDN and DHCP_SEND_HOSTNAME introduced</title>
<updated>2017-05-03T09:53:09+00:00</updated>
<author>
<name>David Kaspar [Dee'Kej]</name>
<email>dkaspar@redhat.com</email>
</author>
<published>2017-05-02T21:17:19+00:00</published>
<link rel='alternate' type='text/html' href='https://gitweb.mageia.org/software/forks/initscripts/commit/?id=c087ea1d7d0e21865a763b0d7e0bc8d3557d1830'/>
<id>c087ea1d7d0e21865a763b0d7e0bc8d3557d1830</id>
<content type='text'>
  The way DHCP_HOSTNAME is being sent to DHCP server has been completely
  reworked...

  DHCP_FQDN now allows user to specify fully qualified domain name to be
  sent to DHCP server instead of just using simple hostname. This option
  takes precedence before DHCP_HOSTNAME variable.

  DHCP_SEND_HOSTNAME can be used to tell initscripts to not send either
  DHCP_HOSTNAME or DHCP_FQDN to DHCP server.

  Both of these options should behave same as they do in NetworkManager.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
  The way DHCP_HOSTNAME is being sent to DHCP server has been completely
  reworked...

  DHCP_FQDN now allows user to specify fully qualified domain name to be
  sent to DHCP server instead of just using simple hostname. This option
  takes precedence before DHCP_HOSTNAME variable.

  DHCP_SEND_HOSTNAME can be used to tell initscripts to not send either
  DHCP_HOSTNAME or DHCP_FQDN to DHCP server.

  Both of these options should behave same as they do in NetworkManager.
</pre>
</div>
</content>
</entry>
<entry>
<title>re-add missing $HOSTNAME initialization</title>
<updated>2017-05-03T09:53:09+00:00</updated>
<author>
<name>David Kaspar [Dee'Kej]</name>
<email>dkaspar@redhat.com</email>
</author>
<published>2017-04-24T12:01:42+00:00</published>
<link rel='alternate' type='text/html' href='https://gitweb.mageia.org/software/forks/initscripts/commit/?id=e37d6b2c4dc1db8e31d9c230fab929cbc83648b6'/>
<id>e37d6b2c4dc1db8e31d9c230fab929cbc83648b6</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>9.70-sync: sysconfig/network-scripts/* updated - part 2</title>
<updated>2017-03-22T13:42:25+00:00</updated>
<author>
<name>David Kaspar [Dee'Kej]</name>
<email>dkaspar@redhat.com</email>
</author>
<published>2017-03-21T16:21:53+00:00</published>
<link rel='alternate' type='text/html' href='https://gitweb.mageia.org/software/forks/initscripts/commit/?id=c5917b856db1e32a863fa78b54d5a7533c99577a'/>
<id>c5917b856db1e32a863fa78b54d5a7533c99577a</id>
<content type='text'>
  This commit contains a lot of whitespace changes.
  Use 'git diff --ignore-all-space' to display the relevant changes.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
  This commit contains a lot of whitespace changes.
  Use 'git diff --ignore-all-space' to display the relevant changes.
</pre>
</div>
</content>
</entry>
</feed>
