summaryrefslogtreecommitdiffstats
path: root/src/etc/inc/interfaces.inc
Commit message (Collapse)AuthorAgeFilesLines
* Text typoPhil Davis2016-08-081-1/+1
| | | | | Noted by Daryl Morse in comment on Redmine bug 6637. (cherry picked from commit bf6ae0ad277710ffa64ee0967c5d4f717c2bc54b)
* Review license / copyright on all files (final round)Renato Botelho2016-07-151-1/+1
|
* Bring back the "set iface route default" used in 2.2.6 and earlier versions, ↵Chris Buechler2016-07-151-2/+4
| | | | which works around the root problem in Ticket #6495
* Review license / copyright on all files (1st round)Renato Botelho2016-07-141-43/+43
|
* simplify DHCP_Config_Option_Split, no loop needed for returning option arrayDaniel Wilhelm2016-07-131-6/+2
| | | | (cherry picked from commit 264ca54e406eee7c01b01f748aabd4a29e9c4872)
* Allow passing comma in string quoted DHCP client optionsDaniel Wilhelm2016-07-131-4/+12
| | | | (cherry picked from commit 332a64d0c8a6486d40c6295351ca3068a77a216a)
* Align GIF link options with those currently supported by the base OS. Ticket ↵jim-p2016-07-111-3/+3
| | | | #6587
* Remove GRE link flag options from GUI/backend. Keep link1 as it was also ↵jim-p2016-07-111-9/+0
| | | | used to add an explicit static route, though the GUI previous GUI option name wasn't related to that at all. Updated GUI description to match reality. Ticket #6586
* Properly follow style guidelines.Nash Kaminski2016-07-101-1/+1
|
* Include ignored DHCP server(s) config option even when advanced DHCP config ↵Nash Kaminski2016-07-101-0/+3
| | | | is enabled
* Fix Redmine #6011NewEraCracker2016-06-301-2/+2
| | | | This will add linklocal fallback where no IPv6 is otherwise configured to allow login using this IPs
* Flush link-local IPs so we do not get stale data and do not waste time ↵k-paulius2016-06-291-2/+2
| | | | deleting IP if it is already set to fe80::1:1
* Fix bad escapeshellarg logic on mpd executionNewEraCracker2016-06-221-2/+3
| | | | | | With this change single-quotes are applied in correct places (cherry picked from commit 08cd022545be58a46b860500ff81bbe7438b6304)
* Make QinQ interfaces work againChris Rowe2016-06-221-8/+8
| | | | (cherry picked from commit 1322ee22354f1a6e184819fb7009a2996b63de97)
* Only call interfaces_vips_configure once if it's needed, rather than doing ↵Chris Buechler2016-06-211-1/+5
| | | | the same thing over and over for every VIP on an interface. Ticket #6515
* Fix styleChris Buechler2016-06-211-3/+5
|
* Remove calls which rely in uninitizalized varsNewEraCracker2016-05-201-3/+1
| | | | | | | | After analyzing implementations in RELENG_2_1 and RELENG_2_2, this code seems to be a left over after code rewrite Also remove a trailing space from comment (cherry picked from commit 0120cad84ea4dddd0c1501ecb41f2a082ea1e7d9)
* Fix script name in error logChris Buechler2016-05-151-1/+1
|
* Fix misspellings.Chris Buechler2016-05-151-3/+3
|
* Unbound and dnsmasq can both be enabled so restart both if need bek-paulius2016-05-131-4/+6
|
* Don't start unbound in track6 config if system is booting. Add dnsmasq here ↵Chris Buechler2016-05-121-1/+5
| | | | as well. Based on PR 2943. Ticket #6186
* Merge pull request #2831 from NOYB/Includes_-_Remove_PersonalizationsStephen Beaver2016-04-041-1/+1
| | | | (cherry picked from commit 7a2c15f527459cc82aadaf23d06895174c008320)
* After recreating the VLAN interface, run interface_configure on it if it's ↵Chris Buechler2016-03-051-0/+8
| | | | assigned and enabled. Ticket #5951
* Revert "Always send a -HUP to dhcp6c in interfaces_track6_configure for ↵Chris Buechler2016-03-031-4/+12
| | | | | | DHCP6 WAN types. Doing so isn't any more disruptive than what it's already doing, and that ensures track6 interfaces don't lose their IPv6 IPs. Ticket #5945" This reverts commit 471b81f8f7b0a5fe22019aed955e5374e3411dbf.
* Always send a -HUP to dhcp6c in interfaces_track6_configure for DHCP6 WAN ↵Chris Buechler2016-03-021-12/+4
| | | | types. Doing so isn't any more disruptive than what it's already doing, and that ensures track6 interfaces don't lose their IPv6 IPs. Ticket #5945
* Add function to return the physical interface(s) for a given parent. related ↵Chris Buechler2016-03-011-0/+21
| | | | to Ticket #5081
* Makes interface_bring_down() remove all the CARP and IP aliases from interface.Luiz Otavio O Souza2016-02-251-13/+32
| | | | Ticket #5913
* Correct ALTQ interface test for ix interfaces, fixes #5923jim-p2016-02-241-1/+1
|
* Make link_interface_to_vips() also return the IP aliases on the specified vhid.Luiz Otavio O Souza2016-02-241-1/+2
|
* Fixes the handling of MTU with VLANs and PPPoE.Luiz Otavio O Souza2016-02-211-101/+69
| | | | Ticket #5857
* Makes get_real_interface() work with VLAN too.Luiz Otavio O Souza2016-02-211-1/+2
| | | | This makes get_parent_interface() safe to use with VLANs.
* replaced original copyright message from 2005 / Espen JohansenChris Buechler2016-02-201-0/+2
|
* Need $config here. No need to check count() as it'll always evaluate to true ↵Chris Buechler2016-02-171-1/+2
| | | | where is_array does. Ticket #4312
* Set bridgeif for new bridge creation.Chris Buechler2016-02-171-0/+5
|
* Merge pull request #2660 from phil-davis/gtetc1Renato Botelho2016-02-171-27/+27
|\
| * Internationalize etc inc a-i filesPhil Davis2016-02-171-27/+27
| |
* | Fix printf(printf())Phil Davis2016-02-171-1/+1
| | | | | | | | This looked odd having nested calls to printf() Should it actually log_error()?
* | Separate bridge application of STP and advanced parameters into their own ↵Chris Buechler2016-02-161-7/+28
| | | | | | | | functions so they can be applied separately from creation of the entire bridge. Apply those after adding a bridge member. Ticket #4312
* | Clean up logic here. It makes no sense to proceed if bridgeif isn't defined ↵Chris Buechler2016-02-161-4/+1
| | | | | | | | but platform_booting is true. In interfaces_bridge_configure before it gets to this point, it's setting bridgeif if it's not set, and doing so in a way that won't potentially create conflicting bridgeifs (which this removed code didn't).
* | Remove variables deprecated some time ago.Chris Buechler2016-02-161-2/+0
| |
* | Fix link_interface_to_vips() to account for IP alias over CARP.Luiz Otavio O Souza2016-02-161-7/+13
| |
* | Simplify the code with the use the newly introduced function to list CARP ↵Luiz Otavio O Souza2016-02-161-1/+2
|/ | | | addresses.
* Add support for multiple span ports on bridge.Luiz Otavio O Souza2016-02-141-3/+6
| | | | | | | | While here, fix and improve the error detection for the selected ports. Inspired by pull request #2613 from heper/patch-1 Ticket #5871
* Logic correctionNewEraCracker2016-02-141-6/+5
| | | | From my understanding ppp['mtu'] and ppp['ports'] are directly related with each other and they correlate information about mtu and ports. This specific commit doesn't introduce anything new other than simplifying the code slightly
* Make a couple changes to PPP default gateway handling to address issues with ↵jim-p2016-02-141-0/+3
| | | | | | default gateway switching. Fixes #1837 Tested with default gateway switching on and off, by rebooting, manually disconnecting the PPP link, and manually disconnecting the NIC link, worked each time, though still possible some issues remain. Feedback appreciated.
* Return loopback description for friendly interface. noticed as part of ↵Chris Buechler2016-02-111-0/+3
| | | | Ticket #4450, applicable across a variety of things.
* Fix style issues.Chris Buechler2016-02-091-11/+21
|
* Fix get_interface_ip[v6]() to try first the IP from our configuration before ↵Luiz Otavio O Souza2016-02-091-0/+17
| | | | | | ask the kernel. The OS will return the first IP it find for the interface and not necessarily the main IP address. This can cause conflicts where get_interface_ip[v6]() returns a CARP or IP alias for the interface (missing the real IP and generating a duplicated IP address).
* Review of CARP uniqid changes.Luiz Otavio O Souza2016-02-091-230/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It turns out that current CARP implementation is not much different from an IP alias. This commit converts the IP alias to also use the CARP uniqid scheme, this simplify the code in all other places because now we have only two different cases to deal with: - A friendly interface name (lan, wan, opt1, etc.); - A Virtual IP - VIP alias (_vip{$uniqid}) - CARP or IP Alias. The parent of a CARP is always a friendly interface. The parent of an IP alias can be a friendly interface or a CARP (this is the only case of recursion of a VIP). This commit removes a few cases where CARP were still considered a interface (the old CARP implementation), fixes all the wrong cases of strpos() being used to detect a VIP address (wont work as it returns '0' which fails when tested as 'TRUE'), review the usage of CARP and IP alias as services bind addresses, fixes general issues of adding and editing VIP addresses. The following subsystems were affected by this changes: - IPSEC; - OpenVPN; - dnsmasq; - NTP; - gateways and gateway groups; - IPv6 RA; - GRE interfaces; - CARP status; - Referrer authentication. Fixes (and/or revisit) the following tickets: - Ticket #3257 - Ticket #3716 - Ticket #4450 - Ticket #4858 - Ticket #5441 - Ticket #5442 - Ticket #5500 - Ticket #5783 - Ticket #5844
* get_failover_interface returns the parent physical NIC for _lloc interfaces, ↵Chris Buechler2016-02-081-0/+3
| | | | so make sure it's returning null before it gets to that point.
OpenPOWER on IntegriCloud