]>
git.ipfire.org Git - people/ms/network.git/log
Michael Tremer [Fri, 25 May 2012 12:06:57 +0000 (12:06 +0000)]
bridge-stp: Update script to work with newer versions of mstpd.
Michael Tremer [Fri, 25 May 2012 09:24:54 +0000 (09:24 +0000)]
Remove a lot of 'devicify' calls to increase speed of code.
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.
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.
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.
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.
Michael Tremer [Thu, 17 May 2012 18:30:29 +0000 (18:30 +0000)]
Fix syntax error.
I sometimes hate merges.
Michael Tremer [Thu, 17 May 2012 15:30:26 +0000 (15:30 +0000)]
Merge remote-tracking branch 'ms/isdn'
Michael Tremer [Thu, 17 May 2012 15:28:27 +0000 (15:28 +0000)]
Merge remote-tracking branch 'stevee/UsrMove'
Michael Tremer [Thu, 17 May 2012 15:23:58 +0000 (15:23 +0000)]
Add basic support as a DHCP client.
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.
Michael Tremer [Tue, 1 May 2012 13:50:38 +0000 (13:50 +0000)]
Update paths to match a modern filesystem layout.
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.
Michael Tremer [Mon, 12 Dec 2011 12:56:17 +0000 (12:56 +0000)]
STP: Remove sed substitutions and get information directly from mstpctl.
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>
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.
Michael Tremer [Sat, 19 Nov 2011 20:23:01 +0000 (20:23 +0000)]
stp: Complete 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.
Michael Tremer [Fri, 18 Nov 2011 15:08:01 +0000 (15:08 +0000)]
bridge-stp: Use internal service functions for controlling mstpd.
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.
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
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.
Michael Tremer [Mon, 31 Oct 2011 21:47:31 +0000 (21:47 +0000)]
Fix reading DEBUG option from configuration file.
Michael Tremer [Mon, 31 Oct 2011 19:41:49 +0000 (19:41 +0000)]
Bump version to 003.
Michael Tremer [Mon, 31 Oct 2011 19:40:29 +0000 (19:40 +0000)]
Fix setting local routes on zone's routing tables.
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.
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.
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.
Michael Tremer [Sun, 7 Aug 2011 08:55:11 +0000 (08:55 +0000)]
Install sysctl files in /lib/sysctl.d.
Michael Tremer [Sun, 7 Aug 2011 08:53:55 +0000 (08:53 +0000)]
Add script to create radvd configuration file on the fly.
Michael Tremer [Sat, 6 Aug 2011 08:25:09 +0000 (10:25 +0200)]
Properly install /etc/network/{ports,zones}.
Michael Tremer [Wed, 3 Aug 2011 17:18:10 +0000 (17:18 +0000)]
Bump version to 002.
Michael Tremer [Wed, 3 Aug 2011 17:17:24 +0000 (17:17 +0000)]
Add hotplugging for ethernet devices.
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.
Michael Tremer [Wed, 3 Aug 2011 14:52:58 +0000 (14:52 +0000)]
Add automatic renaming of hotplugged devices.
Fixes #183.
Michael Tremer [Wed, 3 Aug 2011 14:49:26 +0000 (14:49 +0000)]
wireless-ap: Fix saving channel.
root [Wed, 3 Aug 2011 13:28:39 +0000 (13:28 +0000)]
Merge remote branch 'origin/hotplug'
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.
Michael Tremer [Fri, 29 Jul 2011 17:39:02 +0000 (17:39 +0000)]
Merge branch 'master' of git://git.ipfire.org/network
Michael Tremer [Fri, 29 Jul 2011 17:38:46 +0000 (17:38 +0000)]
Fix setting of default routes.
Michael Tremer [Sun, 24 Jul 2011 22:22:08 +0000 (22:22 +0000)]
bridge: Fix reading of zone configuration.
Stefan Schantl [Sun, 17 Jul 2011 12:51:50 +0000 (14:51 +0200)]
hostapd should be monitored by systemd.
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.
Michael Tremer [Sat, 11 Jun 2011 14:43:44 +0000 (14:43 +0000)]
Add support for automatic configuration of radvd.
Michael Tremer [Thu, 9 Jun 2011 22:17:39 +0000 (22:17 +0000)]
Enable IPv6 packet forwarding.
Michael Tremer [Thu, 9 Jun 2011 21:42:27 +0000 (21:42 +0000)]
Fix routing for ipv6-static hook.
Michael Tremer [Sat, 4 Jun 2011 19:37:15 +0000 (19:37 +0000)]
Add sysctl files to configure the kernel for network.
Michael Tremer [Sat, 4 Jun 2011 15:05:40 +0000 (15:05 +0000)]
Add IPv6 support for pppoe.
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.
Michael Tremer [Fri, 3 Jun 2011 19:54:41 +0000 (19:54 +0000)]
Remove red_db_* functions.
Michael Tremer [Thu, 26 May 2011 15:52:50 +0000 (15:52 +0000)]
Some fixes when STP is disabled.
Michael Tremer [Thu, 26 May 2011 15:48:32 +0000 (15:48 +0000)]
Remove redundant logging.
Michael Tremer [Wed, 25 May 2011 15:11:22 +0000 (15:11 +0000)]
hotplug: Return port name for a device.
Michael Tremer [Wed, 25 May 2011 14:13:04 +0000 (14:13 +0000)]
routing: Create routing database and set routes for ipv4.
Michael Tremer [Sun, 22 May 2011 12:38:44 +0000 (12:38 +0000)]
Enhance logging with colors and output to stderr.
Michael Tremer [Sat, 30 Apr 2011 12:20:16 +0000 (12:20 +0000)]
Add support to set the hostname.
Compatible with systemd.
Michael Tremer [Fri, 8 Apr 2011 18:08:13 +0000 (20:08 +0200)]
Remove dependency to upstart.
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.
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.
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.
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.
Michael Tremer [Mon, 14 Sep 1981 16:12:37 +0000 (16:12 +0000)]
Make versioning of IP protocols more modular.
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.
Michael Tremer [Sat, 9 Oct 2010 22:02:07 +0000 (00:02 +0200)]
Fix error in Makefile.
Michael Tremer [Sat, 9 Oct 2010 19:21:50 +0000 (21:21 +0200)]
Add Makefile.
Michael Tremer [Sat, 9 Oct 2010 18:57:54 +0000 (20:57 +0200)]
Add README.
Michael Tremer [Sat, 31 Jul 2010 18:52:29 +0000 (20:52 +0200)]
network: Fix duplicate check.
Michael Tremer [Sat, 31 Jul 2010 10:57:00 +0000 (12:57 +0200)]
network: Some more general IP functions.
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.
Michael Tremer [Sat, 31 Jul 2010 10:53:20 +0000 (12:53 +0200)]
network: Initialize the IPv6 stack.
Michael Tremer [Sat, 31 Jul 2010 10:52:29 +0000 (12:52 +0200)]
network: Add new check for ethernet devices.
Michael Tremer [Thu, 29 Jul 2010 19:53:48 +0000 (21:53 +0200)]
network: Initial support for IPv6 tunnels with aiccu.
Michael Tremer [Thu, 29 Jul 2010 12:43:26 +0000 (14:43 +0200)]
network: Updated stp framework.
Add support for 802.1d.
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.
Michael Tremer [Sun, 25 Jul 2010 16:29:45 +0000 (18:29 +0200)]
network: Change name of access point devices to apN.
Michael Tremer [Sun, 25 Jul 2010 16:28:35 +0000 (18:28 +0200)]
network: Add some sanity checks when removing a port.
Michael Tremer [Sun, 25 Jul 2010 12:59:05 +0000 (14:59 +0200)]
network: Some code cleanup.
Michael Tremer [Sun, 25 Jul 2010 12:17:13 +0000 (14:17 +0200)]
network: Experimental support for wireless access points.
Michael Tremer [Fri, 23 Jul 2010 22:38:07 +0000 (00:38 +0200)]
network: STP: Make protocol version configureable.
Michael Tremer [Fri, 23 Jul 2010 13:31:11 +0000 (15:31 +0200)]
network: Remove deprecated functions.
Michael Tremer [Fri, 23 Jul 2010 13:10:58 +0000 (15:10 +0200)]
network: Automatically create all ethernet ports.
Michael Tremer [Fri, 23 Jul 2010 11:40:27 +0000 (13:40 +0200)]
network: Do initial configuration once at boot time.
Michael Tremer [Wed, 21 Jul 2010 18:30:31 +0000 (20:30 +0200)]
network: ipv4-static: Apply gateway settings.
Michael Tremer [Wed, 21 Jul 2010 15:45:51 +0000 (17:45 +0200)]
network: Init ppp when running network.
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.
Michael Tremer [Sat, 17 Jul 2010 13:16:12 +0000 (15:16 +0200)]
network: Some work on configuration code.
Michael Tremer [Sat, 17 Jul 2010 08:49:43 +0000 (10:49 +0200)]
netwrk: Remove unused function.
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.
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.
Michael Tremer [Fri, 16 Jul 2010 17:50:10 +0000 (19:50 +0200)]
network: Optimize help function.
Michael Tremer [Fri, 16 Jul 2010 16:15:24 +0000 (18:15 +0200)]
network: Add reset option.
Michael Tremer [Sun, 11 Jul 2010 16:37:10 +0000 (18:37 +0200)]
network: Oops. Forgot some files.
Michael Tremer [Sat, 10 Jul 2010 18:07:59 +0000 (20:07 +0200)]
network: Initialize bonding at start.
Michael Tremer [Sat, 10 Jul 2010 17:56:44 +0000 (19:56 +0200)]
network: Add possibility to remove ports from zone of type 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.
Michael Tremer [Sat, 10 Jul 2010 17:37:43 +0000 (19:37 +0200)]
network: Add some initialization handlers.
Michael Tremer [Sat, 10 Jul 2010 17:33:39 +0000 (19:33 +0200)]
network: Move virtual functions to seperate file and rename them.
Michael Tremer [Sat, 10 Jul 2010 17:21:23 +0000 (19:21 +0200)]
network: Put bridge functions into extra file.
Michael Tremer [Sat, 10 Jul 2010 17:15:55 +0000 (19:15 +0200)]
network: Fix bridge functions.
Michael Tremer [Sat, 10 Jul 2010 16:59:41 +0000 (18:59 +0200)]
network: Proper exit codes for bridge hook.