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 * This program is free software; you can redistribute it and/or 14 * modify it under the terms of the GNU General Public License 15 * as published by the Free Software Foundation; either version 16 * 2 of the License, or (at your option) any later version. 17 */ 18 #ifndef_ETH_H 19 #define_ETH_H 20
21
22 #include <linux/if_ether.h>
23
24
25 externchar *eth_print(unsignedchar *ptr);
26 externvoid eth_dump(structethhdr *eth);
27 externinteth_header(structsk_buff *skb, structdevice *dev,
28 unsignedshorttype, void *daddr,
29 void *saddr, unsignedlen);
30 externinteth_rebuild_header(void *buff, structdevice *dev,
31 unsignedlongdst, structsk_buff *skb);
32 externvoid eth_add_arp(unsignedlongaddr, structsk_buff *skb,
33 structdevice *dev);
34 externunsignedshorteth_type_trans(structsk_buff *skb, structdevice *dev);
35 externinteth_header_cache(structdevice *dev, structsock *sk, unsignedlongsaddr, unsignedlongdaddr);
36
37 #endif/* _ETH_H */