]>
git.ipfire.org Git - people/ms/network.git/log
Jonatan Schlag [Thu, 3 Aug 2017 09:26:53 +0000 (09:26 +0000)]
Fix typo
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Thu, 3 Aug 2017 09:26:14 +0000 (09:26 +0000)]
wpa_supplication: Correctly escape SSIDs with spaces
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Mon, 31 Jul 2017 09:28:33 +0000 (11:28 +0200)]
vti: Disable policy lookups for VTI devices
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Mon, 31 Jul 2017 09:12:02 +0000 (11:12 +0200)]
ipsec: Check PSK for a good length
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sun, 30 Jul 2017 17:02:15 +0000 (19:02 +0200)]
ipsec: Fix typo in warning message
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sun, 30 Jul 2017 17:01:11 +0000 (19:01 +0200)]
ipsec: Fix another shell syntax error
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sun, 30 Jul 2017 17:00:42 +0000 (19:00 +0200)]
ipsec: Always make value of AUTH_MODE uppercase
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sun, 30 Jul 2017 16:30:34 +0000 (18:30 +0200)]
ipsec: Add connection show command
This shows the current configuration of a connection
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sun, 30 Jul 2017 16:29:44 +0000 (18:29 +0200)]
ipsec: Fix another bash syntax error
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sun, 30 Jul 2017 13:37:15 +0000 (15:37 +0200)]
ipsec: Fix typo
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sun, 30 Jul 2017 13:29:13 +0000 (15:29 +0200)]
ipsec: Move connections to /etc/network/vpn/ipsec/connections
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sun, 30 Jul 2017 13:24:46 +0000 (15:24 +0200)]
Makefile: Fix alphabetical order
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sun, 30 Jul 2017 13:24:12 +0000 (15:24 +0200)]
vpn: Move VPN CLI functions into separate files
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sun, 30 Jul 2017 13:14:58 +0000 (15:14 +0200)]
route: Move CLI functions into functions file
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Jonatan Schlag [Sat, 29 Jul 2017 08:39:37 +0000 (10:39 +0200)]
network: add new ipsec functionality
Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Jonatan Schlag [Sat, 29 Jul 2017 08:39:36 +0000 (10:39 +0200)]
ipsec: add new functions
Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Jonatan Schlag [Thu, 27 Jul 2017 12:07:01 +0000 (14:07 +0200)]
config hook: prevent two hooks with the same settings
A ipv4-static config with the same IPv4 address twice is senseless.
A new function zone_config_check_same_setting is introduced.
The function provides an easy way to check if a config
of the given hook has the same value for a given key.
We can now check inside hook_new if an ipv4-static or ipv6-static config
with the same value exist and break with an error.
Fixes: #11418
Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Jonatan Schlag [Wed, 26 Jul 2017 08:44:44 +0000 (10:44 +0200)]
autocompletion: use hids instead of ids
Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Jonatan Schlag [Wed, 26 Jul 2017 08:44:43 +0000 (10:44 +0200)]
raw: add command zone-config-hid-is-valid
Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Jonatan Schlag [Wed, 26 Jul 2017 08:44:42 +0000 (10:44 +0200)]
raw: add command list-zone-config-hids
Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Jonatan Schlag [Wed, 26 Jul 2017 08:44:41 +0000 (10:44 +0200)]
header-config: add generic hook_hid function
This function will always be there so when we call hook_hid we will get a result.
This is also nice for testing.
Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Jonatan Schlag [Wed, 26 Jul 2017 08:44:40 +0000 (10:44 +0200)]
hook: also hook_hid is a valid command
Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Jonatan Schlag [Wed, 26 Jul 2017 08:44:39 +0000 (10:44 +0200)]
zone: config list print also hids
Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Jonatan Schlag [Wed, 26 Jul 2017 08:44:38 +0000 (10:44 +0200)]
zone: accept also hids in zone_config()
Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Jonatan Schlag [Wed, 26 Jul 2017 08:44:37 +0000 (10:44 +0200)]
zone: add config hid functions
These are the basic functions to work with hids.
Fixes: #11406
Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Jonatan Schlag [Fri, 14 Jul 2017 12:19:42 +0000 (14:19 +0200)]
header-zone: refactor hook_config_destroy
We now just bring the hook down, execute hook_destroy which can be not empty inside the hook,
because it is defined in src/header-config.
After this we delete the config file.
Fixes: #11416
Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Jonatan Schlag [Fri, 14 Jul 2017 12:19:41 +0000 (14:19 +0200)]
zone: new function zone_config_settings_destroy
Similar to zone_config_settings_write and zone_config_settings_read
this function provides an easy way to delete a config file.
Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Jonatan Schlag [Mon, 24 Jul 2017 19:10:05 +0000 (21:10 +0200)]
autocompletion: improve config part
Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Jonatan Schlag [Mon, 24 Jul 2017 19:10:04 +0000 (21:10 +0200)]
network: add new raw command zone-config-id-is-valid
Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Jonatan Schlag [Mon, 24 Jul 2017 19:10:03 +0000 (21:10 +0200)]
network: add new raw command list-zone-config-ids
This commands make it possible to list all used ids
for a zone from the command line.
Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Jonatan Schlag [Mon, 24 Jul 2017 19:10:02 +0000 (21:10 +0200)]
zone: add new function zone_config_list_ids
Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sat, 22 Jul 2017 20:10:48 +0000 (22:10 +0200)]
Remove support for Rapid Spanning Tree Protocol
The userspace daemon is not very stable and unfortunately
not very well tested so that reliable use of it is impossible
right now.
We keep supporting STP as implemented in the Linux kernel
which has some disadvantages, but has proven to be more solid.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 21 Jul 2017 20:43:39 +0000 (22:43 +0200)]
security-policies: Add new "performance" policy
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 21 Jul 2017 20:38:19 +0000 (22:38 +0200)]
Remove overcomplicated list assignment which doesn't work
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 21 Jul 2017 20:32:33 +0000 (22:32 +0200)]
Fix syntax error after line-break
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 21 Jul 2017 20:23:23 +0000 (22:23 +0200)]
util: Log return code of commands only if something failed
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 21 Jul 2017 20:14:20 +0000 (22:14 +0200)]
list: Make use of the assign function to set variables
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 21 Jul 2017 20:14:06 +0000 (22:14 +0200)]
header-port: Remove unsafe use of eval
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 21 Jul 2017 20:13:44 +0000 (22:13 +0200)]
list: Remove unsafe use of eval
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 21 Jul 2017 19:15:08 +0000 (21:15 +0200)]
security-polices: Improve modification of cipher lists
This now supports setting a cipher list in one command and returns
some useful warnings when an intended change could not be performed.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 21 Jul 2017 18:26:32 +0000 (20:26 +0200)]
batman-adv: Use correct functions to read from /sys/class/net
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 21 Jul 2017 18:19:06 +0000 (20:19 +0200)]
Improve performance of reading files from the device tree
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 21 Jul 2017 18:16:11 +0000 (20:16 +0200)]
Add support for VTI interfaces
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 21 Jul 2017 17:51:25 +0000 (19:51 +0200)]
security-policies: Add function to generate ESP proposal for strongswan
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Thu, 20 Jul 2017 22:21:49 +0000 (00:21 +0200)]
security-policies: Add function to generate AH proposal for strongswan
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 19 Jul 2017 19:56:48 +0000 (21:56 +0200)]
securiy-policies: Enhance system policy to support elliptic curves
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 19 Jul 2017 19:54:24 +0000 (21:54 +0200)]
security-policies: Show descriptions for group types
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 19 Jul 2017 19:51:34 +0000 (21:51 +0200)]
security-policies: Add all supported group types
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 19 Jul 2017 19:31:34 +0000 (21:31 +0200)]
Fix typo in integrity description
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 19 Jul 2017 19:31:09 +0000 (21:31 +0200)]
security-policies: Show integrity with description
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 19 Jul 2017 19:29:06 +0000 (21:29 +0200)]
security-policies: Add all supported integrity for now
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 19 Jul 2017 19:24:51 +0000 (21:24 +0200)]
security-policies: Show description for each cipher instead of handle
This is easier and nicer to read
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 19 Jul 2017 19:22:01 +0000 (21:22 +0200)]
security-policies: Import all ciphers that we support for now
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 19 Jul 2017 19:13:44 +0000 (21:13 +0200)]
security-policies: Turn VPN_SUPPORTED_CIPHERS into an associative array
This allows us to store meaningful descriptions with the handles
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 19 Jul 2017 19:08:04 +0000 (21:08 +0200)]
Avoid lines getting too long
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 19 Jul 2017 19:04:26 +0000 (21:04 +0200)]
security-polices: Create a system policy
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 19 Jul 2017 19:04:04 +0000 (21:04 +0200)]
security-policies: Show policy after it has been created
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 19 Jul 2017 18:53:55 +0000 (20:53 +0200)]
security-policies: Check if default policy exists
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 19 Jul 2017 18:50:48 +0000 (20:50 +0200)]
copy: Do not empty $dst when source file cannot be read
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 19 Jul 2017 18:47:01 +0000 (20:47 +0200)]
security-polcies: Only allow creating one policy at a time
This keeps the function easier and lets it return a better error code
when ever something goes wrong.
I don't expect to do anyone doing this in bulk.
I also changed some of the error messages.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 19 Jul 2017 18:38:02 +0000 (20:38 +0200)]
security-policies: Improve coding style
No functional changes.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 19 Jul 2017 17:11:54 +0000 (19:11 +0200)]
copy: Remove trailing dot from log message
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 19 Jul 2017 17:11:33 +0000 (19:11 +0200)]
copy: Move comment to right spot
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 19 Jul 2017 17:11:08 +0000 (19:11 +0200)]
copy: Make function handle paths with spaces
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Jonatan Schlag [Mon, 17 Jul 2017 19:05:18 +0000 (21:05 +0200)]
Add vpn security policies to cli
Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Jonatan Schlag [Wed, 19 Jul 2017 14:10:22 +0000 (16:10 +0200)]
hook: return error codes to previos functions
When we call an hook we should not exit with the error code.
Instead we should return the code to the function that called that hook function.
So we candle handle errors better.
Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Jonatan Schlag [Wed, 19 Jul 2017 14:10:21 +0000 (16:10 +0200)]
zone: fix zone_new
Everytime somethings goes wrong when we call hook_new we wannt to call zone_destroy.
Not only when we get an EXIT_ERROR also when we get an EXIT_CONF_ERROR and so on.
Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Jonatan Schlag [Wed, 19 Jul 2017 14:10:20 +0000 (16:10 +0200)]
header-zone: refactor hook_edit nad hook_new
We now return error codes and break when something important goes wrong.
because of that, we have to split hook_new and hook_edit.
When zone_settins-read fails in hook_edit we cannot go but it would every time we would call it in hook_new.
Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Jonatan Schlag [Wed, 19 Jul 2017 08:52:38 +0000 (10:52 +0200)]
ipv4-static: create hook_parse_cmdline function
This patch just split the parsing of the cmd line
into a separate function to allowing an edit with the generic hook_edit function.
Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Jonatan Schlag [Wed, 19 Jul 2017 08:52:37 +0000 (10:52 +0200)]
ipv6-auto: create hook_parse_cmdline function
This patch just split the parsing of the cmd line
into a separate function to allowing an edit with the generic hook_edit function.
Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Jonatan Schlag [Wed, 19 Jul 2017 08:52:36 +0000 (10:52 +0200)]
ipv6-static: create hook_parse_cmdline function
This patch just split the parsing of the cmd line
into a separate function to allowing an edit with the generic hook_edit function.
Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Jonatan Schlag [Wed, 19 Jul 2017 08:52:35 +0000 (10:52 +0200)]
pppoe-server: create hook_parse_cmdline function
This patch just split the parsing of the cmd line
into a separate function to allowing an edit with the generic hook_edit function.
Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Jonatan Schlag [Wed, 19 Jul 2017 13:21:51 +0000 (15:21 +0200)]
list: fix a bug
When the list is called "list" we have a problem because
${list}="list"
and ${!list}="list"
This creates effects nobody wants and which are also not so easy to understand.
To avoid such problems in the future we now throw an assertation when the list is called list.
Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Jonatan Schlag [Wed, 19 Jul 2017 08:23:20 +0000 (10:23 +0200)]
config: improve config_get_id_from_config and config_get_hook_from_config
Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Jonatan Schlag [Mon, 17 Jul 2017 19:05:16 +0000 (21:05 +0200)]
add new feature vpn security policies
Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Jonatan Schlag [Mon, 17 Jul 2017 19:05:17 +0000 (21:05 +0200)]
constants: add new constant NETWORK_SHARE_DIR
Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Jonatan Schlag [Wed, 19 Jul 2017 08:09:44 +0000 (10:09 +0200)]
util: add new function copy
Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Thu, 6 Jul 2017 13:58:54 +0000 (15:58 +0200)]
Remove empty files
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 23 Sep 2016 19:42:44 +0000 (21:42 +0200)]
Remember to start DHCP servers once started
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Jonatan Schlag [Mon, 17 Jul 2017 15:24:26 +0000 (17:24 +0200)]
header-config: add generic hook_edit function
If a hook_parse-cmdline function exists
this functions allows it do edit the hook safely.
Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Jonatan Schlag [Mon, 17 Jul 2017 15:24:25 +0000 (17:24 +0200)]
config: add new functions
This patch add two new functions:
config_get_id_from_config()
config_get_hook_from_config
Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Jonatan Schlag [Mon, 17 Jul 2017 15:24:24 +0000 (17:24 +0200)]
dhcp: check the config indide the hook_parse_cmdline() function
We now check the config inside the hook_parse_cmdline function.
This mae it possible ti use this function in a generic edit function.
Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Jonatan Schlag [Mon, 17 Jul 2017 15:24:23 +0000 (17:24 +0200)]
header-zone fix hook_config_edit()
This function accepted only two arguments so new cmd coudl be passed.
We accept now more then 2 arguments.
Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Jonatan Schlag [Mon, 17 Jul 2017 15:24:22 +0000 (17:24 +0200)]
zone: fix zone_config()
Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sat, 15 Jul 2017 00:56:16 +0000 (20:56 -0400)]
Drop deprecated listlength function
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sat, 15 Jul 2017 00:55:52 +0000 (20:55 -0400)]
Drop deprecated listmatch function
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sat, 15 Jul 2017 00:54:27 +0000 (20:54 -0400)]
Drop deprecated listsort function
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sat, 15 Jul 2017 00:47:46 +0000 (20:47 -0400)]
Import CODING_STYLE
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sat, 15 Jul 2017 00:30:51 +0000 (20:30 -0400)]
Move license into docs directory
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Jonatan Schlag [Fri, 14 Jul 2017 13:40:39 +0000 (15:40 +0200)]
dhcp: remove useless delay setting
Fixes: #11420
Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Jonatan Schlag [Thu, 6 Jul 2017 13:28:40 +0000 (15:28 +0200)]
util: isbool accept now also true and false
Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 12 Jul 2017 22:29:50 +0000 (18:29 -0400)]
man: Fix grammar and spelling in color documentation
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Jonatan Schlag [Mon, 10 Jul 2017 15:10:42 +0000 (17:10 +0200)]
man: add documentation for the description command
Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Jonatan Schlag [Mon, 10 Jul 2017 15:10:41 +0000 (17:10 +0200)]
man: add color documentation
Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Jonatan Schlag [Tue, 11 Jul 2017 14:43:02 +0000 (16:43 +0200)]
dhcp: merge hooks ipv4-dhcp and ipv6-dhcp
Fixes: #11404
Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Jonatan Schlag [Tue, 11 Jul 2017 15:05:42 +0000 (17:05 +0200)]
zone: make edit syntax clear
Fixes: #11422
Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Jonatan Schlag [Mon, 10 Jul 2017 13:33:47 +0000 (15:33 +0200)]
zone: add new command config list
With the new command
network <zone> config list
a user can get all configured configs with id and hook.
Fixes: #11407
Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Jonatan Schlag [Wed, 5 Jul 2017 14:19:53 +0000 (16:19 +0200)]
zone: Check early if a id is valid
Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Jonatan Schlag [Wed, 5 Jul 2017 14:19:52 +0000 (16:19 +0200)]
zone: change edit syntax for config.
The syntax to edit a config is now
network zone upl0 config <id> edit
similar to the syntax if a zone is edited.
The cmd variable is setted to the content of ${1},
because we need the content in this variable if the ${id} is not valid, to print a nice error message.
Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Jonatan Schlag [Wed, 5 Jul 2017 14:19:51 +0000 (16:19 +0200)]
header-zone: refactor hook_config_edit
With the new id function this function gets a zone name and a id,
but hook_config_cmd needs also the name of the hook.
So this function now calls zone_config_get_hook_from_id to get the hook
and calls then hook_config_cmd with the correct argument order.
Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>