Subversion Repositories shark

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 pj 1
#ifndef __ETHERDEVICE__
2
#define __ETHERDEVICE__
3
 
4
#include <linux/compatib.h>
5
 
6
#include <linux/if_ether.h>
7
#include <linux/socket.h>
8
 
9
#define eth_header panic_stub
10
#if 0
11
extern int              eth_header(struct sk_buff *skb, struct device *dev,
12
                                   unsigned short type, void *daddr,
13
                                   void *saddr, unsigned len);
14
extern int              eth_rebuild_header(void *buff, struct device *dev,
15
                        unsigned long dst, struct sk_buff *skb);
16
#endif
17
 
18
/* extern unsigned short        eth_type_trans(struct sk_buff *skb, struct device *dev); */
19
#define eth_type_trans(a,b) 0
20
 
21
#if 0
22
extern void eth_header_cache_bind(struct hh_cache ** hhp, struct device *dev,
23
                                  unsigned short htype, __u32 daddr);
24
extern void eth_header_cache_update(struct hh_cache *hh, struct device *dev, unsigned char * haddr);
25
#endif
26
extern void             eth_copy_and_sum(struct sk_buff *dest,
27
                                unsigned char *src, int length, int base);
28
extern struct device    * init_etherdev(struct device *, int);
29
 
30
#endif