1 /* 2 * INET An implementation of the TCP/IP protocol suite for the LINUX 3 * operating system. NET is implemented using the BSD Socket 4 * interface as the means of communication with the user level. 5 * 6 * Definitions for the Ethernet handlers. 7 * 8 * Version: @(#)eth.h 1.0.4 05/13/93 9 * 10 * Authors: Ross Biro, <bir7@leland.Stanford.Edu> 11 * Fred N. van Kempen, <waltje@uWalt.NL.Mugnet.ORG> 12 * 13 * Relocated to include/linux where it belongs by Alan Cox 14 * <gw4pts@gw4pts.ampr.org> 15 * 16 * This program is free software; you can redistribute it and/or 17 * modify it under the terms of the GNU General Public License 18 * as published by the Free Software Foundation; either version 19 * 2 of the License, or (at your option) any later version. 20 * 21 * WARNING: This move may well be temporary. This file will get merged with others RSN. 22 * 23 */ 24 #ifndef_LINUX_ETHERDEVICE_H 25 #define_LINUX_ETHERDEVICE_H 26
27
28 #include <linux/if_ether.h>
29
30 #ifdef__KERNEL__ 31 externinteth_header(structsk_buff *skb, structdevice *dev,
32 unsignedshorttype, void *daddr,
33 void *saddr, unsignedlen);
34 externinteth_rebuild_header(void *buff, structdevice *dev,
35 unsignedlongdst, structsk_buff *skb);
36 externunsignedshorteth_type_trans(structsk_buff *skb, structdevice *dev);
37 externvoideth_header_cache_bind(structhh_cache ** hhp, structdevice *dev,
38 unsignedshorthtype, __u32daddr);
39 externvoideth_header_cache_update(structhh_cache *hh, structdevice *dev, unsignedchar * haddr);
40 externvoideth_copy_and_sum(structsk_buff *dest,
41 unsignedchar *src, intlength, intbase);
42 externstructdevice * init_etherdev(structdevice *, int);
43
44 #endif 45
46 #endif/* _LINUX_ETHERDEVICE_H */