summaryrefslogtreecommitdiff
path: root/net/ifstated/files/patch-ifstated.h
blob: 92a4ecbcd8d89eddf20aa72af18b5cea08ef02b1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
--- ifstated.h	18 Nov 2004 21:43:12 -0000	1.1.1.1
+++ ifstated.h	18 Nov 2004 21:48:39 -0000	1.2
@@ -1,4 +1,5 @@
 /*	$OpenBSD: ifstated.h,v 1.4 2004/03/10 00:13:38 deraadt Exp $	*/
+/*	$Id: ifstated.h,v 1.2 2004/11/18 21:48:39 mdg Exp $	*/

 /*
  * Copyright (c) 2004 Ryan McBride
@@ -47,7 +48,7 @@

 struct ifsd_external {
 	TAILQ_ENTRY(ifsd_external)	 entries;
-	struct event			 ev;
+	struct kevent			 kev;
 	struct ifsd_expression_list	 expressions;
 	char				*command;
 	int				 prevstatus;
@@ -107,7 +108,7 @@
 TAILQ_HEAD(ifsd_external_list, ifsd_external);

 struct ifsd_state {
-	struct event			 ev;
+	struct kevent			 kev;
 	struct ifsd_ifstate_list	 interface_states;
 	struct ifsd_external_list	 external_tests;
 	TAILQ_ENTRY(ifsd_state)		 entries;
@@ -138,6 +139,7 @@
 };

 enum	{ IFSD_EVTIMER_ADD, IFSD_EVTIMER_DEL };
+enum    { IFSD_EVTIMER_STARTUP, IFSD_EVTIMER_EXTERNAL };
 struct ifsd_config *parse_config(char *, int);
 int	cmdline_symset(char *);
 void	clear_config(struct ifsd_config *);