Michael Tremer [Sat, 27 Dec 2014 13:32:07 +0000 (13:32 +0000)]
Fix hook settings writing and checking
Formerly the check functions were not correctly called in
some cases. Hence passing the check function is now explicitely
required. The {port,zone}_settings_{read,write} functions do
this transparent to the zone/port hooks.
Michael Tremer [Tue, 23 Dec 2014 00:29:15 +0000 (00:29 +0000)]
Split port hooks in to (create|remove|up|down) actions
The port hooks formerly had two functions that brought the device
up or down. That caused some problems with hotplugging of the zones.
Now the entire process has been split into four functions that
every port hooks has to implement.
create:
Creates the device but does not bring it up yet. This will
usually trigger a hotplug event so that various other port
or zone hooks can attach the device or do similar actions.
up:
Essentially brings up the device, just like:
ip link set devX up
The action should propagate to any slave devices.
down:
Does essentially the opposite of "up" and should propagate
to the slaves as well.
remove:
Removes any virtual devices and cleans up. This will also
trigger a hotplug event so that all connected hooks will
be notified about the removal.
Michael Tremer [Sat, 6 Dec 2014 19:18:37 +0000 (20:18 +0100)]
Remove support for ISDN
ISDN has never been deployed very much
in the world except Germany and some
other countries. Most of them went away
from ISDN to VoIP for telephony and
DSL or fibre for data connections.
The bandwidth is very small with only
64k per channel and this has only been
implemented for backup purposes if the
primary connection cut off. Nowadays
there is mobile connections with much
more bandwidth available for this.
Nobody is able (due to lack of ISDN)
and willing to support this any more.
Hence the entire support for ISDN
is removed.
Michael Tremer [Sat, 6 Sep 2014 11:15:59 +0000 (13:15 +0200)]
device: Rewrite batman-adv-port detection
When the batman-adv module is loaded, the batman_adv
subdirectory can be found in the sys tree of every network
device, so this check returned positive for every device.
The function has been rewritten to read the content of the
status file which will return the correct result.
Michael Tremer [Sat, 6 Sep 2014 09:54:04 +0000 (11:54 +0200)]
Let hotplug handlers return a status code
After a port has been hotplugged, we will walk through all
port configuration files and check if the device matches.
The hooks must now return whether they have handled the event
so that we can stop searching or not.
Michael Tremer [Sun, 31 Aug 2014 15:38:05 +0000 (17:38 +0200)]
Fix installation of bridge-stp helper
When make install was executed multiple times, the install hook
created a recursive symlink. Now the old link gets removed and
the correct symlink will be created.
Michael Tremer [Wed, 27 Aug 2014 10:12:13 +0000 (12:12 +0200)]
Remove batman-adv zones
BATMAN networks are usually switched and not routed so this
hook is not necessary any more. If you want to route them any
way you can simply create a zone with only one batman-adv port.
Michael Tremer [Tue, 26 Aug 2014 09:22:52 +0000 (11:22 +0200)]
batman-adv-port: Increase MTU to 1560 as suggested by the batman guys
"The MTU of interface batp0 is too small (1528) to handle the transport
of batman-adv packets. Packets going over this interface will be
fragmented on layer2 which could impact the performance.
Setting the MTU to 1560 would solve the problem."
Michael Tremer [Sun, 19 May 2013 17:33:33 +0000 (19:33 +0200)]
Add whitelist of serial USB devices.
If you connect a USB serial adapter to the system, it
will automatically be checked if it is a modem.
We do that by sending AT commands to them and wait for a
response. Some devices that are not a modem may get confused
by that, so we whitelist them here.
Stefan Schantl [Sun, 19 May 2013 14:18:40 +0000 (16:18 +0200)]
Introduce enable/disable option for network zones.
In the past all network zones have been started during the boot processs of the system,
even if they cannot be started because for example the required device is missing.
From now it will be possible to enable or disable network zones for startup. We use the systemd
network.target to set which zones should be started.