o NET: move net/802/*.c EXPORT_SYMBOLs from net/netsyms.c

Also add #include <linux/netdevice.h> to include/net/pkt_sched.h, as it uses
functions defined on this include (netif_queue_stopped, etc). Ah, the other
datalink stuff was moved as well (eth.c, pe2.c)
parent 9fcd2c66
......@@ -8,6 +8,7 @@
#define PSCHED_CLOCK_SOURCE PSCHED_JIFFIES
#include <linux/config.h>
#include <linux/netdevice.h>
#include <linux/types.h>
#include <linux/pkt_sched.h>
#include <net/pkt_cls.h>
......
......@@ -27,6 +27,7 @@
*/
#include <linux/config.h>
#include <linux/module.h>
#include <asm/system.h>
#include <linux/types.h>
#include <linux/kernel.h>
......@@ -163,3 +164,5 @@ unsigned short fddi_type_trans(struct sk_buff *skb, struct net_device *dev)
return(type);
}
EXPORT_SYMBOL(fddi_type_trans);
......@@ -20,6 +20,7 @@
* 2 of the License, or (at your option) any later version.
*/
#include <linux/module.h>
#include <linux/types.h>
#include <linux/kernel.h>
#include <linux/sched.h>
......@@ -151,3 +152,5 @@ unsigned short hippi_type_trans(struct sk_buff *skb, struct net_device *dev)
return hip->snap.ethertype;
}
EXPORT_SYMBOL(hippi_type_trans);
......@@ -12,22 +12,24 @@
* running raw 802.3 on different devices. Thankfully nobody else
* has done anything like the old IPX.
*/
#include <linux/in.h>
#include <linux/mm.h>
#include <linux/module.h>
#include <linux/netdevice.h>
#include <linux/skbuff.h>
#include <net/datalink.h>
#include <linux/mm.h>
#include <linux/in.h>
/*
* Place an 802.3 header on a packet. The driver will do the mac
* addresses, we just need to give it the buffer length.
*/
static int p8023_request(struct datalink_proto *dl,
struct sk_buff *skb, unsigned char *dest_node)
static int p8023_request(struct datalink_proto *dl,
struct sk_buff *skb, unsigned char *dest_node)
{
struct net_device *dev = skb->dev;
struct net_device *dev = skb->dev;
dev->hard_header(skb, dev, ETH_P_802_3, dest_node, NULL, skb->len);
return dev_queue_xmit(skb);
}
......@@ -35,16 +37,13 @@ static int p8023_request(struct datalink_proto *dl,
/*
* Create an 802.3 client. Note there can be only one 802.3 client
*/
struct datalink_proto *make_8023_client(void)
{
struct datalink_proto *proto;
struct datalink_proto *proto = kmalloc(sizeof(*proto), GFP_ATOMIC);
proto = (struct datalink_proto *) kmalloc(sizeof(*proto), GFP_ATOMIC);
if (proto != NULL)
{
if (proto) {
proto->header_length = 0;
proto->request = p8023_request;
proto->request = p8023_request;
}
return proto;
}
......@@ -52,10 +51,11 @@ struct datalink_proto *make_8023_client(void)
/*
* Destroy the 802.3 client.
*/
void destroy_8023_client(struct datalink_proto *dl)
{
if (dl)
kfree(dl);
}
EXPORT_SYMBOL(destroy_8023_client);
EXPORT_SYMBOL(make_8023_client);
......@@ -18,6 +18,7 @@
#include <asm/uaccess.h>
#include <asm/system.h>
#include <linux/config.h>
#include <linux/module.h>
#include <linux/types.h>
#include <linux/kernel.h>
#include <linux/jiffies.h>
......@@ -600,3 +601,6 @@ static int __init rif_init(void)
}
module_init(rif_init);
EXPORT_SYMBOL(tr_source_route);
EXPORT_SYMBOL(tr_type_trans);
......@@ -37,6 +37,7 @@
* as published by the Free Software Foundation; either version
* 2 of the License, or (at your option) any later version.
*/
#include <linux/module.h>
#include <linux/types.h>
#include <linux/kernel.h>
#include <linux/sched.h>
......@@ -241,3 +242,5 @@ void eth_header_cache_update(struct hh_cache *hh, struct net_device *dev, unsign
memcpy(((u8*)hh->hh_data) + HH_DATA_OFF(sizeof(struct ethhdr)),
haddr, dev->addr_len);
}
EXPORT_SYMBOL(eth_type_trans);
#include <linux/in.h>
#include <linux/mm.h>
#include <linux/module.h>
#include <linux/netdevice.h>
#include <linux/skbuff.h>
#include <net/datalink.h>
#include <linux/mm.h>
#include <linux/in.h>
static int pEII_request(struct datalink_proto *dl,
struct sk_buff *skb, unsigned char *dest_node)
static int pEII_request(struct datalink_proto *dl,
struct sk_buff *skb, unsigned char *dest_node)
{
struct net_device *dev = skb->dev;
struct net_device *dev = skb->dev;
skb->protocol = htons (ETH_P_IPX);
if(dev->hard_header)
dev->hard_header(skb, dev, ETH_P_IPX, dest_node, NULL, skb->len);
skb->protocol = htons(ETH_P_IPX);
if (dev->hard_header)
dev->hard_header(skb, dev, ETH_P_IPX,
dest_node, NULL, skb->len);
return dev_queue_xmit(skb);
}
struct datalink_proto *
make_EII_client(void)
struct datalink_proto *make_EII_client(void)
{
struct datalink_proto *proto;
struct datalink_proto *proto = kmalloc(sizeof(*proto), GFP_ATOMIC);
proto = (struct datalink_proto *) kmalloc(sizeof(*proto), GFP_ATOMIC);
if (proto != NULL) {
if (proto) {
proto->header_length = 0;
proto->request = pEII_request;
}
......@@ -34,3 +35,6 @@ void destroy_EII_client(struct datalink_proto *dl)
if (dl)
kfree(dl);
}
EXPORT_SYMBOL(destroy_EII_client);
EXPORT_SYMBOL(make_EII_client);
......@@ -8,14 +8,6 @@
#include <linux/config.h>
#include <linux/module.h>
#include <linux/netdevice.h>
#include <linux/fddidevice.h>
#include <linux/trdevice.h>
#include <linux/fcdevice.h>
#include <linux/etherdevice.h>
#ifdef CONFIG_HIPPI
#include <linux/hippidevice.h>
#endif
#include <net/pkt_sched.h>
#ifdef CONFIG_INET
......@@ -27,22 +19,9 @@
#endif
#endif
#ifdef CONFIG_IPX_MODULE
extern struct datalink_proto *make_EII_client(void);
extern struct datalink_proto *make_8023_client(void);
extern void destroy_EII_client(struct datalink_proto *);
extern void destroy_8023_client(struct datalink_proto *);
#endif
/* Needed by unix.o */
EXPORT_SYMBOL(files_stat);
#ifdef CONFIG_IPX_MODULE
EXPORT_SYMBOL(make_8023_client);
EXPORT_SYMBOL(destroy_8023_client);
EXPORT_SYMBOL(make_EII_client);
EXPORT_SYMBOL(destroy_EII_client);
#endif
#ifdef CONFIG_INET
#if defined(CONFIG_INET_ESP) || defined(CONFIG_INET_ESP_MODULE) || defined(CONFIG_INET6_ESP) || defined(CONFIG_INET6_ESP_MODULE)
......@@ -52,26 +31,14 @@ EXPORT_SYMBOL_GPL(skb_to_sgvec);
#endif
#endif /* CONFIG_INET */
#ifdef CONFIG_TR
EXPORT_SYMBOL(tr_source_route);
EXPORT_SYMBOL(tr_type_trans);
#endif
/* support for loadable net drivers */
#ifdef CONFIG_NET
EXPORT_SYMBOL(loopback_dev);
EXPORT_SYMBOL(eth_type_trans);
#ifdef CONFIG_FDDI
EXPORT_SYMBOL(fddi_type_trans);
#endif /* CONFIG_FDDI */
EXPORT_SYMBOL(dev_base);
EXPORT_SYMBOL(dev_base_lock);
EXPORT_SYMBOL(__kill_fasync);
#ifdef CONFIG_HIPPI
EXPORT_SYMBOL(hippi_type_trans);
#endif
#ifdef CONFIG_NET_SCHED
EXPORT_SYMBOL(pfifo_qdisc_ops);
EXPORT_SYMBOL(bfifo_qdisc_ops);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment