people/ms/network.git
11 months agowireless-ap: Allow to enable/disable 802.11w Management Frame Protection
Michael Tremer [Fri, 22 Mar 2019 11:27:38 +0000 (12:27 +0100)] 
wireless-ap: Allow to enable/disable 802.11w Management Frame Protection

This is disabled by default, because loads of stations have issues
associating with an AP that has 802.11w enabled.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
11 months agohostapd: Always qoute SSID
Michael Tremer [Fri, 22 Mar 2019 11:08:08 +0000 (12:08 +0100)] 
hostapd: Always qoute SSID

hostapd has a new parameter that always allows us to set
the SSID as a quoted UTF8 string

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
11 months agohostapd: Kick stations that are too far away
Michael Tremer [Fri, 22 Mar 2019 11:02:46 +0000 (12:02 +0100)] 
hostapd: Kick stations that are too far away

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
11 months agohostapd: Set default WMM settings
Michael Tremer [Fri, 22 Mar 2019 11:02:25 +0000 (12:02 +0100)] 
hostapd: Set default WMM settings

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
11 months agohostapd: Always enable Transmit Power Control
Michael Tremer [Fri, 22 Mar 2019 10:45:03 +0000 (11:45 +0100)] 
hostapd: Always enable Transmit Power Control

Also advertise this to clients

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
11 months agohostapd: Remove now useless comment
Michael Tremer [Fri, 22 Mar 2019 10:40:32 +0000 (11:40 +0100)] 
hostapd: Remove now useless comment

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
11 months agowireless-ap: Allow setting the wireless environment (indoor/outdoor)
Michael Tremer [Thu, 21 Mar 2019 21:14:43 +0000 (22:14 +0100)] 
wireless-ap: Allow setting the wireless environment (indoor/outdoor)

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
11 months agowireless-ap: Enable ACS only for ath* devices
Michael Tremer [Thu, 21 Mar 2019 19:22:56 +0000 (20:22 +0100)] 
wireless-ap: Enable ACS only for ath* devices

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
11 months agohostapd: Apply channel bandwidth to configuration
Michael Tremer [Mon, 18 Mar 2019 20:24:02 +0000 (21:24 +0100)] 
hostapd: Apply channel bandwidth to configuration

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
11 months agowireless-ap: Forgot to add configuration variables to file
Michael Tremer [Mon, 18 Mar 2019 20:21:37 +0000 (21:21 +0100)] 
wireless-ap: Forgot to add configuration variables to file

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
11 months agowireless-ap: Add CLI to set channel bandwidth
Michael Tremer [Mon, 18 Mar 2019 19:50:44 +0000 (20:50 +0100)] 
wireless-ap: Add CLI to set channel bandwidth

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
11 months agohostapd: Disable DFS automatically when not supported by hardware
Michael Tremer [Mon, 18 Mar 2019 19:10:56 +0000 (20:10 +0100)] 
hostapd: Disable DFS automatically when not supported by hardware

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
11 months agowireless-ap: Allow to disable DFS in configuration
Michael Tremer [Mon, 18 Mar 2019 18:58:25 +0000 (19:58 +0100)] 
wireless-ap: Allow to disable DFS in configuration

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
11 months agowireless-ap: Use automatic channel selection (ACS) by default
Michael Tremer [Mon, 18 Mar 2019 18:46:06 +0000 (19:46 +0100)] 
wireless-ap: Use automatic channel selection (ACS) by default

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
12 months agodns: Always enable EDNS0
Michael Tremer [Wed, 13 Feb 2019 17:45:05 +0000 (17:45 +0000)] 
dns: Always enable EDNS0

This is for all DNS queries originating from the firewall.

Since we have had DNS Flag Day, we are expecting all DNS servers
to support this now. If not, then you are very unlucky.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
14 months agobird: (Re-)generate configuration when network is initialised
Michael Tremer [Sun, 16 Dec 2018 17:55:25 +0000 (17:55 +0000)] 
bird: (Re-)generate configuration when network is initialised

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
14 months agobird: Apply static routes instead of doing that manually with ip
Michael Tremer [Sun, 16 Dec 2018 17:47:57 +0000 (17:47 +0000)] 
bird: Apply static routes instead of doing that manually with ip

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
14 months agobird: Add some generic configuration file
Michael Tremer [Sun, 16 Dec 2018 17:10:47 +0000 (17:10 +0000)] 
bird: Add some generic configuration file

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
14 months agoip-tunnel: Set TTL to 255 by default
Michael Tremer [Mon, 3 Dec 2018 12:38:13 +0000 (13:38 +0100)] 
ip-tunnel: Set TTL to 255 by default

By default, the Linux kernel inherits the TTL of the transported
packet. Usually with BGP, the TTL is deliberately set to 1 or very
low numbers which causes the packet to be dropped after the first
hop.

Since the tunnel should be routed, we set this to a default value
of 255 and ignore the TTL of the encapsulated packet.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
16 months agobonding; Validate any MAC address passed
Michael Tremer [Sun, 30 Sep 2018 23:02:27 +0000 (01:02 +0200)] 
bonding; Validate any MAC address passed

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
16 months agoRemove unused function
Michael Tremer [Sun, 30 Sep 2018 22:07:37 +0000 (00:07 +0200)] 
Remove unused function

Fixes: #11423
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
16 months agobridge: Add option to missing --stp-max-age=
Michael Tremer [Mon, 24 Sep 2018 21:32:40 +0000 (23:32 +0200)] 
bridge: Add option to missing --stp-max-age=

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
16 months agobridge: Order arguments in alphabetical order
Michael Tremer [Mon, 24 Sep 2018 21:31:43 +0000 (23:31 +0200)] 
bridge: Order arguments in alphabetical order

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
16 months agobridge: Set proper defaults
Michael Tremer [Mon, 24 Sep 2018 21:29:25 +0000 (23:29 +0200)] 
bridge: Set proper defaults

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
16 months agobridge: Reorder functions into the common order
Michael Tremer [Mon, 24 Sep 2018 21:17:30 +0000 (23:17 +0200)] 
bridge: Reorder functions into the common order

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
16 months agobridge: Fix assertion for MTU
Michael Tremer [Mon, 24 Sep 2018 21:15:26 +0000 (23:15 +0200)] 
bridge: Fix assertion for MTU

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
16 months agobridge: Check input and return useful errors
Michael Tremer [Mon, 24 Sep 2018 21:13:22 +0000 (23:13 +0200)] 
bridge: Check input and return useful errors

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
16 months agoBump version to 011
Michael Tremer [Mon, 24 Sep 2018 20:55:51 +0000 (21:55 +0100)] 
Bump version to 011

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
16 months agoBump version to 010 010
Michael Tremer [Mon, 24 Sep 2018 20:54:39 +0000 (21:54 +0100)] 
Bump version to 010

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
16 months agoipsec: security policies: system: Order by complexity
Michael Tremer [Sun, 23 Sep 2018 23:21:45 +0000 (01:21 +0200)] 
ipsec: security policies: system: Order by complexity

strongswan uses the cipher suites in the order as listed by first
match instead of complexity. This patch re-orders them so that
maximum complexity is tried first and everything else after.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
16 months agoipsec: Set traffic selectors to all when using GRE/VTI devices
Michael Tremer [Sun, 23 Sep 2018 23:14:59 +0000 (01:14 +0200)] 
ipsec: Set traffic selectors to all when using GRE/VTI devices

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
16 months agoport: ip-tunnel: Allow to set MAC address
Michael Tremer [Sun, 23 Sep 2018 22:28:40 +0000 (00:28 +0200)] 
port: ip-tunnel: Allow to set MAC address

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
16 months agoports: Use default port pattern for all ports
Michael Tremer [Sun, 23 Sep 2018 20:22:20 +0000 (22:22 +0200)] 
ports: Use default port pattern for all ports

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
16 months agoip-tunnel: New port hook
Michael Tremer [Sun, 23 Sep 2018 19:18:09 +0000 (21:18 +0200)] 
ip-tunnel: New port hook

This allows to create layer-2 tunnels using the GRETAP protocol

Fixes: #11608
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
16 months agoip-tunnel: Add support for GRETAP tunnels
Michael Tremer [Sun, 23 Sep 2018 19:17:10 +0000 (21:17 +0200)] 
ip-tunnel: Add support for GRETAP tunnels

Fixes: 11608
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
16 months agohotplug: Do not attempt to rename any devices with an invalid MAC address
Michael Tremer [Sun, 23 Sep 2018 18:34:59 +0000 (20:34 +0200)] 
hotplug: Do not attempt to rename any devices with an invalid MAC address

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
16 months agoDo not allow to create ethernet devices with an invalid MAC address
Michael Tremer [Sun, 23 Sep 2018 18:25:15 +0000 (20:25 +0200)] 
Do not allow to create ethernet devices with an invalid MAC address

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
16 months agonetwork-hotplug: Try to use fewer checks when deleting a device
Michael Tremer [Sun, 23 Sep 2018 18:06:42 +0000 (20:06 +0200)] 
network-hotplug: Try to use fewer checks when deleting a device

This code basically does the same but runs fewer checks to
find the right device type

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
16 months agohotplug: Handle special devices by name only
Michael Tremer [Sun, 23 Sep 2018 18:01:25 +0000 (20:01 +0200)] 
hotplug: Handle special devices by name only

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
16 months agohotplug: Do not attempt to remove the special ip6gre0 device
Michael Tremer [Sun, 23 Sep 2018 17:55:37 +0000 (19:55 +0200)] 
hotplug: Do not attempt to remove the special ip6gre0 device

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
16 months agohotplug: Do not attempt to remove special device ip_vti0
Michael Tremer [Sun, 23 Sep 2018 17:52:49 +0000 (19:52 +0200)] 
hotplug: Do not attempt to remove special device ip_vti0

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
16 months agohotplug: Don't try to remove gre0
Michael Tremer [Sun, 23 Sep 2018 17:51:26 +0000 (19:51 +0200)] 
hotplug: Don't try to remove gre0

This device cannot be removed

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
16 months agoDrop unused function: device_is_ipsec
Michael Tremer [Sun, 23 Sep 2018 17:48:10 +0000 (19:48 +0200)] 
Drop unused function: device_is_ipsec

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
16 months agodevice: Refactor check for device type
Michael Tremer [Sun, 23 Sep 2018 17:47:27 +0000 (19:47 +0200)] 
device: Refactor check for device type

There is now one implementation for various types of devices

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
16 months agoCleanup code that deletes ports/zones
Michael Tremer [Sun, 23 Sep 2018 17:30:11 +0000 (19:30 +0200)] 
Cleanup code that deletes ports/zones

This is used for network reset and it wasn't clear
before if the command were successful

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
16 months agohotplug: Ignore all PPP interfaces
Michael Tremer [Sun, 23 Sep 2018 16:13:07 +0000 (18:13 +0200)] 
hotplug: Ignore all PPP interfaces

Those will come up when a PPP session is being established
with the pppoe-server.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
16 months agolock: Accept names instead of paths
Michael Tremer [Sun, 23 Sep 2018 16:04:46 +0000 (18:04 +0200)] 
lock: Accept names instead of paths

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
16 months agoutil: Parse command line correctly when running commands
Michael Tremer [Sun, 23 Sep 2018 15:53:46 +0000 (17:53 +0200)] 
util: Parse command line correctly when running commands

Before, empty arguments where just dropped

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
16 months agopppoe-server: Remove line to enable kernel mode
Michael Tremer [Sun, 23 Sep 2018 15:31:23 +0000 (17:31 +0200)] 
pppoe-server: Remove line to enable kernel mode

This is enabled anyways since it is the only mode
we are supporting right now.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
16 months agopppoe-server: Refactor pppoe_server_poolfile
Michael Tremer [Sun, 23 Sep 2018 15:30:29 +0000 (17:30 +0200)] 
pppoe-server: Refactor pppoe_server_poolfile

Due to output of other functions changed, this function
needed to be slightly rewritten.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
16 months agoipv4: Fix ipv4_range_explicit function
Michael Tremer [Sun, 23 Sep 2018 15:29:41 +0000 (17:29 +0200)] 
ipv4: Fix ipv4_range_explicit function

Inputs where not converted correctly and therefore
the function returned an invalid output.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
16 months agoRemove debugging line
Michael Tremer [Sun, 23 Sep 2018 14:31:39 +0000 (16:31 +0200)] 
Remove debugging line

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
16 months agowireless: Try to automatically enable HT40+/- on devices that support it
Michael Tremer [Sun, 23 Sep 2018 14:30:29 +0000 (16:30 +0200)] 
wireless: Try to automatically enable HT40+/- on devices that support it

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
16 months agocopy: Automatically create target directory when copying files
Michael Tremer [Sun, 23 Sep 2018 13:27:41 +0000 (15:27 +0200)] 
copy: Automatically create target directory when copying files

Fixes: #11663

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
16 months agolibnetwork: Add function to check if a PHY supports a specific channel
Michael Tremer [Sun, 23 Sep 2018 00:44:37 +0000 (02:44 +0200)] 
libnetwork: Add function to check if a PHY supports a specific channel

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
16 months agoShow driver name in device status
Michael Tremer [Sat, 22 Sep 2018 15:33:20 +0000 (16:33 +0100)] 
Show driver name in device status

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
16 months agocolors: Fix length of LISTENING label
Michael Tremer [Sat, 22 Sep 2018 14:24:23 +0000 (15:24 +0100)] 
colors: Fix length of LISTENING label

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
16 months agohotplug: Let bridges create their ports in hotplug event
Michael Tremer [Sat, 22 Sep 2018 12:47:44 +0000 (13:47 +0100)] 
hotplug: Let bridges create their ports in hotplug event

This patch changes that all ports are being created in the
hotplug event and allows us to start bridges at any time
with ports existing or being added later.

Fixes: #11360
Signed-off-by: Arne Fitzenreiter <arne.fitzenreiter@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
16 months agoboot: Fix bringing up zones when system is booting
Michael Tremer [Sat, 22 Sep 2018 12:05:46 +0000 (13:05 +0100)] 
boot: Fix bringing up zones when system is booting

An incorrect target was required and no zone was brought
up during boot.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne.fitzenreiter@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
16 months agoutil: Fail silently when directory already exists
Michael Tremer [Sat, 22 Sep 2018 12:05:06 +0000 (13:05 +0100)] 
util: Fail silently when directory already exists

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
16 months agocolors: Remove extra space character in BLOCKING msg
Michael Tremer [Sat, 22 Sep 2018 11:55:10 +0000 (12:55 +0100)] 
colors: Remove extra space character in BLOCKING msg

This message was not properly aligned

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
16 months agoMove creating port configurations into network-hotplug-rename
Michael Tremer [Fri, 21 Sep 2018 21:58:01 +0000 (22:58 +0100)] 
Move creating port configurations into network-hotplug-rename

This script is now actually creating a new configuration while
it is holding the lock.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
16 months agoRefactor network-hotplug-rename
Michael Tremer [Fri, 21 Sep 2018 21:47:17 +0000 (22:47 +0100)] 
Refactor network-hotplug-rename

This is now using a new locking mechanism that is working
faster and more reliable then looping for forever.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
16 months agoport: ethernet: Correctly create new configurations
Michael Tremer [Fri, 21 Sep 2018 15:00:24 +0000 (17:00 +0200)] 
port: ethernet: Correctly create new configurations

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
16 months agoports: Fix saving HOOK name
Michael Tremer [Fri, 21 Sep 2018 14:31:12 +0000 (16:31 +0200)] 
ports: Fix saving HOOK name

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
16 months agoRefactor hotplug script
Michael Tremer [Fri, 21 Sep 2018 14:27:58 +0000 (16:27 +0200)] 
Refactor hotplug script

This script is doing the same as before, but has been refactored
to be cleaner and faster.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
16 months agohotplug: Continue running through script for ipsec devices
Michael Tremer [Fri, 21 Sep 2018 13:44:44 +0000 (15:44 +0200)] 
hotplug: Continue running through script for ipsec devices

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
16 months agozones: Drop unused commands
Michael Tremer [Fri, 21 Sep 2018 13:43:46 +0000 (15:43 +0200)] 
zones: Drop unused commands

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
16 months agoExtend "network status"
Michael Tremer [Fri, 21 Sep 2018 13:19:58 +0000 (15:19 +0200)] 
Extend "network status"

This now takes ports, devices and PHYs and prints the appropriate
status.

This is very handy and just a shortcut.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
16 months agoSpeed up device_list() by removing the alphabetical sort
Michael Tremer [Fri, 21 Sep 2018 13:06:53 +0000 (15:06 +0200)] 
Speed up device_list() by removing the alphabetical sort

We are now returning all devices, then all PHYs, then all
serial devices.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
16 months agoFix generating device_list()
Michael Tremer [Fri, 21 Sep 2018 13:05:21 +0000 (15:05 +0200)] 
Fix generating device_list()

It was returning values like bonding_masters which are not
an actual device.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
16 months agoValidate input for --offloading flag and throw an error when empty
Michael Tremer [Fri, 21 Sep 2018 13:00:44 +0000 (15:00 +0200)] 
Validate input for --offloading flag and throw an error when empty

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
16 months agoports: ethernet+bonding: Allow to disable all offloading
Michael Tremer [Fri, 21 Sep 2018 12:58:39 +0000 (14:58 +0200)] 
ports: ethernet+bonding: Allow to disable all offloading

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
16 months agoMove offloading code into an own file
Michael Tremer [Fri, 21 Sep 2018 12:50:12 +0000 (14:50 +0200)] 
Move offloading code into an own file

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
16 months agoAdd support for hardware offloading
Michael Tremer [Fri, 21 Sep 2018 12:22:39 +0000 (14:22 +0200)] 
Add support for hardware offloading

Hardware offloading will now be enabled on physical
and bonding devices automatically.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
16 months agoMove DEFAULT_MTU to constants
Michael Tremer [Fri, 21 Sep 2018 11:35:30 +0000 (13:35 +0200)] 
Move DEFAULT_MTU to constants

This is where it belongs

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
16 months agoipsec: Rewrite adding routes script
Michael Tremer [Fri, 21 Sep 2018 11:33:33 +0000 (13:33 +0200)] 
ipsec: Rewrite adding routes script

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
16 months agoconstants: Remove unused BATMAN variable
Michael Tremer [Thu, 20 Sep 2018 12:51:36 +0000 (14:51 +0200)] 
constants: Remove unused BATMAN variable

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
17 months agoport: ethernet: Use combined setting for advertised link speeds
Michael Tremer [Thu, 20 Sep 2018 23:18:45 +0000 (00:18 +0100)] 
port: ethernet: Use combined setting for advertised link speeds

This patch removes the speed and duplex settings and replaces them
with a configuration option that allows to change advertised link
speeds to a certain speed.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
17 months agoport: ethernet: Allow setting duplex mode
Michael Tremer [Thu, 20 Sep 2018 22:26:45 +0000 (23:26 +0100)] 
port: ethernet: Allow setting duplex mode

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
17 months agoport: ethernet: Allow setting link speed
Michael Tremer [Thu, 20 Sep 2018 22:19:02 +0000 (23:19 +0100)] 
port: ethernet: Allow setting link speed

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
17 months agoport: ethernet: Bring back accidentially dropped hook_create function
Michael Tremer [Thu, 20 Sep 2018 22:18:04 +0000 (23:18 +0100)] 
port: ethernet: Bring back accidentially dropped hook_create function

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
17 months agoport: ethernet: Return OK only to rename ports
Michael Tremer [Thu, 20 Sep 2018 22:05:00 +0000 (23:05 +0100)] 
port: ethernet: Return OK only to rename ports

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
17 months agoport: ethernet: Use default hook_new() function
Michael Tremer [Thu, 20 Sep 2018 22:04:44 +0000 (23:04 +0100)] 
port: ethernet: Use default hook_new() function

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
17 months agoheader-port: Start with empty set of settings
Michael Tremer [Thu, 20 Sep 2018 22:04:21 +0000 (23:04 +0100)] 
header-port: Start with empty set of settings

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
17 months agoport: ethernet: Allow setting the MTU
Michael Tremer [Thu, 20 Sep 2018 22:01:42 +0000 (23:01 +0100)] 
port: ethernet: Allow setting the MTU

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
17 months agoRestart ports after edit to apply settings
Michael Tremer [Thu, 20 Sep 2018 21:42:54 +0000 (22:42 +0100)] 
Restart ports after edit to apply settings

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
17 months agoheader-port: Print errors if config could not be read/written
Michael Tremer [Thu, 20 Sep 2018 21:35:58 +0000 (22:35 +0100)] 
header-port: Print errors if config could not be read/written

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
17 months agoports: ethernet: Allow changing MAC address
Michael Tremer [Thu, 20 Sep 2018 21:33:07 +0000 (22:33 +0100)] 
ports: ethernet: Allow changing MAC address

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
17 months agoAdd support for LEDs
Michael Tremer [Thu, 20 Sep 2018 21:16:00 +0000 (22:16 +0100)] 
Add support for LEDs

This patch configures LEDs on some Wireless PHYs to flash
on activity. This makes debugging easier.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
17 months agohostapd: Add support for 802.11ac
Michael Tremer [Wed, 19 Sep 2018 16:45:32 +0000 (17:45 +0100)] 
hostapd: Add support for 802.11ac

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
17 months agohostapd: Always enable 802.11d
Michael Tremer [Wed, 19 Sep 2018 15:01:34 +0000 (16:01 +0100)] 
hostapd: Always enable 802.11d

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
17 months agohostapd: Write VHT capabilities to configuration
Michael Tremer [Wed, 19 Sep 2018 14:59:53 +0000 (15:59 +0100)] 
hostapd: Write VHT capabilities to configuration

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
17 months agolibnetwork: Actually store index
Michael Tremer [Wed, 19 Sep 2018 14:56:33 +0000 (15:56 +0100)] 
libnetwork: Actually store index

Index was always zero and therefore only the first PHY could
be queried only.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
17 months agolibnetwork: Remove debug output
Michael Tremer [Wed, 19 Sep 2018 14:46:21 +0000 (15:46 +0100)] 
libnetwork: Remove debug output

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
17 months agolibnetwork: Fix typo in RX-LDPC HT capability
Michael Tremer [Wed, 19 Sep 2018 14:42:20 +0000 (15:42 +0100)] 
libnetwork: Fix typo in RX-LDPC HT capability

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
17 months agolibnetwork: Fix looping though HT capabilities
Michael Tremer [Wed, 19 Sep 2018 14:41:16 +0000 (15:41 +0100)] 
libnetwork: Fix looping though HT capabilities

The last capability was never looped through

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
17 months agoibnetwork: Add command to show available VHT capabilities of phys
Michael Tremer [Wed, 19 Sep 2018 14:39:48 +0000 (15:39 +0100)] 
ibnetwork: Add command to show available VHT capabilities of phys

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
17 months agohostapd: Always enable all HT caps
Michael Tremer [Wed, 19 Sep 2018 13:02:09 +0000 (14:02 +0100)] 
hostapd: Always enable all HT caps

Signed-off-by: Arne Fitzenreiter <arne.fitzenreiter@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
17 months agoip-tunnel: Make --peer optional
Michael Tremer [Wed, 19 Sep 2018 12:10:41 +0000 (14:10 +0200)] 
ip-tunnel: Make --peer optional

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>