]> git.ipfire.org Git - people/stevee/network.git/log
people/stevee/network.git
11 years agoMove all of the device renaming code to network-hotplug-rename.
Michael Tremer [Sun, 27 May 2012 12:07:06 +0000 (12:07 +0000)] 
Move all of the device renaming code to network-hotplug-rename.

The port hooks get an additional method called _hotplug() which
handles the actual hotplugging stuff.
To rename devices, there is now the _hotplug_rename() function
which returns either EXIT_TRUE or EXIT_FALSE.

11 years agoMove all port patterns into functions.constants.
Michael Tremer [Sun, 27 May 2012 11:59:36 +0000 (11:59 +0000)] 
Move all port patterns into functions.constants.

11 years agoAdd detection for wireless devices.
Michael Tremer [Sun, 27 May 2012 11:58:29 +0000 (11:58 +0000)] 
Add detection for wireless devices.

11 years agoCLI: Disable debugging for status commands.
Michael Tremer [Fri, 25 May 2012 12:07:41 +0000 (12:07 +0000)] 
CLI: Disable debugging for status commands.

When the debugging mode was enabled, the status
screen was cluttered with a lot of unneeded log lines.
The result was not readable at all.

This patch termporarily disables the output of log
messages to the console.

11 years agobridge-stp: Update script to work with newer versions of mstpd.
Michael Tremer [Fri, 25 May 2012 12:06:57 +0000 (12:06 +0000)] 
bridge-stp: Update script to work with newer versions of mstpd.

11 years agoRemove a lot of 'devicify' calls to increase speed of code.
Michael Tremer [Fri, 25 May 2012 09:24:54 +0000 (09:24 +0000)] 
Remove a lot of 'devicify' calls to increase speed of code.

11 years agoRemove port initialization on init event.
Michael Tremer [Fri, 25 May 2012 09:18:09 +0000 (09:18 +0000)] 
Remove port initialization on init event.

When the system boots up, udev is in charge to
properly detect devices and create configurations.

11 years agohotplugging: Check if the device has vanished in the meantime.
Michael Tremer [Fri, 25 May 2012 09:16:54 +0000 (09:16 +0000)] 
hotplugging: Check if the device has vanished in the meantime.

However, sometimes the rename script gets called
and shortly after that the device vanishes.

11 years agoFix hotplugging with udev.
Michael Tremer [Fri, 25 May 2012 09:02:08 +0000 (09:02 +0000)] 
Fix hotplugging with udev.

New devices will now be correctly named
and brought up after plugging them in.

11 years agoThrow the old GREEN/RED/ORANGE schema over board.
Michael Tremer [Thu, 17 May 2012 19:36:35 +0000 (19:36 +0000)] 
Throw the old GREEN/RED/ORANGE schema over board.

However, this is not a very good idea at this
level anymore. The colours may confuse and the
difference between them is not very huge at all.

So from now on, there will be lanN and uplN
which represent local networks and uplinks respectively.

11 years agoFix syntax error.
Michael Tremer [Thu, 17 May 2012 18:30:29 +0000 (18:30 +0000)] 
Fix syntax error.

I sometimes hate merges.

11 years agoMerge remote-tracking branch 'ms/isdn'
Michael Tremer [Thu, 17 May 2012 15:30:26 +0000 (15:30 +0000)] 
Merge remote-tracking branch 'ms/isdn'

11 years agoMerge remote-tracking branch 'stevee/UsrMove'
Michael Tremer [Thu, 17 May 2012 15:28:27 +0000 (15:28 +0000)] 
Merge remote-tracking branch 'stevee/UsrMove'

11 years agoAdd basic support as a DHCP client.
Michael Tremer [Thu, 17 May 2012 15:23:58 +0000 (15:23 +0000)] 
Add basic support as a DHCP client.

12 years agoRemove all hardcoded path now use switches for it - also perform UsrMove.
Stefan Schantl [Thu, 3 May 2012 19:11:43 +0000 (21:11 +0200)] 
Remove all hardcoded path now use switches for it - also perform UsrMove.

12 years agoUpdate paths to match a modern filesystem layout.
Michael Tremer [Tue, 1 May 2012 13:50:38 +0000 (13:50 +0000)] 
Update paths to match a modern filesystem layout.

12 years agoCreate a basic version of an ISDN dial-in server.
Michael Tremer [Fri, 16 Dec 2011 23:48:39 +0000 (23:48 +0000)] 
Create a basic version of an ISDN dial-in server.

There is more work needed on the error checking and
the feature did not get very much testing, yet.

12 years agoSTP: Remove sed substitutions and get information directly from mstpctl.
Michael Tremer [Mon, 12 Dec 2011 12:56:17 +0000 (12:56 +0000)] 
STP: Remove sed substitutions and get information directly from mstpctl.

12 years agobridge-stp: Make sure kernel knows about the STP state.
Vitalii Demianets [Sun, 27 Nov 2011 11:08:25 +0000 (12:08 +0100)] 
bridge-stp: Make sure kernel knows about the STP state.

From email:
  Yes, but it have issues:
  1) After log ERROR script should return failure (!=0) - after all, user-space
     stp was not setup correctly and kernel should know it. So "exit 1" should be
     inserted in two places:
      after log ERROR "mstpd is not running. STP might not work."
     and
      after log ERROR "Unknown action given: ${action}."
  2) If zone does not exist script also should return failure (!=0). Kernel
     should know that user-space stp was not started.
  3) I assume your "assert " function returns failure(non-zero) too ;)
  4) mstpctl MUST be run through exec call.
  5) thanks to above "assert" in the start case can be omitted - execution flow
     will never go that far.
  6) The final "exit 0" is superfluous.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
12 years agobridge-stp: Tell mstpd that STP was enabled for a device.
Michael Tremer [Fri, 25 Nov 2011 11:18:29 +0000 (11:18 +0000)] 
bridge-stp: Tell mstpd that STP was enabled for a device.

mstpd needs to be told about wheather STP was enabled or
disabled for a bridge.
To stay with the old command "brctl stp red0 on/off", this
is done by the bridge-stp script that is called by the kernel.

12 years agostp: Complete transition to mstpd.
Michael Tremer [Sat, 19 Nov 2011 20:23:01 +0000 (20:23 +0000)] 
stp: Complete transition to mstpd.

12 years agostp: Transition to mstpd.
Michael Tremer [Fri, 18 Nov 2011 15:32:10 +0000 (15:32 +0000)] 
stp: Transition to mstpd.

This is the first commit of changing the STP code, that will
fully rely on mstpd for STP.

In this commit, we tell mstpd about the settings, the user did.

12 years agobridge-stp: Use internal service functions for controlling mstpd.
Michael Tremer [Fri, 18 Nov 2011 15:08:01 +0000 (15:08 +0000)] 
bridge-stp: Use internal service functions for controlling mstpd.

12 years agostp: Bring own /sbin/bridge-stp.
Michael Tremer [Mon, 14 Nov 2011 14:09:04 +0000 (15:09 +0100)] 
stp: Bring own /sbin/bridge-stp.

This is doing everything we want for now.

12 years agoMerge branch 'master' of ssh://git.ipfire.org/pub/git/network
Michael Tremer [Mon, 14 Nov 2011 13:55:03 +0000 (14:55 +0100)] 
Merge branch 'master' of ssh://git.ipfire.org/pub/git/network

Conflicts:
Makefile

12 years agoisdn: Initial commit of ISDN code.
Michael Tremer [Sat, 12 Nov 2011 16:04:37 +0000 (16:04 +0000)] 
isdn: Initial commit of ISDN code.

This may be quite non-function but gives a limited way
to create an ISDN dialup connection.

It's to be decided if we will support that in future.

12 years agoFix reading DEBUG option from configuration file.
Michael Tremer [Mon, 31 Oct 2011 21:47:31 +0000 (21:47 +0000)] 
Fix reading DEBUG option from configuration file.

12 years agoBump version to 003.
Michael Tremer [Mon, 31 Oct 2011 19:41:49 +0000 (19:41 +0000)] 
Bump version to 003.

12 years agoFix setting local routes on zone's routing tables.
Michael Tremer [Mon, 31 Oct 2011 19:40:29 +0000 (19:40 +0000)] 
Fix setting local routes on zone's routing tables.

12 years agoFix setting the default route when there are zones without a gateway setting.
Michael Tremer [Mon, 31 Oct 2011 19:39:30 +0000 (19:39 +0000)] 
Fix setting the default route when there are zones without a gateway setting.

12 years agobonding: Fix setting mode.
Michael Tremer [Mon, 31 Oct 2011 19:34:09 +0000 (19:34 +0000)] 
bonding: Fix setting mode.

The mode cannot be changed after the device is set up.
So we set the mode prior to bringing the device up.

12 years agoChange funtion to detect ppp devices.
Michael Tremer [Mon, 31 Oct 2011 19:29:03 +0000 (19:29 +0000)] 
Change funtion to detect ppp devices.

Calling ip is not very fast.

12 years agoInstall sysctl files in /lib/sysctl.d.
Michael Tremer [Sun, 7 Aug 2011 08:55:11 +0000 (08:55 +0000)] 
Install sysctl files in /lib/sysctl.d.

12 years agoAdd script to create radvd configuration file on the fly.
Michael Tremer [Sun, 7 Aug 2011 08:53:55 +0000 (08:53 +0000)] 
Add script to create radvd configuration file on the fly.

12 years agoProperly install /etc/network/{ports,zones}.
Michael Tremer [Sat, 6 Aug 2011 08:25:09 +0000 (10:25 +0200)] 
Properly install /etc/network/{ports,zones}.

12 years agoBump version to 002.
Michael Tremer [Wed, 3 Aug 2011 17:18:10 +0000 (17:18 +0000)] 
Bump version to 002.

12 years agoAdd hotplugging for ethernet devices.
Michael Tremer [Wed, 3 Aug 2011 17:17:24 +0000 (17:17 +0000)] 
Add hotplugging for ethernet devices.

12 years agoManually set PATH.
Michael Tremer [Wed, 3 Aug 2011 17:16:34 +0000 (17:16 +0000)] 
Manually set PATH.

In scripts that are called by udev and stuff, there might be another
PATH.

12 years agoAdd automatic renaming of hotplugged devices.
Michael Tremer [Wed, 3 Aug 2011 14:52:58 +0000 (14:52 +0000)] 
Add automatic renaming of hotplugged devices.

Fixes #183.

12 years agowireless-ap: Fix saving channel.
Michael Tremer [Wed, 3 Aug 2011 14:49:26 +0000 (14:49 +0000)] 
wireless-ap: Fix saving channel.

12 years agoMerge remote branch 'origin/hotplug'
root [Wed, 3 Aug 2011 13:28:39 +0000 (13:28 +0000)] 
Merge remote branch 'origin/hotplug'

12 years agoIntroduce new versioning schema.
Michael Tremer [Fri, 29 Jul 2011 17:49:54 +0000 (17:49 +0000)] 
Introduce new versioning schema.

Create a version information file in the system.

12 years agoMerge branch 'master' of git://git.ipfire.org/network
Michael Tremer [Fri, 29 Jul 2011 17:39:02 +0000 (17:39 +0000)] 
Merge branch 'master' of git://git.ipfire.org/network

12 years agoFix setting of default routes.
Michael Tremer [Fri, 29 Jul 2011 17:38:46 +0000 (17:38 +0000)] 
Fix setting of default routes.

12 years agobridge: Fix reading of zone configuration.
Michael Tremer [Sun, 24 Jul 2011 22:22:08 +0000 (22:22 +0000)] 
bridge: Fix reading of zone configuration.

12 years agohostapd should be monitored by systemd.
Stefan Schantl [Sun, 17 Jul 2011 12:51:50 +0000 (14:51 +0200)] 
hostapd should be monitored by systemd.

12 years agoReplace ipv?_is_valid by ipcalc command.
Michael Tremer [Sat, 11 Jun 2011 15:15:39 +0000 (15:15 +0000)] 
Replace ipv?_is_valid by ipcalc command.

The ipcalc command is much faster and safer than
the shell code.

12 years agoAdd support for automatic configuration of radvd.
Michael Tremer [Sat, 11 Jun 2011 14:43:44 +0000 (14:43 +0000)] 
Add support for automatic configuration of radvd.

12 years agoEnable IPv6 packet forwarding.
Michael Tremer [Thu, 9 Jun 2011 22:17:39 +0000 (22:17 +0000)] 
Enable IPv6 packet forwarding.

12 years agoFix routing for ipv6-static hook.
Michael Tremer [Thu, 9 Jun 2011 21:42:27 +0000 (21:42 +0000)] 
Fix routing for ipv6-static hook.

12 years agoAdd sysctl files to configure the kernel for network.
Michael Tremer [Sat, 4 Jun 2011 19:37:15 +0000 (19:37 +0000)] 
Add sysctl files to configure the kernel for network.

12 years agoAdd IPv6 support for pppoe.
Michael Tremer [Sat, 4 Jun 2011 15:05:40 +0000 (15:05 +0000)] 
Add IPv6 support for pppoe.

12 years agoFixed some issues with pppoe dial-in.
Michael Tremer [Fri, 3 Jun 2011 20:55:14 +0000 (20:55 +0000)] 
Fixed some issues with pppoe dial-in.

No major stuff. Just some fixes for invalid input.

12 years agoRemove red_db_* functions.
Michael Tremer [Fri, 3 Jun 2011 19:54:41 +0000 (19:54 +0000)] 
Remove red_db_* functions.

12 years agoSome fixes when STP is disabled.
Michael Tremer [Thu, 26 May 2011 15:52:50 +0000 (15:52 +0000)] 
Some fixes when STP is disabled.

12 years agoRemove redundant logging.
Michael Tremer [Thu, 26 May 2011 15:48:32 +0000 (15:48 +0000)] 
Remove redundant logging.

12 years agohotplug: Return port name for a device.
Michael Tremer [Wed, 25 May 2011 15:11:22 +0000 (15:11 +0000)] 
hotplug: Return port name for a device.

12 years agorouting: Create routing database and set routes for ipv4.
Michael Tremer [Wed, 25 May 2011 14:13:04 +0000 (14:13 +0000)] 
routing: Create routing database and set routes for ipv4.

12 years agoEnhance logging with colors and output to stderr.
Michael Tremer [Sun, 22 May 2011 12:38:44 +0000 (12:38 +0000)] 
Enhance logging with colors and output to stderr.

13 years agoAdd support to set the hostname.
Michael Tremer [Sat, 30 Apr 2011 12:20:16 +0000 (12:20 +0000)] 
Add support to set the hostname.

Compatible with systemd.

13 years agoRemove dependency to upstart.
Michael Tremer [Fri, 8 Apr 2011 18:08:13 +0000 (20:08 +0200)] 
Remove dependency to upstart.

13 years agoInitial support for modems (PPP).
Arne Fitzenreiter [Sun, 3 Apr 2011 19:00:08 +0000 (19:00 +0000)] 
Initial support for modems (PPP).

Works for 3G/UMTS/CDMA and serial modems.

13 years agoInitial support for encrypted wireless networks.
Arne Fitzenreiter [Sun, 3 Apr 2011 14:04:22 +0000 (14:04 +0000)] 
Initial support for encrypted wireless networks.

Done at the developer meeting at Erkrath.

13 years agoFix weird device CLI command.
Michael Tremer [Sat, 12 Mar 2011 11:07:32 +0000 (11:07 +0000)] 
Fix weird device CLI command.

For now, discover and show are supported.

42 years agoipv[46]-static: Sum up some functions.
Michael Tremer [Mon, 14 Sep 1981 17:56:44 +0000 (17:56 +0000)] 
ipv[46]-static: Sum up some functions.

I packed some functions together that were kinda redundant
for both protocols. Plus a lot of bug fixing.

42 years agoMake versioning of IP protocols more modular.
Michael Tremer [Mon, 14 Sep 1981 16:12:37 +0000 (16:12 +0000)] 
Make versioning of IP protocols more modular.

42 years agobridge: Automatically enable promisc mode.
Michael Tremer [Mon, 14 Sep 1981 02:13:37 +0000 (02:13 +0000)] 
bridge: Automatically enable promisc mode.

There is (maybe) a bug in the linux kernel that
we need to set every bridge into promisc mode to
get traffic out through the bridges.

13 years agoFix error in Makefile.
Michael Tremer [Sat, 9 Oct 2010 22:02:07 +0000 (00:02 +0200)] 
Fix error in Makefile.

13 years agoAdd Makefile.
Michael Tremer [Sat, 9 Oct 2010 19:21:50 +0000 (21:21 +0200)] 
Add Makefile.

13 years agoAdd README.
Michael Tremer [Sat, 9 Oct 2010 18:57:54 +0000 (20:57 +0200)] 
Add README.

13 years agonetwork: Fix duplicate check.
Michael Tremer [Sat, 31 Jul 2010 18:52:29 +0000 (20:52 +0200)] 
network: Fix duplicate check.

13 years agonetwork: Some more general IP functions.
Michael Tremer [Sat, 31 Jul 2010 10:57:00 +0000 (12:57 +0200)] 
network: Some more general IP functions.

13 years agonetwork: Improve IPV4 support.
Michael Tremer [Sat, 31 Jul 2010 10:55:15 +0000 (12:55 +0200)] 
network: Improve IPV4 support.

  Add support for duplicate IP addresses in network.
  Announce new address to neighbours.

13 years agonetwork: Initialize the IPv6 stack.
Michael Tremer [Sat, 31 Jul 2010 10:53:20 +0000 (12:53 +0200)] 
network: Initialize the IPv6 stack.

13 years agonetwork: Add new check for ethernet devices.
Michael Tremer [Sat, 31 Jul 2010 10:52:29 +0000 (12:52 +0200)] 
network: Add new check for ethernet devices.

13 years agonetwork: Initial support for IPv6 tunnels with aiccu.
Michael Tremer [Thu, 29 Jul 2010 19:53:48 +0000 (21:53 +0200)] 
network: Initial support for IPv6 tunnels with aiccu.

13 years agonetwork: Updated stp framework.
Michael Tremer [Thu, 29 Jul 2010 12:43:26 +0000 (14:43 +0200)] 
network: Updated stp framework.

Add support for 802.1d.

13 years agonetwork: Change configuration variables of hook 'virtual' to make clearer what they do.
Michael Tremer [Sun, 25 Jul 2010 16:43:20 +0000 (18:43 +0200)] 
network: Change configuration variables of hook 'virtual' to make clearer what they do.

13 years agonetwork: Change name of access point devices to apN.
Michael Tremer [Sun, 25 Jul 2010 16:29:45 +0000 (18:29 +0200)] 
network: Change name of access point devices to apN.

13 years agonetwork: Add some sanity checks when removing a port.
Michael Tremer [Sun, 25 Jul 2010 16:28:35 +0000 (18:28 +0200)] 
network: Add some sanity checks when removing a port.

13 years agonetwork: Some code cleanup.
Michael Tremer [Sun, 25 Jul 2010 12:59:05 +0000 (14:59 +0200)] 
network: Some code cleanup.

13 years agonetwork: Experimental support for wireless access points.
Michael Tremer [Sun, 25 Jul 2010 12:17:13 +0000 (14:17 +0200)] 
network: Experimental support for wireless access points.

13 years agonetwork: STP: Make protocol version configureable.
Michael Tremer [Fri, 23 Jul 2010 22:38:07 +0000 (00:38 +0200)] 
network: STP: Make protocol version configureable.

13 years agonetwork: Remove deprecated functions.
Michael Tremer [Fri, 23 Jul 2010 13:31:11 +0000 (15:31 +0200)] 
network: Remove deprecated functions.

13 years agonetwork: Automatically create all ethernet ports.
Michael Tremer [Fri, 23 Jul 2010 13:10:58 +0000 (15:10 +0200)] 
network: Automatically create all ethernet ports.

13 years agonetwork: Do initial configuration once at boot time.
Michael Tremer [Fri, 23 Jul 2010 11:40:27 +0000 (13:40 +0200)] 
network: Do initial configuration once at boot time.

13 years agonetwork: ipv4-static: Apply gateway settings.
Michael Tremer [Wed, 21 Jul 2010 18:30:31 +0000 (20:30 +0200)] 
network: ipv4-static: Apply gateway settings.

13 years agonetwork: Init ppp when running network.
Michael Tremer [Wed, 21 Jul 2010 15:45:51 +0000 (17:45 +0200)] 
network: Init ppp when running network.

13 years agonetwork: Logging changes on ip-updown.
Michael Tremer [Sun, 18 Jul 2010 21:06:45 +0000 (23:06 +0200)] 
network: Logging changes on ip-updown.

pppd will not be able to print any error messages
so we use assert which will dump a possible error
to the log file.

13 years agonetwork: Some work on configuration code.
Michael Tremer [Sat, 17 Jul 2010 13:16:12 +0000 (15:16 +0200)] 
network: Some work on configuration code.

13 years agonetwrk: Remove unused function.
Michael Tremer [Sat, 17 Jul 2010 08:49:43 +0000 (10:49 +0200)] 
netwrk: Remove unused function.

13 years agonetwork: Replace listsort by a function that doesn't use /usr/bin/sort.
Michael Tremer [Sat, 17 Jul 2010 08:45:58 +0000 (10:45 +0200)] 
network: Replace listsort by a function that doesn't use /usr/bin/sort.

13 years agonetwork: Code cleanup.
Michael Tremer [Sat, 17 Jul 2010 08:12:35 +0000 (10:12 +0200)] 
network: Code cleanup.

We cannot use sort.
There was an unknown function. Don't know if we must keep it.

13 years agonetwork: Optimize help function.
Michael Tremer [Fri, 16 Jul 2010 17:50:10 +0000 (19:50 +0200)] 
network: Optimize help function.

13 years agonetwork: Add reset option.
Michael Tremer [Fri, 16 Jul 2010 16:15:24 +0000 (18:15 +0200)] 
network: Add reset option.

13 years agonetwork: Oops. Forgot some files.
Michael Tremer [Sun, 11 Jul 2010 16:37:10 +0000 (18:37 +0200)] 
network: Oops. Forgot some files.

13 years agonetwork: Initialize bonding at start.
Michael Tremer [Sat, 10 Jul 2010 18:07:59 +0000 (20:07 +0200)] 
network: Initialize bonding at start.

13 years agonetwork: Add possibility to remove ports from zone of type bridge.
Michael Tremer [Sat, 10 Jul 2010 17:56:44 +0000 (19:56 +0200)] 
network: Add possibility to remove ports from zone of type bridge.

13 years agonetwork: Add some more checks if detatching a device from a bridge.
Michael Tremer [Sat, 10 Jul 2010 17:56:23 +0000 (19:56 +0200)] 
network: Add some more checks if detatching a device from a bridge.

13 years agonetwork: Add some initialization handlers.
Michael Tremer [Sat, 10 Jul 2010 17:37:43 +0000 (19:37 +0200)] 
network: Add some initialization handlers.