Subversion Repositories shark

Rev

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

Rev Author Line No. Line
629 giacomo 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
#include "ll/sys/cdefs.h"
9
 
10
__BEGIN_DECLS
11
 
12
#define eth_header panic_stub
13
#if 0
14
extern int              eth_header(struct sk_buff *skb, struct device *dev,
15
                                   unsigned short type, void *daddr,
16
                                   void *saddr, unsigned len);
17
extern int              eth_rebuild_header(void *buff, struct device *dev,
18
                        unsigned long dst, struct sk_buff *skb);
19
#endif
20
 
21
/* extern unsigned short        eth_type_trans(struct sk_buff *skb, struct device *dev); */
22
#define eth_type_trans(a,b) 0
23
 
24
#if 0
25
extern void eth_header_cache_bind(struct hh_cache ** hhp, struct device *dev,
26
                                  unsigned short htype, __u32 daddr);
27
extern void eth_header_cache_update(struct hh_cache *hh, struct device *dev, unsigned char * haddr);
28
#endif
29
extern void             eth_copy_and_sum(struct sk_buff *dest,
30
                                unsigned char *src, int length, int base);
31
extern struct device    * init_etherdev(struct device *, int);
32
 
33
__END_DECLS
34
#endif