summaryrefslogtreecommitdiffstats
path: root/net/isc-dhcp/patches/910-incompatible-pointers.patch
blob: bebb192ab735d4e7fb3cdb8816b10fd837632256 (plain)
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
--- a/server/dhcpv6.c
+++ b/server/dhcpv6.c
@@ -5843,14 +5843,29 @@ exit:
 	option_state_dereference(&host_opt_state, MDL);
 }
 
+typedef void ia_na_match_t(
+	const struct data_string *client_id,
+	const struct data_string *iaaddr,
+	struct iasubopt *lease
+	);
+
+typedef void ia_na_nomatch_t(
+	const struct data_string *client_id,
+	const struct data_string *iaaddr,
+	u_int32_t *data,
+	struct packet *packet,
+	char *reply_data,
+	int *reply_ofs,
+	int reply_data_sz);
+
 static void
 iterate_over_ia_na(struct data_string *reply_ret,
 		   struct packet *packet,
 		   const struct data_string *client_id,
 		   const struct data_string *server_id,
 		   const char *packet_type,
-		   void (*ia_na_match)(),
-		   void (*ia_na_nomatch)())
+		   ia_na_match_t ia_na_match,
+		   ia_na_nomatch_t ia_na_nomatch)
 {
 	struct option_state *opt_state;
 	struct host_decl *packet_host;
@@ -6351,8 +6366,8 @@ iterate_over_ia_pd(struct data_string *r
 		   const struct data_string *client_id,
 		   const struct data_string *server_id,
 		   const char *packet_type,
-		   void (*ia_pd_match)(),
-		   void (*ia_pd_nomatch)())
+		   ia_na_match_t ia_pd_match,
+		   ia_na_nomatch_t ia_pd_nomatch)
 {
 	struct data_string reply_new;
 	int reply_len;