summaryrefslogtreecommitdiff
path: root/tunnel.c
Commit message (Collapse)AuthorAgeFilesLines
* device: gracefully handle device names exceeding IFNAMESIZHans Dedecker2018-08-141-1/+7
| | | | | | | | | | | | Instead of truncating the device name when it exceeds IFNAMSIZ length; let device_set_ifname return an error code and do not add the device to the device list. This avoids possible issues with device names becoming identical due the truncation and as a result unexpected behavior. Further let the different device types gracefully handle the error code returned by device_init Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
* tunnel: Use tunnel as device type nameHans Dedecker2016-09-261-1/+1
| | | | | | Fixes creation of tunnel devices by UCI due to device handlers rework Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
* device: Move the different device type registrations to the device type fileHans Dedecker2016-09-261-1/+4
| | | | | | While at it; make device_types static if only used in the device type file Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
* device: prepare for adding device handlers dynamicallyArne Kappen2016-08-261-4/+5
| | | | | | | | - remove const from device handler struct - pass device handler type to create function Signed-off-by: Arne Kappen <akappen@inet.tu-berlin.de> Signed-off-by: Felix Fietkau <nbd@nbd.name> [cleanup]
* tunnel: Fix possible segfaultHans Dedecker2016-02-011-0/+3
| | | | Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
* tunnel: Fix uninitialized accessHans Dedecker2016-02-011-3/+2
| | | | | | Fix tb_dev uninitialized access by device_init_settings Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
* netifd:Make sure interface device config is also cachedHans Dedecker2015-03-191-1/+1
| | | | | | | | | | Fixes issue interface device config is not applied in some cases. As the interface device config was applied but not always cached; an interface device config diff was not always detected. Simplify device config setting by exposing as api only device_apply_config Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
* netifd: GRE tunnel supportHans Dedecker2014-07-301-1/+1
| | | | | | Adds support for gre, gretap, grev6 and grev6tap tunnels Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
* netifd: Apply tunnel MTUHans Dedecker2013-12-081-1/+23
| | | | | | Tunnel MTU is applied according to the tunnel MTU UCI parameter Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
* add copyright headersFelix Fietkau2012-05-041-0/+13
|
* fix a memory leakFelix Fietkau2012-03-191-3/+1
|
* remove some leftover debug codeFelix Fietkau2012-03-151-3/+1
|
* parse tunnel devices from configFelix Fietkau2012-03-151-0/+66