Commit Graph

63 Commits

Author SHA1 Message Date
Ermal
91571af53a Take care of the loops reported for OpenVPN in tap mode. Also fixes the problems of tap disappearing from bridge if its a member. 2014-04-12 06:21:12 +00:00
Ermal
c71b14fd9c Make scripts able to react when called from FCGI with GET method 2013-12-13 23:09:06 +00:00
Ermal
497841f5d5 Correct typo on variable name 2013-09-03 15:42:06 +00:00
Ermal
84f7e98c51 Enforce the checking of booting up for linkup events 2013-07-03 12:26:02 +00:00
Ermal
982e004f0a Pull code from the calling place rather than the interfaces.inc 2013-05-07 12:34:11 +00:00
Phil Davis
8e47f55b6e Reload routes etc when rc.linkup happens
When a link comes up, call interface_configure with p2=true. This makes it run various extra routines such as system_routing_configure - which will put back the default route or other static routes that might have been removed when the link was down.
2013-05-07 15:53:09 +05:45
Renato Botelho
c1d8c235c4 Configure static arp inside interface_configure() since it removes all interface addresses and the static arps are removed together. It fixes #2939 2013-04-11 11:12:06 -03:00
Ermal
67864df7bb Properly tune rc.linkup for dual stack 2013-03-18 11:18:04 +00:00
Ermal
7d2fedc976 Make the script rc.linkuip compatible with ipv6 as well. 2012-12-19 21:26:17 +00:00
jim-p
d368b33458 Move interfaces_staticarp_configure() to interfaces.inc where it really belongs. 2011-06-29 16:06:42 -04:00
jim-p
8ee623f3a9 Instead of deleting arp entries, reconfigure static arp. For interfaces without static arp enabled, the net effect is the same (arp entries are already deleted as part of that function). Fixes #1628 2011-06-29 15:54:26 -04:00
Ermal
b7d56b6412 Fixes #1508. When an interface is configured as static and an up event comes manually trigger rc.newwanip so gateway and other services get restarted properly. 2011-05-19 21:03:21 +00:00
Ermal
a798fd3e7a At least bring the interface up. Sometimes even though the linkup is reported interfaces like em(4) do not come up. 2011-01-26 22:47:46 +00:00
Ermal
7413cbfdab Ticket #846. Do not try to add an interface to the bridge during an event of LINK_UP. 2010-08-30 19:56:14 +00:00
Ermal
69695597ca Ticket #846. Do not reconfigure an 'none' configured interface. 2010-08-30 19:51:25 +00:00
Chris Buechler
ae39786eed partially fix linkup. ticket #656 2010-07-25 18:47:58 -04:00
jim-p
24d5fc0aa3 Fix booting checks. Part of ticket #53. 2010-05-11 11:05:33 -04:00
Chris Buechler
58a52416d0 fix text 2009-12-20 23:58:38 -05:00
Scott Ullrich
5f2d078e7d Decouple filter.inc from functions.inc. There is no need to process filter functions most of the time. Include filter.inc where it is needed 2009-11-21 19:10:37 -05:00
Ermal Lui
a55e9c701c * Hide interfaces internals to other code and use the propper interfaces.
Basically use get_interface*() functions instead of accessing fields like 'ipaddr'/'descr' etc...
* Make get_interfaces_with_gateway less heavyweight by getting information from the configuration stored in config.xml
* Some other missed custom interface list building and substituing with propper get_configured_interface*()
NOTE: This should give indipendce on dynamic interfaces on some services that before could not be used on top of this type of interfaces.
2009-03-30 00:38:36 +00:00
Scott Ullrich
f4538770cb Remove blank newline 2009-03-18 19:04:24 -04:00
Ermal Lui
5b70c17efd Do not ignore interface events even for pppoe/pptp it does no good. 2009-03-01 17:32:08 +00:00
Ermal Lui
43d35749e2 Use correct variable 2009-02-28 19:32:05 +00:00
Seth Mos
c0c7015354 Remove redundant check 2008-11-10 21:34:41 +00:00
Seth Mos
a3a3a6b136 Be smarter parsing the command line before passing it into handle_argument_group.
This prevents bogus events being logged when (dis)connecting a cable
2008-11-10 21:31:58 +00:00
Ermal Luçi
4367b5f627 Bring order and simplify logic. 2008-10-19 14:05:41 +00:00
Ermal Luçi
df4ae7c832 * Remove bigpond support from backend.
* Use killbypid instead of sigkillbypid SIGUSR2 is not doing what is expected.
* Actually start pppoe/pptp when the routing is called for this.
2008-10-06 22:23:03 +00:00
Ermal Luçi
69e5a8be8d Rename interfaces_wan_configure to interface_configure now that it is used for all assigned interface configuration. 2008-09-09 11:08:02 +00:00
Ermal Luçi
4476d44751 Merge lan configuration to the interfaces_wan.php page wich does the configuration of all
other assigned interfaces.
2008-09-07 19:34:18 +00:00
Ermal Luçi
67ee1ec5ec * Merge multiple PPPoE/PPTP interfaces from RELENG_1_MULTI_ANYTHING
* Much improved rule generation speed
* Many bug fixing in general of the interface handling

NOTE: this is only half part of the changes the other half will come after
2008-07-14 20:43:59 +00:00
Ermal Luçi
b6db921762 Continue interface improvements. 2008-06-21 00:28:50 +00:00
Seth Mos
710eae26cf Do not reconfigure on pptp interfaces. 2007-10-09 21:28:54 +00:00
Seth Mos
b34e6d8409 Check if interface is passed along, otherwise return 2007-10-09 21:20:03 +00:00
Seth Mos
e95c7cd6d7 Switch on correct argument variable
Clear arp cache per interface instead of all
Clear arp cache for staticly configured interfaces
2007-10-09 21:05:32 +00:00
Scott Ullrich
79ff482de7 Do not handle blank interface names. Ticket #1461 2007-10-05 21:24:40 +00:00
Scott Ullrich
28b0b1a76f $config needs to be a global. Someone needs a pointy-hat! 2007-04-29 23:13:41 +00:00
Scott Ullrich
d131e83d04 Use $_SERVER['argvc'] and $_SERVER['argv'][$x]. This fixes the linkup issues (hotplug) 2007-04-29 23:00:15 +00:00
Scott Ullrich
a7b5cfbe8b rc.linkup is a event queue of sorts. It needs to to loop through all arguments and process them in the order that they where received in. 2007-03-12 21:34:34 +00:00
Scott Ullrich
5cf1bd37f7 * Show arguments being passed * Remove argument == 2 check, there could be 4, or 6, or 8, etc. 2007-03-12 21:04:34 +00:00
Scott Ullrich
ffed1529ec Remove logging helper entries 2007-03-09 18:35:37 +00:00
Scott Ullrich
6f043d8aad Remove logging helper entries 2007-03-09 18:31:11 +00:00
Scott Dale
a2afc3b7a1 Link up patch submitted by billm. 2007-02-14 17:08:56 +00:00
Scott Ullrich
24370be17b Do not loop forever 2007-02-06 19:26:59 +00:00
Scott Ullrich
fc0b67b06a Read in argspassed 2007-02-06 19:24:02 +00:00
Scott Ullrich
aac8957dbb Simply note the arguments passed to rc.linkup instead of exiting. 2007-02-06 19:18:27 +00:00
Scott Ullrich
34d47cf510 Do not process the same events twice. A nic may be stopped and restarted but we do not want to start or stop twice. 2007-02-06 19:13:36 +00:00
Scott Ullrich
a0c6633d5d Do not process nics twice. 2007-02-06 18:58:29 +00:00
Scott Ullrich
73c27364a4 Output args passed so that we can get a better idea of what is happening. 2007-02-06 18:46:32 +00:00
Scott Ullrich
8df2a3c4c9 Log the interface number / opt that we are running dhclient on optional interfaces 2007-02-02 18:39:47 +00:00
Scott Ullrich
067d5ae7d9 Do not newline on syslog items 2007-02-02 18:36:12 +00:00