summaryrefslogtreecommitdiffhomepage
path: root/scripts
AgeCommit message (Collapse)Author
2015-08-25bridge: Allow setting multicast_to_unicast optionLinus Lüssing
With this patch the multicast_to_unicast feature can be disabled for all wireless interfaces via an according option on the uci bridge interface. This patch also exports the setting information to wireless handler scripts. The hostapd script will need that information to determine whether to enable or disable ap-isolation, for instance. Signed-off-by: Linus Lüssing <linus.luessing@c0d3.blue>
2015-08-25bridge: Fix multicast_to_unicast feature by hairpin+isolateLinus Lüssing
All IGMP and MLD versions suffer from a specific limitation (from a snooping switch perspective): Report suppression. Once a listener hears an IGMPv2/3 or MLDv1 report for the same group itself participates in then it might (if this listener is an IGMPv3 or MLDv2 listener) or will (if this is an IGMPv1/2 or MLDv1 listener) refrain from sending its own report. Therefore we might currently miss such surpressing listeners as they won't receive the multicast packet with the mangled, unicasted destination. Fixing this by first isolating the STAs and giving the bridge more control over traffic forwarding. E.g. refraining to forward listener reports to other STAs. For broadcast and unicast traffic to an STA on the same AP, the hairpin feature of the bridge will reflect such traffic back to the AP interface. However, if the AP interface is actually configured to isolate STAs, then hairpin is kept disabled. Signed-off-by: Linus Lüssing <linus.luessing@c0d3.blue>
2015-05-23proto-shell: allow running protocols without proto_task.Yousong Zhou
Adds a new config parameter "no-proto-task" for noting that no proto_task will be running for this protocol type. This is required since then change in commit "d0dcf74 proto-shell: retry setup if the proto handler script quits without changing the state or starting a process". The change is mainly for protocols like xl2tpd in which control commands are sent to another daemon xl2tpd to start L2TP negotiation and pppd process who is not under netifd's control as proto_task as is the case in other ppp related protocols like pppoe, pptp, etc. Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2015-04-03netifd: Interface last error supportHans Dedecker
Adds interface last error support which preserves the last reported error reported by the protocol handler till the interface is up; e.g. survives network reload and interface restarts. This is mainly usefull for tracking down why an interface fails to establish; eg auth failure/traffic limit for PPP interfaces Protocol handlers register last error support by setting lasterror=1 in the proto_init function Signed-off-by: Johan Peeters <johan.peeters111@gmail.com> Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
2015-03-31netifd: add metric argument for proto_add_ipv4_routeSteven Barth
Signed-off-by: Steven Barth <steven@midlink.org>
2015-03-21Fix regression with IPv6 source-dest-routesSteven Barth
2015-03-19add missing argument for ipv4 routesSteven Barth
Signed-off-by: Steven Barth <steven@midlink.org>
2015-03-19Add table argument to shell API for routesSteven Barth
Signed-off-by: Steven Barth <steven@midlink.org>
2014-12-08Enable callers to pass the source IP of an IPv4 route when usingKristian Evensen
proto_add_ipv4_route(). This is useful with for example DHCP in a multihomed scenario, as it provides an easy way to match default routes with the correct IP address. One use case for this are applications that monitor the state of the WAN port, and the WAN port is assigned multiple addresses. Signed-off-by: Kristian Evensen <kristian.evensen at gmail.com>
2014-07-18scripts: set type for the "key" attributeFelix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2014-03-21netifd: Reload proto on topology changeHelmut Schaa
Introduce a new device event "topology change" that gets signaled by bridges on adding/removing members. On "topology changes" the proto handlers are requested to "renew" which is most useful for DHCP. Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com>
2013-12-02wireless: fix getting the network_bridge variableFelix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2013-12-02wireless: fix htmode handlingFelix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2013-12-02wireless: call an initial cleanup functionFelix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2013-12-01wireless: fix process handling if the pid exe is a symlinkFelix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2013-11-30wireless: add some device/vif error debug messagesFelix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2013-11-30wireless: fix channel checkFelix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2013-11-29add initial support for handling wireless devices via scriptsFelix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2013-11-29utils.sh: add N (newline)Felix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2013-11-27IPv6: add class support to regular IPv6 addressesSteven Barth
2013-10-31proto-shell: fix legacy proto_config_add_* functions, make them wrap around ↵Felix Fietkau
config_add_* Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2013-10-29scripts/utils.sh: add a function for setting a variable defaultFelix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2013-10-22scripts: make config_add_* parameters take multiple argumentsFelix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2013-10-19scripts: add config_add_array() to utilsFelix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2013-10-19scripts: remove the executable flag from netifd-proto.shFelix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2013-10-19scripts: move some utility functions out of netifd-proto.sh into utils.shFelix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2013-10-19scripts: reorganize directory layoutFelix Fietkau
move example scripts from dummy/ to examples/ keep scripts that can be used as-is in scripts/ Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2013-10-19scripts: delete ifup/ifdown, they are unusedFelix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2011-10-07add support for calls to a hotplug script on interface state changesFelix Fietkau
2011-03-27add an example script for ifup/ifdownFelix Fietkau