Project

General

Profile

Download (4.85 KB) Statistics
| Branch: | Tag: | Revision:

# Date Author Comment
6317d31d 01/01/2015 12:13 PM Phil Davis

Fix lineup of copyright lines

and module names and other bits of formatting and typos in header
comment sections.

65a6e535 12/18/2014 02:17 PM Ermal Luçi

Do not restart unneeded services. Also triger configuration for the proper interface.

2eb3efc2 12/02/2014 10:24 AM Ermal Luçi

Lock rc.linkup based on interface to avoid races in between up/down events which might create a loop. This is more a timing issue but better enforce serialization here. check_reload_status forces this but not between start and stop but just between similar events. Probably need to bring more inteligence there.

045287e8 11/27/2014 06:54 PM Chris Buechler

use correct variable here

7e677d85 11/27/2014 02:06 PM Ermal Luçi

Simplify code flow not functional change just aesthetics.

68017562 11/27/2014 11:09 AM Ermal Luçi

Put a comment for the wierd code here

da145569 11/27/2014 11:08 AM Ermal Luçi

Handle recovering of ppp types as pppoe/l2tp/pp2p when the parent comes up. It should solve the issues present before on pppoe not recovering on link loss especially when connected directly to modem.

b8828d0a 11/26/2014 08:17 PM Ermal Luçi

This is revrsed conversion. The linkup script should run after booting not during it. This should help with issues on ppp type links reported

e17fad50 11/26/2014 08:11 PM Ermal Luçi

Actually rc.linkup needs the parent search for example on ppp type wans.

ac9f16ad 11/26/2014 07:37 PM Ermal Luçi

Go through the same checks when called from command line and when called from fcgi.

e702e9ed 11/26/2014 01:29 PM Ermal Luçi

Silence this error during bootup

285ef132 11/26/2014 12:10 PM Ermal Luçi

Rather than set the g['booting'] on globals provide a function to test for that doing the right checks

619cd0d6 11/26/2014 10:20 AM Ermal Luçi

Make this more readble and also do not trigger an interface_bring_up on a down event.

5574e8d5 11/26/2014 10:16 AM Ermal Luçi

Correct the variable name typo to allow rc.linkup to function properly.

156a086d 11/25/2014 08:28 PM Ermal Luçi

Ignore linkup/down events on disabled interfaces.

6668e18f 11/24/2014 02:02 PM Ermal Luçi

Ignore empty interfaces and ovpn ones on linkup since they should not trigger this script actions

e8fa9843 11/06/2014 02:45 AM Chris Buechler

Pass friendlyifname to handle_argument_group, not realifname. Fixes #3984. clean up some text while here.

e55e4b74 11/06/2014 01:47 AM Chris Buechler

isset($_GET) seems to always evaluate to true, use something more specific. Fixes use of rc.linkup when run from CLI. Others likely fix similar circumstances, though maybe not ones that are used anywhere.

91571af5 04/12/2014 06:21 AM Ermal LUÇI

Take care of the loops reported for OpenVPN in tap mode. Also fixes the problems of tap disappearing from bridge if its a member.

c71b14fd 12/13/2013 11:09 PM Ermal LUÇI

Make scripts able to react when called from FCGI with GET method

497841f5 09/03/2013 03:42 PM Ermal LUÇI

Correct typo on variable name

84f7e98c 07/03/2013 12:26 PM Ermal LUÇI

Enforce the checking of booting up for linkup events

982e004f 05/07/2013 12:34 PM Ermal LUÇI

Pull code from the calling place rather than the interfaces.inc

8e47f55b 05/07/2013 10:08 AM Phil Davis

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.

c1d8c235 04/11/2013 02:12 PM Renato Botelho

Configure static arp inside interface_configure() since it removes all interface addresses and the static arps are removed together. It fixes #2939

67864df7 03/18/2013 11:18 AM Ermal LUÇI

Properly tune rc.linkup for dual stack

7d2fedc9 12/19/2012 09:26 PM Ermal LUÇI

Make the script rc.linkuip compatible with ipv6 as well.

d368b334 06/29/2011 08:06 PM Jim Pingle

Move interfaces_staticarp_configure() to interfaces.inc where it really belongs.

8ee623f3 06/29/2011 07:54 PM Jim Pingle

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

b7d56b64 05/19/2011 09:03 PM Ermal LUÇI

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.

a798fd3e 01/26/2011 10:47 PM Ermal LUÇI

At least bring the interface up. Sometimes even though the linkup is reported interfaces like em(4) do not come up.

7413cbfd 08/30/2010 07:56 PM Ermal LUÇI

Ticket #846. Do not try to add an interface to the bridge during an event of LINK_UP.

69695597 08/30/2010 07:51 PM Ermal LUÇI

Ticket #846. Do not reconfigure an 'none' configured interface.

ae39786e 07/25/2010 10:47 PM Chris Buechler

partially fix linkup. ticket #656

24d5fc0a 05/11/2010 03:05 PM Jim Pingle

Fix booting checks. Part of ticket #53.

58a52416 12/21/2009 04:58 AM Chris Buechler

fix text

5f2d078e 11/22/2009 12:10 AM Scott Ullrich

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

a55e9c70 03/30/2009 12:38 AM Ermal Luçi
  • 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...
f4538770 03/18/2009 11:04 PM Scott Ullrich

Remove blank newline

5b70c17e 03/01/2009 05:32 PM Ermal Luçi

Do not ignore interface events even for pppoe/pptp it does no good.

43d35749 02/28/2009 07:32 PM Ermal Luçi

Use correct variable

c0c70153 11/10/2008 09:34 PM Seth Mos

Remove redundant check

a3a3a6b1 11/10/2008 09:31 PM Seth Mos

Be smarter parsing the command line before passing it into handle_argument_group.
This prevents bogus events being logged when (dis)connecting a cable

4367b5f6 10/19/2008 02:05 PM Ermal Luçi

Bring order and simplify logic.

df4ae7c8 10/06/2008 10:23 PM Ermal Luçi
  • 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.
69e5a8be 09/09/2008 11:08 AM Ermal Luçi

Rename interfaces_wan_configure to interface_configure now that it is used for all assigned interface configuration.

4476d447 09/07/2008 07:34 PM Ermal Luçi

Merge lan configuration to the interfaces_wan.php page wich does the configuration of all
other assigned interfaces.

67ee1ec5 07/14/2008 08:43 PM Ermal Luçi
  • 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

b6db9217 06/21/2008 12:28 AM Ermal Luçi

Continue interface improvements.

710eae26 10/09/2007 09:28 PM Seth Mos

Do not reconfigure on pptp interfaces.

b34e6d84 10/09/2007 09:20 PM Seth Mos

Check if interface is passed along, otherwise return

e95c7cd6 10/09/2007 09:05 PM Seth Mos

Switch on correct argument variable
Clear arp cache per interface instead of all
Clear arp cache for staticly configured interfaces

79ff482d 10/05/2007 09:24 PM Scott Ullrich

Do not handle blank interface names.

Ticket #1461

28b0b1a7 04/29/2007 11:13 PM Scott Ullrich

$config needs to be a global. Someone needs a pointy-hat!

d131e83d 04/29/2007 11:00 PM Scott Ullrich

Use $_SERVER['argvc'] and $_SERVER['argv'][$x]. This fixes the linkup issues (hotplug)

a7b5cfbe 03/12/2007 09:34 PM Scott Ullrich

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.

5cf1bd37 03/12/2007 09:04 PM Scott Ullrich
  • Show arguments being passed
  • Remove argument == 2 check, there could be 4, or 6, or 8, etc.
ffed1529 03/09/2007 06:35 PM Scott Ullrich

Remove logging helper entries

6f043d8a 03/09/2007 06:31 PM Scott Ullrich

Remove logging helper entries

a2afc3b7 02/14/2007 05:08 PM Scott Dale

Link up patch submitted by billm.

24370be1 02/06/2007 07:26 PM Scott Ullrich

Do not loop forever

fc0b67b0 02/06/2007 07:24 PM Scott Ullrich

Read in argspassed

aac8957d 02/06/2007 07:18 PM Scott Ullrich

Simply note the arguments passed to rc.linkup instead of exiting.

34d47cf5 02/06/2007 07:13 PM Scott Ullrich

Do not process the same events twice. A nic may be stopped and restarted but we do not want to start or stop twice.

a0c6633d 02/06/2007 06:58 PM Scott Ullrich

Do not process nics twice.

73c27364 02/06/2007 06:46 PM Scott Ullrich

Output args passed so that we can get a better idea of what is happening.

8df2a3c4 02/02/2007 06:39 PM Scott Ullrich

Log the interface number / opt that we are running dhclient on optional interfaces

067d5ae7 02/02/2007 06:36 PM Scott Ullrich

Do not newline on syslog items

b18fd108 02/02/2007 06:28 PM Scott Ullrich

Note when arguments are passed incorrectly to rc.linkup

adab3c25 02/02/2007 05:30 PM Scott Ullrich

Instead of echoing out the value where nobody will see it, send it to log_error() so we can ensure the values are correct and aide in debugging this dhclient issue.

ab87bd4c 05/19/2006 10:43 PM Scott Ullrich

Woops, set $int before calling!

Pointy-hat-to: me

a844ddfb 05/19/2006 10:30 PM Scott Ullrich

Do not pass opt1, pass 1 instead.

This fixes dhclient on optional interfaces.

Ticket #970

6b149d0d 03/13/2006 06:20 AM Scott Ullrich

Backout last commit

f4bc6af9 03/13/2006 06:19 AM Scott Ullrich

Move /tmp/rc.linkup unlink operation into rc.linkup

c511b369 03/13/2006 03:59 AM Scott Ullrich

Transfer rc.linkup over to devd

d7a6517a 11/27/2005 08:41 PM Scott Ullrich MFC 8080
  • Do not process hotplug events from pppoe
  • Cleanup kill by pid function, accept a real pid (dhclient depends on this)
6b55233d 11/25/2005 05:59 PM Scott Ullrich

Only exit linkup when interface is not a dynamic type. Prior we where exiting only if it was DHCP which would bypass linkup events for PPPoE, etc.

86329796 11/18/2005 06:56 PM Scott Ullrich

Ignore hotplug event on non-dhcp interfaces

48906a09 10/26/2005 01:45 AM Scott Ullrich

Allow plugging and unplugging of ethernet interfaces (and wireless)

7a221543 10/25/2005 11:43 PM Scott Ullrich

Handle ethernet hotplug events correctly

1a978734 10/25/2005 11:02 PM Scott Ullrich

MFC 7172
Add rc.linkup script which will be called from devd when starting or stopping a device