From: Felix Fietkau Date: Fri, 7 Oct 2011 16:50:16 +0000 (+0200) Subject: fix proto events for immediate proto handlers X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=ed1bbf2f3c9933e7088299704d9b6e9dd61f027d;p=oweals%2Fnetifd.git fix proto events for immediate proto handlers --- diff --git a/proto.c b/proto.c index c54206f..786d600 100644 --- a/proto.c +++ b/proto.c @@ -169,7 +169,7 @@ int interface_proto_event(struct interface_proto_state *proto, enum interface_proto_cmd cmd, bool force) { - enum interface_event ev; + enum interface_proto_event ev; int ret; ret = proto->cb(proto, cmd, force); @@ -178,10 +178,10 @@ interface_proto_event(struct interface_proto_state *proto, switch(cmd) { case PROTO_CMD_SETUP: - ev = IFEV_UP; + ev = IFPEV_UP; break; case PROTO_CMD_TEARDOWN: - ev = IFEV_DOWN; + ev = IFPEV_DOWN; break; default: return -EINVAL;