Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | netifd: Do not return values in void function | Hauke Mehrtens | 2023-02-19 | 1 | -1/+2 |
| | | | | | | These two functions return void, do not try to return a parameter. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> | ||||
* | netifd: Fix multiple -Wsign-compare warnings | Hauke Mehrtens | 2023-02-19 | 1 | -2/+2 |
| | | | | | | | | | | | | | | | | | | This fixes warnings like this: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare] Mostly this was an int compared to a size_t returned by ARRAY_SIZE(). The easiest fix is to count on the size_t type. The ifindex is sometimes an unsigned int and sometimes a signed int in the kernel interfaces. I think it normally fits into an unsigned 16 bit value, so this should be fine. Do the one comparison where the compiler complains as a long. Casting the result of sizeof() to int should be safe. These values are never out of range of int. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> | ||||
* | main: fix hotplug script usage message | Stijn Tintel | 2021-11-23 | 1 | -1/+1 |
| | | | | | | | | | Commit 41842d3f9173 introduced a new command line option, and its usage message was added in between the two lines of the hotplug script usage message. Move both lines back together. Fixes: 41842d3f9173 ("add some code for keeping track of dns servers ...") Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be> | ||||
* | main: poll process log stream even if processes are killed | Felix Fietkau | 2021-09-29 | 1 | -1/+1 |
| | | | | | | Ensures that pending log messages are still received Signed-off-by: Felix Fietkau <nbd@nbd.name> | ||||
* | extdev: add support for external device handlers | Arne Kappen | 2021-03-31 | 1 | -0/+2 |
| | | | | | | | | | | This allows to integrate external daemons that configure network devices with netifd. At startup, netifd generates device handler stubs from descriptions in /lib/netifd/extdev-config via the mechanism in handler.c. These are then added to the list of device handlers. Device handlers stubs act as relays forwarding calls against the device handler interface to the external daemon. Signed-off-by: Arne Kappen <arne.kappen@hhi.fraunhofer.de> | ||||
* | netifd: propagate error code on netifd_reload() | Alexandru Ardelean | 2017-04-05 | 1 | -2/+2 |
| | | | | | | | | | | | | | | | The context is that we generate some of the UCI config for netifd via scripts/programs. Every once in a while, there's a goof when doing that UCI generation, and netifd prints out the error at stderr, but returns 0 (success) err-code. This change will fail the ubus call if UCI config is invalid or missing for /etc/config/network. Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com> Acked-by: Hans Dedecker <dedeckeh@gmail.com> | ||||
* | main: remove redundant error check in netifd_start_process | Felix Fietkau | 2015-10-29 | 1 | -3/+0 |
| | | | | | | Detected by Coverity CID 1329378 Signed-off-by: Felix Fietkau <nbd@openwrt.org> | ||||
* | netifd: process reload calls immediately instead of going through a timer | Felix Fietkau | 2014-06-11 | 1 | -10/+5 |
| | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> | ||||
* | uci: Allow setting the UCI config path on the command line | Matthias Schiffer | 2014-03-19 | 1 | -1/+6 |
| | | | | | | | Add a -c switch which allows setting an alternative UCI path instead of using the libuci default. Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net> | ||||
* | proto-shell: defer init until after command line option processing | Felix Fietkau | 2014-03-07 | 1 | -0/+2 |
| | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> | ||||
* | wireless: defer init until after command line option processing | Felix Fietkau | 2014-03-07 | 1 | -0/+3 |
| | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> | ||||
* | Work around warn_unused_result in recent gcc/libc | Steven Barth | 2014-02-16 | 1 | -1/+1 |
| | |||||
* | netifd: fix process stdin/stdout/stderr when the pipe fds overlap with ↵ | Felix Fietkau | 2013-12-01 | 1 | -5/+12 |
| | | | | | | standard fds Signed-off-by: Felix Fietkau <nbd@openwrt.org> | ||||
* | utils: add a function for checking if a process given by pid is still alive | Felix Fietkau | 2013-10-22 | 1 | -1/+0 |
| | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> | ||||
* | log: fix processing of incomplete lines | Felix Fietkau | 2012-12-29 | 1 | -1/+3 |
| | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> | ||||
* | fix container_of for the log ustream | Felix Fietkau | 2012-10-30 | 1 | -1/+1 |
| | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> | ||||
* | move uloop_process_delete call to get rid of an unnecessary check | Felix Fietkau | 2012-10-30 | 1 | -2/+1 |
| | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> | ||||
* | log: the ustream notify_state callback is now optional, remove the stub | Felix Fietkau | 2012-10-30 | 1 | -5/+0 |
| | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> | ||||
* | use ustream for process message logging | Felix Fietkau | 2012-10-29 | 1 | -65/+34 |
| | |||||
* | use FD_CLOEXEC instead of tracking lists of fds | Felix Fietkau | 2012-10-29 | 1 | -25/+4 |
| | |||||
* | fix a file descriptor leak | Felix Fietkau | 2012-05-13 | 1 | -0/+1 |
| | |||||
* | add copyright headers | Felix Fietkau | 2012-05-04 | 1 | -0/+13 |
| | |||||
* | simplify log buffer handling | Felix Fietkau | 2012-03-19 | 1 | -6/+6 |
| | |||||
* | fix log buffer splitting | Felix Fietkau | 2012-03-19 | 1 | -5/+9 |
| | |||||
* | fix log buffer overflow handling | Felix Fietkau | 2012-03-19 | 1 | -1/+1 |
| | |||||
* | always use SIGKILL for netifd_kill_process, it is usually a last resort | Felix Fietkau | 2012-01-21 | 1 | -1/+1 |
| | |||||
* | in log read, check for EINTR instead of EAGAIN to avoid infinite loops | Felix Fietkau | 2011-10-21 | 1 | -1/+1 |
| | |||||
* | try to grab log data more aggressively | Felix Fietkau | 2011-10-20 | 1 | -1/+1 |
| | |||||
* | fix segfaults in log line processing | Felix Fietkau | 2011-10-20 | 1 | -3/+7 |
| | |||||
* | reduce stack usage | Felix Fietkau | 2011-10-20 | 1 | -1/+1 |
| | |||||
* | rename config_init_interfaces to config_init_all | Felix Fietkau | 2011-10-19 | 1 | -2/+2 |
| | |||||
* | remove the argument to config_init_interfaces | Felix Fietkau | 2011-10-19 | 1 | -2/+2 |
| | |||||
* | move log levels to netifd.h | Felix Fietkau | 2011-10-19 | 1 | -8/+0 |
| | |||||
* | fix interrupted read checks in log collection | Felix Fietkau | 2011-10-18 | 1 | -3/+5 |
| | |||||
* | fix infinite loop in logging when the logged process dies | Felix Fietkau | 2011-10-16 | 1 | -1/+5 |
| | |||||
* | add support for a user-configurable log level | Felix Fietkau | 2011-10-16 | 1 | -5/+33 |
| | |||||
* | add support for logging messages via syslog (or optionally stdout) | Felix Fietkau | 2011-10-16 | 1 | -3/+39 |
| | |||||
* | detach stdin/stdout/stderr from child processes, implement a separate ↵ | Felix Fietkau | 2011-10-16 | 1 | -5/+102 |
| | | | | logging pipe and relay log messages with prefix | ||||
* | add support for tracking open file descriptors of modules and closing them ↵ | Felix Fietkau | 2011-10-15 | 1 | -0/+23 |
| | | | | for created child processes | ||||
* | move netifd_start_process dir_fd to the data structure | Felix Fietkau | 2011-10-15 | 1 | -3/+3 |
| | |||||
* | when killed, kill pending child processes | Felix Fietkau | 2011-10-15 | 1 | -0/+31 |
| | |||||
* | keep track of all running child processes in one place | Felix Fietkau | 2011-10-15 | 1 | -0/+55 |
| | |||||
* | add some code for keeping track of dns servers and search domains and for ↵ | Felix Fietkau | 2011-10-11 | 1 | -1/+6 |
| | | | | writing resolv.conf | ||||
* | use /lib/netifd as main path when dummy mode is disabled | Felix Fietkau | 2011-10-09 | 1 | -1/+1 |
| | |||||
* | add support for calls to a hotplug script on interface state changes | Felix Fietkau | 2011-10-07 | 1 | -0/+5 |
| | |||||
* | rework debugging code, add debugging levels | Felix Fietkau | 2011-10-04 | 1 | -1/+6 |
| | |||||
* | add a ubus call for triggering config reloads | Felix Fietkau | 2011-10-03 | 1 | -4/+14 |
| | |||||
* | add a system_init function for system control | Steven Barth | 2011-09-23 | 1 | -0/+6 |
| | |||||
* | fix compilation with GCC 4.6 on Linux | Steven Barth | 2011-09-22 | 1 | -1/+2 |
| | |||||
* | bring all interfaces down on restart | Felix Fietkau | 2011-09-11 | 1 | -0/+2 |
| |