summaryrefslogtreecommitdiff
blob: af5587fa6f2464d0ed561f33af6c35a9f1fdab33 (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
46
47
48
49
50
51
52
53
54
55
--- rarpd.c
+++ rarpd.c
@@ -55,10 +55,10 @@ struct iflink
 	unsigned char	lladdr[16];
 	char		name[IFNAMSIZ];
-	struct ifaddr 	*ifa_list;
+	struct kern_ifaddr 	*ifa_list;
 } *ifl_list;
 
-struct ifaddr
+struct kern_ifaddr
 {
-	struct ifaddr 	*next;
+	struct kern_ifaddr 	*next;
 	__u32		prefix;
 	__u32		mask;
@@ -92,5 +92,5 @@ void load_if(void)
 	struct ifreq *ifrp, *ifend;
 	struct iflink *ifl;
-	struct ifaddr *ifa;
+	struct kern_ifaddr *ifa;
 	struct ifconf ifc;
 	struct ifreq ibuf[256];
@@ -183,5 +183,5 @@ void load_if(void)
 			if (mask == 0 || prefix == 0)
 				continue;
-			ifa = (struct ifaddr*)malloc(sizeof(*ifa));
+			ifa = (struct kern_ifaddr*)malloc(sizeof(*ifa));
 			memset(ifa, 0, sizeof(*ifa));
 			ifa->local = addr;
@@ -239,8 +239,8 @@ int bootable(__u32 addr)
 }
 
-struct ifaddr *select_ipaddr(int ifindex, __u32 *sel_addr, __u32 **alist)
+struct kern_ifaddr *select_ipaddr(int ifindex, __u32 *sel_addr, __u32 **alist)
 {
 	struct iflink *ifl;
-	struct ifaddr *ifa;
+	struct kern_ifaddr *ifa;
 	int retry = 0;
 	int i;
@@ -298,5 +298,5 @@ struct rarp_map *rarp_lookup(int ifindex
 	if (r == NULL) {
 		if (hatype == ARPHRD_ETHER && halen == 6) {
-			struct ifaddr *ifa;
+			struct kern_ifaddr *ifa;
 			struct hostent *hp;
 			char ename[256];
@@ -371,5 +371,5 @@ int put_myipaddr(unsigned char **ptr_p, 
 	__u32 laddr = 0;
 	struct iflink *ifl;
-	struct ifaddr *ifa;
+	struct kern_ifaddr *ifa;
 
 	for (ifl=ifl_list; ifl; ifl = ifl->next)