-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpatch-dhcp6c__ia.h
51 lines (46 loc) · 2.01 KB
/
patch-dhcp6c__ia.h
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
--- dhcp6c_ia.h.orig 2017-02-28 19:06:15 UTC
+++ dhcp6c_ia.h
@@ -28,6 +28,8 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*/
+#ifndef _DHCP6C_IA_H_
+#define _DHCP6C_IA_H_
struct ia; /* this is an opaque type */
@@ -35,22 +37,24 @@ struct iactl {
struct ia *iactl_ia; /* back pointer to IA */
/* callback function called when something may happen on the IA */
- void (*callback) __P((struct ia *));
+ void (*callback)(struct ia *);
/* common methods: */
- int (*isvalid) __P((struct iactl *));
- u_int32_t (*duration) __P((struct iactl *));
- int (*renew_data) __P((struct iactl *, struct dhcp6_ia *,
- struct dhcp6_eventdata **, struct dhcp6_eventdata *));
- int (*rebind_data) __P((struct iactl *, struct dhcp6_ia *,
- struct dhcp6_eventdata **, struct dhcp6_eventdata *));
- int (*release_data) __P((struct iactl *, struct dhcp6_ia *,
- struct dhcp6_eventdata **, struct dhcp6_eventdata *));
- int (*reestablish_data) __P((struct iactl *, struct dhcp6_ia *,
- struct dhcp6_eventdata **, struct dhcp6_eventdata *));
- void (*cleanup) __P((struct iactl *));
+ int (*isvalid)(struct iactl *);
+ uint32_t (*duration)(struct iactl *);
+ int (*renew_data)(struct iactl *, struct dhcp6_ia *,
+ struct dhcp6_eventdata **, struct dhcp6_eventdata *);
+ int (*rebind_data)(struct iactl *, struct dhcp6_ia *,
+ struct dhcp6_eventdata **, struct dhcp6_eventdata *);
+ int (*release_data)(struct iactl *, struct dhcp6_ia *,
+ struct dhcp6_eventdata **, struct dhcp6_eventdata *);
+ int (*reestablish_data)(struct iactl *, struct dhcp6_ia *,
+ struct dhcp6_eventdata **, struct dhcp6_eventdata *);
+ void (*cleanup)(struct iactl *);
};
-extern void update_ia __P((iatype_t, struct dhcp6_list *,
- struct dhcp6_if *, struct duid *, struct authparam *));
-extern void release_all_ia __P((struct dhcp6_if *));
+void update_ia(iatype_t, struct dhcp6_list *,
+ struct dhcp6_if *, struct duid *, struct authparam *);
+void release_all_ia(struct dhcp6_if *);
+
+#endif