]> git.ipfire.org Git - people/jschlag/network.git/log
people/jschlag/network.git
6 years agoip_is_network: Fix assertion crash when address part was invalid changes
Jonatan Schlag [Tue, 30 May 2017 09:26:50 +0000 (11:26 +0200)] 
ip_is_network: Fix assertion crash when address part was invalid

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
6 years agoip_is_valid: Refactor functions
Jonatan Schlag [Tue, 30 May 2017 09:26:16 +0000 (11:26 +0200)] 
ip_is_valid: Refactor functions

These now check more precisely if a prefix that is given with
an IP address is valid, too

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
6 years agoroute: Correctly end loop when network was invalid
Jonatan Schlag [Tue, 30 May 2017 09:25:37 +0000 (11:25 +0200)] 
route: Correctly end loop when network was invalid

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
6 years agoip: Correctly handle non-numeric prefixes
Jonatan Schlag [Tue, 30 May 2017 08:54:43 +0000 (10:54 +0200)] 
ip: Correctly handle non-numeric prefixes

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
6 years agoroute: Allow deleting multiple routes at once
Jonatan Schlag [Tue, 30 May 2017 08:46:20 +0000 (10:46 +0200)] 
route: Allow deleting multiple routes at once

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
6 years agoroute: Validate input when removing static routes
Jonatan Schlag [Tue, 30 May 2017 08:42:57 +0000 (10:42 +0200)] 
route: Validate input when removing static routes

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
6 years agoroute: Log ip commands when writing static routes into the kernel
Jonatan Schlag [Tue, 30 May 2017 08:37:49 +0000 (10:37 +0200)] 
route: Log ip commands when writing static routes into the kernel

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
6 years agoroute: Check if the dection of the protocol failed
Jonatan Schlag [Tue, 30 May 2017 08:35:44 +0000 (10:35 +0200)] 
route: Check if the dection of the protocol failed

If the check of the protocol failed we should break.

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
6 years agoroute: cli parsing failed when a = was forgotten
Jonatan Schlag [Tue, 30 May 2017 08:33:22 +0000 (10:33 +0200)] 
route: cli parsing failed when a = was forgotten

A command like

  network route add 192.168.101.0/24 --gateway 192.168.101.254

results in network to be set to 192.168.101.254 which is wrong.

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
6 years agoroute: Fix check of network
Jonatan Schlag [Tue, 30 May 2017 08:30:35 +0000 (10:30 +0200)] 
route: Fix check of network

We can use a single IP address or a network as "network",
so we need tho check if it is a valid IP address or a valid network.

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
6 years agoip: Allow detection of protocol for networks, too
Jonatan Schlag [Tue, 30 May 2017 08:24:15 +0000 (10:24 +0200)] 
ip: Allow detection of protocol for networks, too

This is very convenient when we need to detect the protocol
of a network without splitting off the prefix first.

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
7 years agoDrop support for SixXS
Michael Tremer [Thu, 23 Mar 2017 18:13:47 +0000 (19:13 +0100)] 
Drop support for SixXS

The project has announced that it will be shut down.

The aiccu technology is not used by anybody else AFAIK
hence we can drop this.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 years agoRevert "Only call radvd_update if a zone contains an IPv6."
Michael Tremer [Thu, 26 Jan 2017 13:25:25 +0000 (13:25 +0000)] 
Revert "Only call radvd_update if a zone contains an IPv6."

This reverts commit 6325e3ccbfb73c8ee428b349eacbfc6de19dec47
as requested by the author.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 years agoOnly call radvd_update if a zone contains an IPv6.
Stefan Schantl [Wed, 25 Jan 2017 13:48:21 +0000 (14:48 +0100)] 
Only call radvd_update if a zone contains an IPv6.

On systems which lacks any IPv6 configured zone, radvd would be
started with an empty configuration file and crashes which will
brick the system startup and results in a frozen system.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 years agoipv4-static: Remove routing information from databases when shutting down a zone.
Stefan Schantl [Wed, 25 Jan 2017 13:48:20 +0000 (14:48 +0100)] 
ipv4-static: Remove routing information from databases when shutting down a zone.

Otherwise the script will try to use this route again and crash because the address space
is not longer available.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 years agoAdd missing logdir to Makefile.
Stefan Schantl [Wed, 25 Jan 2017 13:48:19 +0000 (14:48 +0100)] 
Add missing logdir to Makefile.

The logdir has not been created during the "make install" process
and therefore not been shipped yet.

This directory is used to store various databases which contains
data about the zones and routes. They can easily accessed by
the upcomming WUI to display or compute those information.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 years agoFix file name of systemd tmpfile
Stefan Schantl [Wed, 25 Jan 2017 10:16:15 +0000 (11:16 +0100)] 
Fix file name of systemd tmpfile

The tmpfile configuration file had a wrong name (.conf prefix has been missing).

As a result of this, the file was ignored and the containing files and folders
have not been created during boot-up.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 years agoImprove MTU handling on bridges
Arne Fitzenreiter [Wed, 19 Oct 2016 20:28:22 +0000 (20:28 +0000)] 
Improve MTU handling on bridges

When the MTU of a bridge is changed, device_set_mtu will
now change the MTU of all ports in that bridge, too.

This does not seem to be 100% necessary, but it makes it
clearer and probably avoids some other bugs.

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 years agodevice_{get,set}_mtu: Improve speed and logging
Michael Tremer [Fri, 23 Sep 2016 19:33:16 +0000 (21:33 +0200)] 
device_{get,set}_mtu: Improve speed and logging

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 years agodevice_set_{up,down}: Print clear log message
Michael Tremer [Fri, 23 Sep 2016 19:28:31 +0000 (21:28 +0200)] 
device_set_{up,down}: Print clear log message

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 years agoMake device_set_{up,down} faster and show more debugging information
Michael Tremer [Fri, 23 Sep 2016 19:25:58 +0000 (21:25 +0200)] 
Make device_set_{up,down} faster and show more debugging information

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 years agoCache system_get_processors()
Michael Tremer [Fri, 23 Sep 2016 19:21:31 +0000 (21:21 +0200)] 
Cache system_get_processors()

This function is called quite option and hence we cache
the result to speed up code execution

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 years agoImplement using Linux's SMP affinity
Michael Tremer [Fri, 23 Sep 2016 19:14:20 +0000 (21:14 +0200)] 
Implement using Linux's SMP affinity

This feature is enabled by default and will distribute
interrupt handling across multiple processors which will
(especially on slower hardware) reduce cache access, decrease
latency and quite possibly increase throughput.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 years agohotplug: Fall through to hotplug events for new devices
Michael Tremer [Fri, 23 Sep 2016 19:11:07 +0000 (21:11 +0200)] 
hotplug: Fall through to hotplug events for new devices

Even if a device is plugged in for the first time, we now fall
through to the hotplugging handling

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 years agoAllow using locks with a name instead of path
Michael Tremer [Fri, 23 Sep 2016 19:09:52 +0000 (21:09 +0200)] 
Allow using locks with a name instead of path

This makes it easier to create a temporary
lock in code without constructing the path of
the lock file first.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 years agoman: Add documentation for DHCP server commands
Michael Tremer [Fri, 23 Sep 2016 03:55:48 +0000 (05:55 +0200)] 
man: Add documentation for DHCP server commands

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 years agoMove list-hooks command as sub-command of help
Michael Tremer [Thu, 15 Sep 2016 20:50:33 +0000 (22:50 +0200)] 
Move list-hooks command as sub-command of help

Fixes #11181

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 years agoDHCP: Allow configuring lease times in human-readable format
Michael Tremer [Wed, 14 Sep 2016 09:05:43 +0000 (11:05 +0200)] 
DHCP: Allow configuring lease times in human-readable format

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 years agoDHCP: Format lease time in human-readable format
Michael Tremer [Wed, 14 Sep 2016 08:35:42 +0000 (10:35 +0200)] 
DHCP: Format lease time in human-readable format

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 years agoDHCP: Cleanup some code
Michael Tremer [Thu, 8 Sep 2016 17:23:33 +0000 (19:23 +0200)] 
DHCP: Cleanup some code

Remove any references to the old subnet ID system
and improve argument handling

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 years agoDHCP: Reload after subnet range changes
Michael Tremer [Thu, 8 Sep 2016 17:14:26 +0000 (19:14 +0200)] 
DHCP: Reload after subnet range changes

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 years agoDHCP: Do not accept overlapping subnet ranges
Michael Tremer [Thu, 8 Sep 2016 17:09:34 +0000 (19:09 +0200)] 
DHCP: Do not accept overlapping subnet ranges

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 years agoDHCP: dhcpd_subnet_range_new: Make ${range} available throughout function
Michael Tremer [Thu, 8 Sep 2016 16:44:30 +0000 (18:44 +0200)] 
DHCP: dhcpd_subnet_range_new: Make ${range} available throughout function

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 years agoDHCP: Check if subnet range already exists before creating
Michael Tremer [Thu, 8 Sep 2016 16:42:41 +0000 (18:42 +0200)] 
DHCP: Check if subnet range already exists before creating

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 years agoDHCP: Check if range is not negative
Michael Tremer [Thu, 8 Sep 2016 16:40:23 +0000 (18:40 +0200)] 
DHCP: Check if range is not negative

If a new range is created, we now check if range is positive
(even for IPv6).

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 years agoIPv4: Fix comparing IP addresses
Michael Tremer [Thu, 8 Sep 2016 16:39:52 +0000 (18:39 +0200)] 
IPv4: Fix comparing IP addresses

This function relied on an older function that was removed
some time ago.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 years agonetcalc: Fix comparing IP addresses
Michael Tremer [Thu, 8 Sep 2016 16:39:15 +0000 (18:39 +0200)] 
netcalc: Fix comparing IP addresses

Those are stored in big endian

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 years agoDHCP: Show message when subnet range has been created
Michael Tremer [Thu, 8 Sep 2016 16:24:50 +0000 (18:24 +0200)] 
DHCP: Show message when subnet range has been created

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 years agoDHCP: Make removing subnet ranges more robust
Michael Tremer [Thu, 8 Sep 2016 16:23:34 +0000 (18:23 +0200)] 
DHCP: Make removing subnet ranges more robust

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 years agoDHCP: Get rid of range IDs
Michael Tremer [Thu, 8 Sep 2016 16:02:14 +0000 (18:02 +0200)] 
DHCP: Get rid of range IDs

Same as subnet ids. These are more confusing and unhelpful
than handling the entire range in the native IP format.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 years agoMake fonts properly bold without changing the colour of the normal font
Michael Tremer [Thu, 8 Sep 2016 12:49:09 +0000 (14:49 +0200)] 
Make fonts properly bold without changing the colour of the normal font

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 years agoDHCP: Get rid of subnet IDs
Michael Tremer [Thu, 8 Sep 2016 12:40:59 +0000 (14:40 +0200)] 
DHCP: Get rid of subnet IDs

It is easier to use the subnet to identify a subnet instead
of an ID. Auto-completion on the shell will help to avoid
much typing and make commands more readable.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 years agowireless: Validate regulatory domain before setting and saving
Michael Tremer [Mon, 5 Sep 2016 12:25:41 +0000 (14:25 +0200)] 
wireless: Validate regulatory domain before setting and saving

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne.fitzenreiter@ipfire.org>
7 years agosettings: Update DNS configuration only after DNS settings changed
Michael Tremer [Mon, 5 Sep 2016 11:55:21 +0000 (13:55 +0200)] 
settings: Update DNS configuration only after DNS settings changed

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 years agosettings: Immediately apply wireless reg domain
Michael Tremer [Mon, 5 Sep 2016 11:52:05 +0000 (13:52 +0200)] 
settings: Immediately apply wireless reg domain

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 years agoinetcalc: Fix comparing IPv6 addresses
Michael Tremer [Fri, 2 Sep 2016 12:57:17 +0000 (14:57 +0200)] 
inetcalc: Fix comparing IPv6 addresses

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 years agoRevert "Log better errors when locks could not be acquired"
Michael Tremer [Fri, 2 Sep 2016 12:17:07 +0000 (14:17 +0200)] 
Revert "Log better errors when locks could not be acquired"

This reverts commit 20c4b654ba9a5027f59d7063b5a364ff0f370bd1.

7 years agoLog better errors when locks could not be acquired
Michael Tremer [Fri, 2 Sep 2016 11:52:25 +0000 (13:52 +0200)] 
Log better errors when locks could not be acquired

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 years agoMake headlines readable on black background
Michael Tremer [Fri, 2 Sep 2016 11:16:26 +0000 (13:16 +0200)] 
Make headlines readable on black background

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 years agoBump version to 008
Michael Tremer [Mon, 22 Aug 2016 02:07:24 +0000 (22:07 -0400)] 
Bump version to 008

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agoroute: Fail cleanly if the protocol cannot be detected
Michael Tremer [Fri, 22 Apr 2016 21:51:22 +0000 (21:51 +0000)] 
route: Fail cleanly if the protocol cannot be detected

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agodocs: Update for recent MTU defaults changes
Michael Tremer [Sat, 26 Mar 2016 23:12:49 +0000 (23:12 +0000)] 
docs: Update for recent MTU defaults changes

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agomodem: Deduplicate some code to show status of a serial modem
Michael Tremer [Sat, 26 Mar 2016 23:11:34 +0000 (23:11 +0000)] 
modem: Deduplicate some code to show status of a serial modem

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agomodem: Correctly calculate signal strength
Michael Tremer [Sat, 26 Mar 2016 19:39:08 +0000 (19:39 +0000)] 
modem: Correctly calculate signal strength

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agowireless: Remove MTU setting
Michael Tremer [Sat, 26 Mar 2016 18:51:23 +0000 (18:51 +0000)] 
wireless: Remove MTU setting

This is unused.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agoRemove default MTU for PPP client connections
Michael Tremer [Sat, 26 Mar 2016 18:49:47 +0000 (18:49 +0000)] 
Remove default MTU for PPP client connections

The providers set this on their side and we should not use
any defaults because selecting those is just unfounded and
arbitrary.

Fixes #11071

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agomodem: Fix coding style
Michael Tremer [Sat, 26 Mar 2016 18:47:13 +0000 (18:47 +0000)] 
modem: Fix coding style

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agomodem: Show mobile network status even when not connected
Michael Tremer [Sat, 26 Mar 2016 18:46:42 +0000 (18:46 +0000)] 
modem: Show mobile network status even when not connected

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agomodem: Fix broken AUTH check for default values
Michael Tremer [Sat, 26 Mar 2016 18:45:48 +0000 (18:45 +0000)] 
modem: Fix broken AUTH check for default values

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agomodem: Speed-up chatting to modem
Michael Tremer [Sat, 26 Mar 2016 18:44:28 +0000 (18:44 +0000)] 
modem: Speed-up chatting to modem

It is not checked any more if the SIM card is unlocked.

That needs to be done on a higher level now and will allow
us to execute the other commands quicker.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agomodem: Show network registration status
Michael Tremer [Sat, 26 Mar 2016 18:43:47 +0000 (18:43 +0000)] 
modem: Show network registration status

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agomodem: Support LTE as connection type
Michael Tremer [Sat, 26 Mar 2016 13:31:14 +0000 (13:31 +0000)] 
modem: Support LTE as connection type

This will now correctly show LTE connections that
were previously "unknown".

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Reviewed-by: Arne Fitzenreiter <arne.fitzenreiter@ipfire.org>
8 years agomodem: Remove support for login scripts
Michael Tremer [Sat, 26 Mar 2016 13:29:39 +0000 (13:29 +0000)] 
modem: Remove support for login scripts

It seems that no provider requires these any more and
that they cause problems with providers that use username
and password for authentication.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Reviewed-by: Arne Fitzenreiter <arne.fitzenreiter@ipfire.org>
8 years agodocs: Add man page for wireless zone hook
Michael Tremer [Wed, 16 Mar 2016 23:01:16 +0000 (23:01 +0000)] 
docs: Add man page for wireless zone hook

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agodocs: Add man page for modem zone hook
Michael Tremer [Wed, 16 Mar 2016 22:50:25 +0000 (22:50 +0000)] 
docs: Add man page for modem zone hook

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agodocs: Add network-port man page
Michael Tremer [Wed, 16 Mar 2016 22:25:21 +0000 (22:25 +0000)] 
docs: Add network-port man page

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agolock: Decrease the number of iterations per second
Michael Tremer [Sun, 17 Jan 2016 18:37:10 +0000 (19:37 +0100)] 
lock: Decrease the number of iterations per second

There have been reports about that this locking mechanism
wasn't too stable on their machines which can totally be
the case judging by the design of it.

However there is no other easy way to implement this any
better without any native C helper which I would like to
avoid at this moment.

So I decreased the amount of ticks which should make
any processes running at the same time less likely to
collide.

Fixes #10979

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agoImplement identify feature
Michael Tremer [Sat, 16 Jan 2016 16:09:47 +0000 (17:09 +0100)] 
Implement identify feature

When executing "network [zone|port|device] XXX identify" the
port, device or all ports of the zone (that support this feature)
will flash for ten seconds.

Ports will also flash when they are attached to or detached from
a zone.

This is supposed to make plugging in a cable into the right
device is easier.

Fixes #10969

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agoman: Add a quick start guide
Michael Tremer [Sun, 1 Nov 2015 00:12:51 +0000 (01:12 +0100)] 
man: Add a quick start guide

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agoman: Document the DNS_SEARCH_DOMAINS setting
Michael Tremer [Sat, 31 Oct 2015 22:50:52 +0000 (23:50 +0100)] 
man: Document the DNS_SEARCH_DOMAINS setting

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agoman: Document WIRELESS_REGULATORY_DOMAIN setting
Michael Tremer [Sat, 31 Oct 2015 22:47:29 +0000 (23:47 +0100)] 
man: Document WIRELESS_REGULATORY_DOMAIN setting

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agoman: settings: Remove old COLORS setting
Michael Tremer [Sat, 31 Oct 2015 22:28:32 +0000 (23:28 +0100)] 
man: settings: Remove old COLORS setting

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agoman: Add link to man page of the "route" command
Michael Tremer [Sat, 31 Oct 2015 22:16:14 +0000 (23:16 +0100)] 
man: Add link to man page of the "route" command

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agoinetcalc: Allow build on 64 bit architectures
Michael Tremer [Wed, 21 Oct 2015 16:42:06 +0000 (18:42 +0200)] 
inetcalc: Allow build on 64 bit architectures

inetcalc previously used a GCC extension that was only
available on 64 bit platforms. This patch changes the
code to use struct in6_addr instead of __uint128_t for
storing IP addresses.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agoMerge branch 'master' of ssh://git.ipfire.org/pub/git/network
Michael Tremer [Tue, 20 Oct 2015 15:39:26 +0000 (17:39 +0200)] 
Merge branch 'master' of ssh://git.ipfire.org/pub/git/network

8 years agoBump version to 007
Michael Tremer [Sun, 18 Oct 2015 22:10:25 +0000 (23:10 +0100)] 
Bump version to 007

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agofunctions.ipv6: Fix doubble square bracket when calling assert
Stefan Schantl [Sun, 18 Oct 2015 17:36:57 +0000 (19:36 +0200)] 
functions.ipv6: Fix doubble square bracket when calling assert

The assert check does not proper work when using doubble square backets,
so the check fails for some unknown reasons. Removing one bracket will allow
to successfully perform the assert check again.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agoAdd functionality to identify tun/tap devices
Michael Tremer [Sat, 17 Oct 2015 14:51:26 +0000 (16:51 +0200)] 
Add functionality to identify tun/tap devices

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agoradvd: Fix missing function radvd_clear
Michael Tremer [Sat, 17 Oct 2015 14:03:35 +0000 (16:03 +0200)] 
radvd: Fix missing function radvd_clear

This function used to clear the configuration file
but was for some reason missing. The new function
has a slightly more descriptive name.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agodhclient-script: Fix wrong funtion call to determine prefix
Michael Tremer [Sat, 17 Oct 2015 13:52:57 +0000 (15:52 +0200)] 
dhclient-script: Fix wrong funtion call to determine prefix

A wrong function was called to determine the prefix from
the subnet mask.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agoReplace ipcalc by inetcalc
Michael Tremer [Fri, 18 Sep 2015 20:37:05 +0000 (22:37 +0200)] 
Replace ipcalc by inetcalc

This is our own implementation of a binary tool that is used
to validate and calculate with IP addresses.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Reviewed-by: Stefan Schantl <stefan.schantl@ipfire.org>
8 years agoMake configure check for a C compiler
Stefan Schantl [Tue, 15 Sep 2015 15:52:36 +0000 (17:52 +0200)] 
Make configure check for a C compiler

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agowireless: Fix wrong variable name
Stefan Schantl [Sun, 6 Sep 2015 17:08:45 +0000 (19:08 +0200)] 
wireless: Fix wrong variable name

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agoEnsure that radvd is started when needed
Stefan Schantl [Sun, 6 Sep 2015 16:37:43 +0000 (18:37 +0200)] 
Ensure that radvd is started when needed

As this is a router we will need to make sure that the router
advertisement daemon is running at all times for local zones.

This patch will start radvd automatically when ever needed.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agoAllow renaming zones
Stefan Schantl [Sun, 6 Sep 2015 16:33:18 +0000 (18:33 +0200)] 
Allow renaming zones

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agozone: Automatically bring up all configs after creation
Stefan Schantl [Sun, 6 Sep 2015 15:05:53 +0000 (17:05 +0200)] 
zone: Automatically bring up all configs after creation

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agoipv6-auto: Fix wrong hook function name
Stefan Schantl [Sun, 6 Sep 2015 15:05:23 +0000 (17:05 +0200)] 
ipv6-auto: Fix wrong hook function name

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agoipv4-dhcp: Show DNS servers
Stefan Schantl [Sun, 6 Sep 2015 14:45:21 +0000 (16:45 +0200)] 
ipv4-dhcp: Show DNS servers

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agopppoe-server: Allow passing DNS servers to the client
Stefan Schantl [Sun, 6 Sep 2015 14:34:44 +0000 (14:34 +0000)] 
pppoe-server: Allow passing DNS servers to the client

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agoMerge branch 'master' of git://git.ipfire.org/network
Stefan Schantl [Sat, 5 Sep 2015 19:45:30 +0000 (21:45 +0200)] 
Merge branch 'master' of git://git.ipfire.org/network

8 years agodns: Better propagate known DNS servers
Stefan Schantl [Sat, 5 Sep 2015 19:44:07 +0000 (21:44 +0200)] 
dns: Better propagate known DNS servers

dns_servers_update() is a new function that must be called
when ever there are changes to the DNS server configuration.
This may be by the user or by learning new DNS servers from
a dial-up connection, etc.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agopppoe: The remote MAC address should be protocol-independent
Stefan Schantl [Sat, 5 Sep 2015 19:21:14 +0000 (21:21 +0200)] 
pppoe: The remote MAC address should be protocol-independent

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agopppoe: Fix wrong variable name for DNS servers
Stefan Schantl [Sat, 5 Sep 2015 19:16:03 +0000 (21:16 +0200)] 
pppoe: Fix wrong variable name for DNS servers

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agopppoe-server: Enable IPv6
Stefan Schantl [Sat, 5 Sep 2015 18:29:46 +0000 (18:29 +0000)] 
pppoe-server: Enable IPv6

Clients which support IPv6 will now be allocated a link-local
IPv6 address.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
10 years agoLocal zones must be named net0, net1, ...
Stefan Schantl [Mon, 8 Jul 2013 03:10:18 +0000 (05:10 +0200)] 
Local zones must be named net0, net1, ...

"net" is more generic and makes more sense when being
used with VPNs and other virtual networks which are
not a LOCAL area network ("lan").

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agoMerge remote-tracking branch 'prime/master'
Stefan Schantl [Sat, 5 Sep 2015 14:52:31 +0000 (16:52 +0200)] 
Merge remote-tracking branch 'prime/master'

8 years agoMerge remote-tracking branch 'ipv6/master'
Stefan Schantl [Sat, 5 Sep 2015 14:46:53 +0000 (16:46 +0200)] 
Merge remote-tracking branch 'ipv6/master'

8 years agopppoe-server: Load pppoe kernel module
Stefan Schantl [Sun, 30 Aug 2015 20:35:21 +0000 (20:35 +0000)] 
pppoe-server: Load pppoe kernel module

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
8 years agoaiccu: Add helper script that adds routing information to the database
Stefan Schantl [Wed, 26 Aug 2015 21:00:37 +0000 (21:00 +0000)] 
aiccu: Add helper script that adds routing information to the database

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agoMakefile: Append to INSTALL_DIRS to silence automake warning
Stefan Schantl [Wed, 26 Aug 2015 17:48:58 +0000 (17:48 +0000)] 
Makefile: Append to INSTALL_DIRS to silence automake warning

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>