netlink/arp/ipv6 patch

Michael Bruck (micha@tecnet.de)
Sat, 23 Nov 1996 00:45:48 +0100 (MET)


Hi!

Somewhere between 2.1.3 and 2.1.11 there were introduced
changed to the netlink driver interface. When I compiled
my kernel with netlink driver, ipv6 and arpd I got
errors about passing invalid arguments to the netlink
callback function. I've appended my changes.

---------------------------------------------------------------------

--- net/ipv6/ipv6_route.c.old Sat Nov 9 18:50:27 1996
+++ net/ipv6/ipv6_route.c Thu Nov 21 19:30:01 1996
@@ -101,7 +101,7 @@

static void rt6_walk_tree(f_pnode func, void * arg, int filter);
static void rt6_rt_timeout(struct fib6_node *fn, void *arg);
-static int rt6_msgrcv(struct sk_buff *skb);
+static int rt6_msgrcv(int minor, struct sk_buff *skb);

struct rt6_statistics rt6_stats = {
1, 0, 1, 1, 0
@@ -1865,7 +1865,7 @@
* routing socket moral equivalent
*/

-static int rt6_msgrcv(struct sk_buff *skb)
+static int rt6_msgrcv(int minor, struct sk_buff *skb)
{
int count = 0;
struct in6_rtmsg *rtmsg;

---------------------------------------------------------------------

--- net/ipv4/arp.c.old Thu Nov 14 17:26:17 1996
+++ net/ipv4/arp.c Thu Nov 21 19:21:06 1996
@@ -664,7 +664,7 @@
}


-static int arpd_callback(struct sk_buff *skb)
+static int arpd_callback(int minor, struct sk_buff *skb)
{
struct device * dev;
struct arpd_request *retreq;