summaryrefslogtreecommitdiff
path: root/proto.h
Commit message (Collapse)AuthorAgeFilesLines
* proto-shell: Model config parameter "no-proto-task" as a proto flagHans Dedecker2016-08-111-0/+1
| | | | | | | 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>
* proto-shell: Support teardown on layer 3 link lossHans Dedecker2016-08-111-0/+1
| | | | | | | | | | | | | 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>
* netifd: Interface last error supportHans Dedecker2015-04-031-0/+1
| | | | | | | | | | | | | | 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>
* interface: enable force_link by default for proto=staticFelix Fietkau2014-07-271-0/+1
| | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* netifd: Reload proto on topology changeHelmut Schaa2014-03-211-0/+3
| | | | | | | | | | 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>
* proto-shell: defer init until after command line option processingFelix Fietkau2014-03-071-0/+1
| | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* config: use the new uci_blob library codeFelix Fietkau2013-06-101-2/+2
| | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* add an ubus method for dumping available protocol handlersFelix Fietkau2012-05-311-1/+1
|
* split applying static proto setting from handler settingsFelix Fietkau2012-05-131-0/+1
|
* add copyright headersFelix Fietkau2012-05-041-0/+13
|
* make proto_parse_ip_addr_string() staticFelix Fietkau2012-02-261-1/+0
|
* proto: add an option for specifying external addresses using ↵Felix Fietkau2012-02-261-1/+1
| | | | proto_apply_ip_settings()
* move static address setup to proto.c in preparation for unifying it with the ↵Felix Fietkau2012-02-261-0/+5
| | | | proto-shell code doing similar things
* proto-shell: handle the "available" config flagFelix Fietkau2011-10-271-0/+1
|
* proto-shell: allow passing netmask in ip address formatFelix Fietkau2011-10-141-0/+1
|
* move ip address parsing code to proto.cFelix Fietkau2011-09-121-0/+1
|
* make proto_apply_static_settings static, make helper functions take a struct ↵Felix Fietkau2011-09-121-2/+0
| | | | interface instead of the proto state
* add a protocol event for link lossFelix Fietkau2011-09-111-0/+1
|
* add an interface for notifying protocol handlers of state changes via ubusFelix Fietkau2011-09-111-0/+1
|
* move protocol flags to the handler, add a pointer to the handler in the ↵Felix Fietkau2011-09-111-2/+5
| | | | proto state, add PROTO_FLAG_NODEV
* make functionality for applying static settings availableFelix Fietkau2011-09-071-0/+2
|
* remove the uci dependency from protocol handlersFelix Fietkau2011-09-041-2/+3
|
* remove an unnecessary typedefFelix Fietkau2011-09-041-4/+3
|
* trigger proto attach from config.cFelix Fietkau2011-09-041-3/+3
|
* export a function to look up a protocol handlerFelix Fietkau2011-04-131-0/+1
|
* add a section pointer to the proto attach callbackFelix Fietkau2011-04-131-1/+7
|
* add some infrastructure code for proto handlersFelix Fietkau2011-04-131-1/+9
|
* move immediate protocol state transitions to a wrapper functionFelix Fietkau2011-04-031-0/+7
|
* add rudimentary protocol handlingFelix Fietkau2011-03-291-0/+29