summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* netifd: Link layer state support on interface levelHans Dedecker2013-12-083-30/+103
| | | | | | | | | | | Patch implements handling of link layer support on interface level. An interface will go into the setup state when it's enabled and the underlying link state is enabled. Vice versa an interface will go to the down state when it's either disabled or underlying link state is disabled. Testing has been done with PPP, IPoE, tunnel and static interfaces Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
* netifd: Link layer state support on device levelHans Dedecker2013-12-086-30/+155
| | | | | | | Patch implements link layer state awareness (aka carrier detection) in netifd on device level. Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
* netifd: Code style line/clean upHans Dedecker2013-12-083-8/+8
| | | | Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
* Tunnel don't fragment bit configurableHans Dedecker2013-12-083-4/+8
| | | | | | Make tunnel don't fragment bit configurable via UCI Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
* netifd: Apply tunnel MTUHans Dedecker2013-12-084-10/+37
| | | | | | Tunnel MTU is applied according to the tunnel MTU UCI parameter Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
* netifd: Don't export default route via UBUS when disabledHans Dedecker2013-12-081-0/+3
| | | | Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
* netifd: Export ip4table/ip6table via UBUSHans Dedecker2013-12-081-0/+4
| | | | | | | Export ip4table/ip6table parameters via UBUS to facilitate route inspection and usage by other applications Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
* netifd: Routing table parameter needs to be checked in route updateHans Dedecker2013-12-081-1/+2
| | | | | | | | Routing table parameter needs to be checked in interface_update_proto_route; a route which has an identical nexthop but a different routing table needs to be deleted and added in the correct routing table. Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
* wireless: make interfaces in status an array instead of an objectFelix Fietkau2013-12-031-3/+3
| | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* wireless: prepare bridge interfaces before passing them to the setup scriptFelix Fietkau2013-12-031-0/+3
| | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* wireless: add an example driver cleanup implementationFelix Fietkau2013-12-031-0/+3
| | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* wireless: fix getting the network_bridge variableFelix Fietkau2013-12-021-9/+2
| | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* wireless: only process setup retries in setup/up stateFelix Fietkau2013-12-021-0/+3
| | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* wireless: fix htmode handlingFelix Fietkau2013-12-021-2/+2
| | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* wireless: call an initial cleanup functionFelix Fietkau2013-12-021-0/+2
| | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* wireless: fix reload of active interfacesFelix Fietkau2013-12-011-30/+27
| | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* wireless: fix issues with cancelling device setupFelix Fietkau2013-12-011-0/+2
| | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* wireless: add another debug messageFelix Fietkau2013-12-011-0/+1
| | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* wireless: fix process handling if the pid exe is a symlinkFelix Fietkau2013-12-011-1/+5
| | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* wireless: fix parsing of the immediate flag for kill-allFelix Fietkau2013-12-011-1/+1
| | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* wireless: add input validation for processesFelix Fietkau2013-12-011-1/+6
| | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* netifd: fix process stdin/stdout/stderr when the pipe fds overlap with ↵Felix Fietkau2013-12-011-5/+12
| | | | | | standard fds Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* wireless: fix config state handlingFelix Fietkau2013-12-011-1/+4
| | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* wireless: add debug messagesFelix Fietkau2013-12-011-1/+10
| | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* wireless: add some device/vif error debug messagesFelix Fietkau2013-11-301-0/+2
| | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* wireless: fix channel checkFelix Fietkau2013-11-301-2/+2
| | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* wireless: fix use-after-free bugFelix Fietkau2013-11-301-1/+1
| | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* wireless: show the virtual interface section name in wireless statusFelix Fietkau2013-11-303-3/+8
| | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* wireless: show the ifname in wireless statusFelix Fietkau2013-11-301-0/+2
| | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* wireless: add support for global up/down commandFelix Fietkau2013-11-291-4/+16
| | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* netifd: Fix possible segfault in bridge codeHelmut Schaa2013-11-291-0/+3
| | | | | | Need to check calloc result. In case of failure the bridge member will be missing. Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com>
* add initial support for handling wireless devices via scriptsFelix Fietkau2013-11-2910-17/+1587
| | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* utils.sh: add N (newline)Felix Fietkau2013-11-291-0/+3
| | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* IPv6: add class support to regular IPv6 addressesSteven Barth2013-11-275-1/+15
|
* proto-shell: fix legacy proto_config_add_* functions, make them wrap around ↵Felix Fietkau2013-10-311-3/+3
| | | | | | config_add_* Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* IPv6: Export delegation setting via ubusSteven Barth2013-10-301-0/+1
| | | | | | | This allows foreign prefix delegators to quickly distinguish between managed and unmanaged prefixes. Signed-off-by: Steven Barth <steven@midlink.org>
* proto-shell: replace variable length name char arrays with pointers, using ↵Felix Fietkau2013-10-291-17/+15
| | | | | | calloc_a Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* bridge: fix stray semicolon, fixes a bug in bridge primary port resetFelix Fietkau2013-10-291-1/+1
| | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* scripts/utils.sh: add a function for setting a variable defaultFelix Fietkau2013-10-291-0/+6
| | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* utils: add a function for checking if a process given by pid is still aliveFelix Fietkau2013-10-229-7/+29
| | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* add helper function for adding/removing devices to interfacesFelix Fietkau2013-10-223-25/+33
| | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* handler: include config.hFelix Fietkau2013-10-221-0/+1
| | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* proto-shell: move more core to handler.cFelix Fietkau2013-10-223-24/+31
| | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* proto-shell: move script handler config parse code to handler.cFelix Fietkau2013-10-223-72/+73
| | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* proto-shell: move script handler dump code to handler.cFelix Fietkau2013-10-224-104/+145
| | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* proto-shell: make handler dump code more genericFelix Fietkau2013-10-221-26/+57
| | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* scripts: make config_add_* parameters take multiple argumentsFelix Fietkau2013-10-221-8/+12
| | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* scripts: add config_add_array() to utilsFelix Fietkau2013-10-191-0/+4
| | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* scripts: remove the executable flag from netifd-proto.shFelix Fietkau2013-10-191-0/+0
| | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* scripts: move some utility functions out of netifd-proto.sh into utils.shFelix Fietkau2013-10-194-28/+44
| | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org>