1 #ifndef __NETIFD_PROTO_H
2 #define __NETIFD_PROTO_H
4 struct interface_proto_state
;
6 enum interface_proto_event
{
11 enum interface_proto_cmd
{
16 struct interface_proto_state
{
17 struct interface
*iface
;
19 /* filled in by the protocol user */
20 void (*proto_event
)(struct interface_proto_state
*, enum interface_proto_event ev
);
22 /* filled in by the protocol handler */
23 int (*handler
)(struct interface_proto_state
*, enum interface_proto_cmd cmd
, bool force
);
24 void (*free
)(struct interface_proto_state
*);
27 struct interface_proto_state
*get_default_proto(void);