Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | network-functions: use tr to upper case strings rather than awk | Matteo Croce | 2018-05-17 | 1 | -3/+3 |
| | | | | | | | | | | | | | | | | | | | | 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) }' </usr/share/dict/words >/dev/null real 0m0,227s user 0m0,224s sys 0m0,004s $ time tr '[a-z]' '[A-Z]' </usr/share/dict/words >/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 <mcroce@redhat.com> | ||||
* | network-functions: add error messages for bonding installation | David Kaspar [Dee'Kej] | 2018-05-17 | 1 | -5/+17 |
| | | | | | | | | | | | | | 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 | ||||
* | ifup-post: always update nameserver & search entries in /etc/resolv.conf | David Kaspar [Dee'Kej] | 2017-11-02 | 1 | -0/+29 |
| | | | | | | | | | | | | | | | | | | | | This is complete rework of how we generate the /etc/resolv.conf. Fixes: * always update 'nameserver' & 'search' entries when DNS* & 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 | ||||
* | init.d/functions: convert2sec() function added | David Kaspar [Dee'Kej] | 2017-10-31 | 1 | -1/+1 |
| | | | | | | | | | | 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). | ||||
* | Replace usleep(1) calls with sleep(1) calls | David Kaspar [Dee'Kej] | 2017-10-31 | 1 | -2/+6 |
| | | | | | The time units had to be manually converted from microseconds to seconds. Hopefully this was done right. | ||||
* | ARPUPDATE introduced | David Kaspar [Dee'Kej] | 2017-10-16 | 1 | -0/+6 |
| | | | | | | | | | 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. | ||||
* | DHCP_FQDN and DHCP_SEND_HOSTNAME introduced | David Kaspar [Dee'Kej] | 2017-05-03 | 1 | -0/+32 |
| | | | | | | | | | | | | | | 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. | ||||
* | re-add missing $HOSTNAME initialization | David Kaspar [Dee'Kej] | 2017-05-03 | 1 | -3/+5 |
| | |||||
* | 9.70-sync: sysconfig/network-scripts/* updated - part 2 | David Kaspar [Dee'Kej] | 2017-03-22 | 1 | -287/+323 |
| | | | | | This commit contains a lot of whitespace changes. Use 'git diff --ignore-all-space' to display the relevant changes. | ||||
* | network: load NetworkManager connection via dbus | Petr Horáček | 2017-02-14 | 1 | -1/+9 |
| | | | | | Use dbus to refresh configuration files for NetworkManager in order to make ifup and ifdown faster. | ||||
* | network: check for running NetworkManager via dbus | Petr Horáček | 2017-02-14 | 1 | -1/+5 |
| | | | | Use dbus instead of nmcli to make ifup command faster. | ||||
* | ifup: don't call nmcli on any lo device | Lukas Nykryn | 2016-06-16 | 1 | -1/+1 |
| | | | | Resolves: #1336869 | ||||
* | source_config: tell NetworkManger to load ifcfg file even for NM_CONTROLLED=no | Thomas Haller | 2016-06-13 | 1 | -4/+6 |
| | | | | | Cherry-picked from: 61fb1cb Resolves: #1345919 | ||||
* | network-functions: is_available_wait should wait even in the case that ↵ | Lukas Nykryn | 2016-05-26 | 1 | -4/+2 |
| | | | | | | | is_available returns 2 Cherry-picked from: 1f230a3d2e2733e30577c91645005801ab2c0f40 Resolves: #1339648 | ||||
* | network-functions: fix wireless detection | Lukas Nykryn | 2015-08-07 | 1 | -1/+1 |
| | |||||
* | network-functions: reeplace iwconfig with iw | Valdis Kletnieks | 2015-07-01 | 1 | -2/+2 |
| | |||||
* | network-functions: fix check in install_bonding_driver | Lukas Nykryn | 2015-05-06 | 1 | -1/+1 |
| | |||||
* | network-functions: fix change_resolv_conf after grep update | Lukas Nykryn | 2015-05-06 | 1 | -4/+4 |
| | |||||
* | network_function: return immediately when device is present | Lukas Nykryn | 2014-09-23 | 1 | -1/+1 |
| | |||||
* | network-functions: grep->fgrep in bonding masters matching | Lukas Nykryn | 2014-09-19 | 1 | -1/+1 |
| | |||||
* | is_available_wait: properly propage return value from is_available | Lukas Nykryn | 2014-09-17 | 1 | -1/+4 |
| | |||||
* | network-functions: improve bonding_masters grep | Lukas Nykryn | 2014-09-16 | 1 | -1/+1 |
| | | | | | | | kudos to john.haxby@oracle.com Conflicts: sysconfig/network-scripts/network-functions | ||||
* | ifup-wireless: add support for wowlan (second part) | Eduardo Minguez | 2014-09-16 | 1 | -0/+5 |
| | |||||
* | network-functions: ETHTOOL_DELAY introduction patch | Lukas Nykryn | 2014-09-09 | 1 | -0/+1 |
| | |||||
* | network-functions: handle BONDING_OPTS better | Jirka Klimes | 2014-07-24 | 1 | -3/+29 |
| | |||||
* | add configurable DEVTIMEOUT | Lukas Nykryn | 2014-04-02 | 1 | -0/+17 |
| | |||||
* | is_nm_handling: fix RE | Lukas Nykryn | 2014-04-01 | 1 | -1/+1 |
| | |||||
* | network: try to not compete with NM during boot | Lukas Nykryn | 2014-03-11 | 1 | -0/+5 |
| | |||||
* | update ifup/ifdown NetworkManager interaction (#1036701, #1061810) | Lukas Nykryn | 2014-02-12 | 1 | -2/+3 |
| | |||||
* | update functions who call nmcli (#1002958) | Lukas Nykryn | 2013-08-30 | 1 | -2/+2 |
| | |||||
* | install_bonding_driver: drop check for existing device (#991335) | Lukas Nykryn | 2013-08-19 | 1 | -1/+0 |
| | | | | | Install_bonding_driver is now doing more that loading kernel driver, so that check is not correct. | ||||
* | network-functions: to determine state of nscd check socket not lock (#960779) | Lukas Nykryn | 2013-05-22 | 1 | -1/+1 |
| | |||||
* | add ipip6 tunneling support (#928232, raorn@raorn.name) | Lukas Nykryn | 2013-03-27 | 1 | -1/+1 |
| | |||||
* | Fix greps to correctly handle comments and quotation | Lukas Nykryn | 2013-02-26 | 1 | -1/+1 |
| | |||||
* | Correctly detect Open vSwitch device types | Thomas Graf | 2013-01-25 | 1 | -0/+3 |
| | | | | | | | | | | | | | ifup-ovs in the openvswitch package uses the types: - OVSBridge - OVSPort - OVSIntPort - OVSBond to configure the various Open vSwitch device types. Automatically detecting these avoids the need to pass in DEVICETYPE=ovs or to name all bridge "ovsN". | ||||
* | Sets BONDING_OPTS before interface is brougth up | Lukas Nykryn | 2013-01-22 | 1 | -1/+33 |
| | |||||
* | Revert "Use sysfs rather than iwconfig for wireless check" | Bill Nottingham | 2012-11-12 | 1 | -1/+3 |
| | | | | | This reverts commit af401fb40f6dd5139e8468dfe1bd3dafe40e8e93. upstream removed sysfs wireless. How nice. | ||||
* | Allow duplicate address dectection to be disabled | Benjamin Coddington | 2012-08-07 | 1 | -0/+7 |
| | |||||
* | Handle (improper) quoted HWADDR (#835372) | Bill Nottingham | 2012-06-26 | 1 | -1/+1 |
| | |||||
* | check_device_down: Don't bother calling ip to check link state if the device ↵ | Bill Nottingham | 2012-05-02 | 1 | -0/+1 |
| | | | | doesn't exist. | ||||
* | Rename internal tracking variable USE_NM to _use_nm, to more clearly state ↵ | Bill Nottingham | 2012-04-30 | 1 | -2/+2 |
| | | | | it's not for configuration use. | ||||
* | Allow dhclient configuration files for DHCPv6 as well. (#815676) | Bill Nottingham | 2012-04-24 | 1 | -0/+11 |
| | |||||
* | Use NetworkManager-compatible lease file names by default. | Bill Nottingham | 2012-03-09 | 1 | -0/+9 |
| | |||||
* | Allow non-'-s' options in ETHTOOL_OPTS, and allow multiple option types. ↵ | Bill Nottingham | 2011-06-28 | 1 | -1/+15 |
| | | | | (#692410, #693583) | ||||
* | Ensure DHCP_HOSTNAME is a short hostname, seed it from HOSTNAME if needed. ↵ | Bill Nottingham | 2011-05-31 | 1 | -0/+2 |
| | | | | (#697877) | ||||
* | Override NETMASK from PREFIX where specified (#705367, <mpoole@redhat.com>) | Bill Nottingham | 2011-05-18 | 1 | -0/+5 |
| | |||||
* | Fix index handling for expanded configs <jklimes@redhat.com> | Bill Nottingham | 2011-04-12 | 1 | -1/+1 |
| | |||||
* | Switch the default logging value to error. | Bill Nottingham | 2011-03-25 | 1 | -2/+2 |
| | | | | It's what's used the most. | ||||
* | Make net_log()'s output similar to that of the ipv6 logger. | Bill Nottingham | 2011-03-25 | 1 | -1/+16 |
| | | | | This will cause output strings to change, of course, so it's not really appropriate for earlier releases. | ||||
* | Add a net_log() function. (#507515, #689525) | Bill Nottingham | 2011-03-25 | 1 | -0/+23 |
| |