summaryrefslogtreecommitdiff
path: root/toolchain/kernel-headers/linux-2.6.19-IF-defines.patch
blob: f5cb4edd61de46b9d8cc0bef3e949a67c7f49361 (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
diff -Naur linux-headers-2.6.19.orig/include/linux/if_addr.h linux-headers-2.6.19/include/linux/if_addr.h
--- linux-headers-2.6.19.orig/include/linux/if_addr.h	2006-11-29 13:57:37.000000000 -0800
+++ linux-headers-2.6.19/include/linux/if_addr.h	2006-11-30 08:28:48.000000000 -0800
@@ -52,4 +52,7 @@
 	__u32	tstamp; /* updated timestamp, hundredths of seconds */
 };
 
+#define IFA_RTA(r)  ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifaddrmsg))))
+#define IFA_PAYLOAD(n) NLMSG_PAYLOAD(n,sizeof(struct ifaddrmsg))
+
 #endif
diff -Naur linux-headers-2.6.19.orig/include/linux/if_link.h linux-headers-2.6.19/include/linux/if_link.h
--- linux-headers-2.6.19.orig/include/linux/if_link.h	2006-11-29 13:57:37.000000000 -0800
+++ linux-headers-2.6.19/include/linux/if_link.h	2006-11-30 08:28:48.000000000 -0800
@@ -82,6 +82,9 @@
 
 #define IFLA_MAX (__IFLA_MAX - 1)
 
+#define IFLA_RTA(r)  ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifinfomsg))))
+#define IFLA_PAYLOAD(n) NLMSG_PAYLOAD(n,sizeof(struct ifinfomsg))
+
 /* ifi_flags.
 
    IFF_* flags.
diff -Naur linux-headers-2.6.19.orig/include/linux/rtnetlink.h linux-headers-2.6.19/include/linux/rtnetlink.h
--- linux-headers-2.6.19.orig/include/linux/rtnetlink.h	2006-11-29 13:57:37.000000000 -0800
+++ linux-headers-2.6.19/include/linux/rtnetlink.h	2006-11-30 08:28:48.000000000 -0800
@@ -2,6 +2,7 @@
 #define __LINUX_RTNETLINK_H
 
 #include <linux/netlink.h>
+#include <linux/if_addr.h>
 #include <linux/if_link.h>
 
 /****