summaryrefslogtreecommitdiffhomepage
path: root/proto.h
AgeCommit message (Collapse)Author
2016-08-11proto-shell: Model config parameter "no-proto-task" as a proto flagHans Dedecker
Export the config parameter "no-proto-task" as a proto flag so it's available for other other netifd modules Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
2016-08-11proto-shell: Support teardown on layer 3 link lossHans Dedecker
Commit c6858766 added interface teardown support on layer 3 device link loss mainly for shell protocols who have no proto task like xl2tp. However for shell protocols having a proto task it is not always the correct action to teardown the interface; as an example the PPP daemon can be put into persist state trying to re-establish the link via a hold-off mechanism if layer 3 link loss is detected. Therefore shell handlers can enable via TEARDOWN_ON_L3_LINK_DOWN a proto flag which will teardown the interface when layer 3 link loss is detected Signed-off-by: Hans Dedecker <dedeckeh@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>
2014-07-27interface: enable force_link by default for proto=staticFelix 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>
2014-03-07proto-shell: defer init until after command line option processingFelix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2013-06-10config: use the new uci_blob library codeFelix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2012-05-31add an ubus method for dumping available protocol handlersFelix Fietkau
2012-05-13split applying static proto setting from handler settingsFelix Fietkau
2012-05-04add copyright headersFelix Fietkau
2012-02-26make proto_parse_ip_addr_string() staticFelix Fietkau
2012-02-26proto: add an option for specifying external addresses using ↵Felix Fietkau
proto_apply_ip_settings()
2012-02-26move static address setup to proto.c in preparation for unifying it with the ↵Felix Fietkau
proto-shell code doing similar things
2011-10-27proto-shell: handle the "available" config flagFelix Fietkau
2011-10-14proto-shell: allow passing netmask in ip address formatFelix Fietkau
2011-09-12move ip address parsing code to proto.cFelix Fietkau
2011-09-12make proto_apply_static_settings static, make helper functions take a struct ↵Felix Fietkau
interface instead of the proto state
2011-09-11add a protocol event for link lossFelix Fietkau
2011-09-11add an interface for notifying protocol handlers of state changes via ubusFelix Fietkau
2011-09-11move protocol flags to the handler, add a pointer to the handler in the ↵Felix Fietkau
proto state, add PROTO_FLAG_NODEV
2011-09-07make functionality for applying static settings availableFelix Fietkau
2011-09-04remove the uci dependency from protocol handlersFelix Fietkau
2011-09-04remove an unnecessary typedefFelix Fietkau
2011-09-04trigger proto attach from config.cFelix Fietkau
2011-04-13export a function to look up a protocol handlerFelix Fietkau
2011-04-13add a section pointer to the proto attach callbackFelix Fietkau
2011-04-13add some infrastructure code for proto handlersFelix Fietkau
2011-04-03move immediate protocol state transitions to a wrapper functionFelix Fietkau
2011-03-29add rudimentary protocol handlingFelix Fietkau