Restore spoofed MAC after running hostapd to keep behavior consistent with other interfaces. Ticket #841
Restore the original MAC address before running hostapd to work around a hostapd bug. Ticket #841
Use correct variable name. Also related to Ticket #847.
Ticket #1047. Make the flags the same for each member interface before adding them to lagg(4)/bridge(4)
Set net.inet.carp.log=1. Ticket #1038
Nuke trailing c/r
Send errors to 2>
Fix test for altq on vlans and wlan.
Ticket #904. Hmm fix the interface_has_gateway() too.
Ticket #904. Actually correctly handle the assigned openvpn client as a dynamic gateway rather than breaking the behaviour of the system. Strange nobody has noticed broken gateway behaviour with openvpn assigned!
Actually was coorect before. 3rd parameter is length not index.
Revert "Correct this to make it actually work. This is also mentioned in Ticket #904 though it was already implemented."
This reverts commit 6f2cc3a680f984ccbb387301a26d022e6969e665.
Remove trailing carriage return
Correct this to make it actually work. This is also mentioned in Ticket #904 though it was already implemented.
Use a shell script rather than bad hack to execute php code for pppoe periodic reset.
Protect from strange situations on bootup by testing for is_array(). Do not add anymore the 127.0.0.2 route its not needed anymore. Also during bootup bring up all interfaces so the assignment process can deal with them(Possibly should be done in another code flow!).
Ticket #927. Increase timeout to gice mpd the time needed to exit gracefully.
Resolves #944. Actually bring down the vlan interface if it existed previously. This is a regression from the ppp dance/requests/whatever.
This one looks safe, and might improve speed. Add it back.
This ref should be safe too
Whoops this reference was good (for speed) and should stay.
More unneeded references.
Remove unneeded reference.
Remove support for this legacy code. The upgrade path handles this.
Restart dnsmasq first because dyndns might depend on it. Possibly these all should be sent through evnets to check_reload_status
Add as a search domain the domains suggested by dhcp.
Ticket #867. Flush the cache when restarting apinger and also when rc.newwanip is called. also restart apinger earlier in to be on latest address asap.
Use the new events mechanisms to dispatch events.
Do this check earlier rather than later, instead of moving the interface_bring_down call.
Revert "Rearrange function calls for wireless to prevent killing hostapd/wpa_supplicant at the wrong time."
This reverts commit e93385d06ddf0e2888b3f5ee5764992a19f99120.
Revert "Ticket #867. Do not destory interfaces other than preventing a loop for ppp interfaces during interface configuration."
This reverts commit 990fb7a9a9b03f744c56792011f1c1e2950ce764.
Protect against wpa_supplicant dying when bringing down interfaces to change wireless regulatory configuration.
Rearrange function calls for wireless to prevent killing hostapd/wpa_supplicant at the wrong time.
- Moved interface_wireless_configure call to after the new location of the interface_bring_down call to prevent it from killing hostapd and wpa_supplicant right after they start....
Ticket #843. Disable for now bringing down the interface unless we want to destroy it. While this is not all correct this seems to help alleviate problems when the parent is shared on cloned types.
Ticket #866 #632. Save old settings or actions to be taken for reconfiguring a route/vip on a tmp file and make use that information when apply settings buttons is clicked. This makes the gui behave as expected.
Ticket #867. Do not destory interfaces other than preventing a loop for ppp interfaces during interface configuration.
Correct binaries and find_dhclient_process
Make this more readble.
Ticket #860. Honor the parameter if passed.
Ticket #860. Correct code for proxyarp/choparp starting. Not sure why php did not bail at some code here missing curlies :).
Actually it should test the other way.
Ticket #846. Do not try to add an interface to the bridge during an event of LINK_UP.
Allow carp interfaces to sit on top of aliases. Also add safety belts to ipalias deletion for this to avoid breakage. Trigered-by: http://forum.pfsense.org/index.php/topic,27834.0.html
Fixes #847. Check even interface groups before allowing deletion of an interface. Also try to readd to a group an interface when configuring.
Revert "Use get_real_interface here and compare to that to make it more generic instead of doing this wireless-specific stuff." which probably ended up doing some recursion in various cases, especially slowing down as it goes down a larger list in this foreach loop....
Tiny change to boot message to remove redundant info and make it pretty.
Add run(4) to known wireless nics. Reported-by: http://forum.pfsense.org/index.php/topic,27744.0.html
Add bwn to interface lists too.
When booting up do not try to configure ovpn[c|s] interfaces if present also try to configure openvpn eariler just after the interfaces have been setup.
Ticket #684. Dispatch the reloading of the interface in dial-on-demand case to easy the GUI responsivess.
Make dhcrelay GUI be simple and easy to use by collapsing the interface tabs to a multiselect control. Remove proxydhcp option because it is broken and is not trivial to make it usable(if user request for it a reconsideration will be made). Allow multiple server ips on the server input box separated by commas. Also on the interface list do not show interfaces without an ip because dhcrelay will not be happy with them. Upgrade code is also included in this commit.
Ticket #684. Actually when reconfiguring an interface send the destory flag to avoid a loop with ppp-on-demand.
Setup polling per interface rather only at bootup. This is a proper fix and a optimization on large interface cases. Also setup_microcode and polling defaults before configuring interfaces.
Fixes #88. Actually fix all the mess that was caused by setup_microcode() which overwrote the whole decisions being made on boot from other code. Solve this by moving the setting of all interface capabilities to interface_configure() and just leaving microcode setup to setup_microcode. Also optimize and make more readble the polling setup if activated/deactivated. This also fixes the ticket issue because the settings are now kept after booting up and not overwritten by other code.
Reshufling for better reading of code.
Ticket #88. When creating the bridge find the common flags needed related to rxcsum/txcsum so that the bridge actually works.
Also mark wlan cloned interfaces as altq capable.
Add l2tp where missing. Also add l2tp and igb to altq capable interfaces.
If mpd.conf files exists in the /conf directory, link to it instead ofgenerating a new one from config.xml data.
This allows power users to tweak mpd conf to their delight, and givesdevs a way of testing out conf tweaks without needing to alter php code.
Expose MRRU settings in the GUI for PPPoE (MLPPP).
Do not require a refernce passed because seems php likes to screw with it internally. This should have be the second belt at Ticket #819.
Add 8021.x preauth (rsn_preauth)
Fixes #684. Test file existence before trying to kill the process. Also correct interface name passed as parameter to interface_configure function, it should fix another ticket as a byproduct.
Use correct type so a proper config is generated. Reported by:http://forum.pfsense.org/index.php/topic,25465.msg141966.html#msg141966
Get the real flags set on the interface to make code below work properly! Ticket #88.
Add backend code for antenna settings. Ticket #13
Add reference instead of copying also remove bogus comment and code that relies on interfaces named carp which should not happen anymore.
Use get_real_interface here and compare to that to make it more generic instead of doing this wireless-specific stuff.
Since convert_friendly_interface_to_friendly_descr is now used for display purposes only, it should be fine to fix the case on PPTP and PPPoE.
Revert "Adjust case of aliases/description names for PPTP and PPPoE server interfaces." since it affects a package that is using the pptp alias.
This reverts commit 429cac0198aea4c42f815e639fb123157de1861b.
Don't create the wireless section of the config for an interface section that doesn't exist.
Make convert_real_interface_to_friendly_interface_name recognize that the parent wireless name in the config means the same as the #0 clone. Fixes a bug in is_interface_wireless that could cause it to create a blank interface entry.
Adjust case of aliases/description names for PPTP and PPPoE server interfaces.
Correct capitalization for PPTP and L2TP in a couple places.
Small optimization for convert_friendly_interface_to_friendly_descr. Do not build an interface list for the most common cases.
Ticket #776. reload even ipalias type of vip when reloading carps and do not destroy cloned interfaces on interface bring down.
Be more correct and do the same checks for RXCSUM capabilities as is done for TXCSUM one.
Ticket #88. Correctly use the parameter returned from link_interface_to_bridge to actually set the flags on the interface being configured the same as the bridge. While here simplify gre/gif handling too.
Ticket #752. Actually do this only for openvpn client instances.
Ticket #752. Consider openvpn interfaces as ones with gateways now that the up/down scripts write the appropriate information.
Add a checkbox to make syncing shared wireless settings to a central area optional.
Add a central location that shared wireless settings will sync to/from.
partially fix Status>CARP enable/disable
only match with a space behind the IP, otherwise 10.0.0.6 CARP IP may match against interface IP 10.0.0.60, and show incorrect info on the CARP status page
Ticket #667. Actually destroy when trying to reconfigure an interface.
Ticket #667. Take another approach at handling dial-on-demand and Connect/Disconnect button. If the link is chosen for dial on demand during a disconnect request it will be brough up again instead of just leaving it down so traffic will flow easily when there is a request.
Remove extra }
Fix up checks for changing wireless regulatory settings.
Also teach system_routing_configure to have an interface as parameter so to reload only routes related to this interface when an interface is reconfigured.
Do not reconfigure CP on every event of interfaces or while reloading the webGUI. Create 2 new function to just rewrite rules and restart the webserver for CP repctively for interface events and webGUI restart events.
Actually it needs choparp_ prepended.
Fixes #632. When bringing down a vip of proxyarp use the new pidfile introduced. Also teach about interface argument to proxyarp function so it can start only a instance of an interface.
Fixes #667. Do not bring down mpd5 if the interface is configured for dial on-demand.
Fix comments to work better.
Merge branch 'master' of rcs.pfsense.org:pfsense/mainline
Comment out log suppression. No front end control implemented yet.
Fix typo. Ticket #632
Ticket #88. Add checks to disable txcsum when needed for wirless interfaces so it does not break bridging when teh interface itself is reconfigured.
Simplify/optimize code for carp [re]configuration. This is possibly related to Ticket #601. Also this speedups vip creation on large number of interfaces.
Fixes #632. Use the correct function to handle vip destory.
Remove extra code that isn't needed any more in interfaces.inc.
creating pppoe reset file is now handled directly in interfaces_ppps_configure function.