lkml.org 
[lkml]   [2002]   [Jun]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patches in this message
/
Date
From
Subject[PATCH] 2.5.24 : tr_source_route undefined fix
Hello all,
While 'make bzImage' , I received an error with net/netsyms.c that
stated that tr_source_route was undefined. The following patch to
net/802/tr.c and include/linux/trdevice.h addresses this compile error.
Please review for inclusion.

Regards,
Frank

--- net/802/tr.c.old Thu Jun 20 20:52:05 2002
+++ net/802/tr.c Thu Jun 20 20:51:59 2002
@@ -36,7 +36,7 @@
#include <linux/init.h>
#include <net/arp.h>

-static void tr_source_route(struct sk_buff *skb, struct trh_hdr *trh, struct net_device *dev);
+void tr_source_route(struct sk_buff *skb, struct trh_hdr *trh, struct net_device *dev);
static void tr_add_rif_info(struct trh_hdr *trh, struct net_device *dev);
static void rif_check_expire(unsigned long dummy);

@@ -230,7 +230,7 @@
* We try to do source routing...
*/

-static void tr_source_route(struct sk_buff *skb,struct trh_hdr *trh,struct net_device *dev)
+void tr_source_route(struct sk_buff *skb,struct trh_hdr *trh,struct net_device *dev)
{
int i, slack;
unsigned int hash;
--- include/linux/trdevice.h.old Thu Jun 20 21:53:21 2002
+++ include/linux/trdevice.h Thu Jun 20 21:53:11 2002
@@ -37,6 +37,7 @@
extern struct net_device *alloc_trdev(int sizeof_priv);
extern int register_trdev(struct net_device *dev);
extern void unregister_trdev(struct net_device *dev);
+extern void tr_source_route(struct sk_buff *skb, struct trh_hdr *trh, struct net_device *dev);

#endif

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:26    [W:0.037 / U:0.180 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site