home *** CD-ROM | disk | FTP | other *** search
/ Il CD di internet / CD.iso / SOURCE / KERNEL-S / V1.0 / LINUX-1.0 / LINUX-1 / linux / net / inet / eth.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-12-01  |  1.2 KB  |  36 lines

  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. extern char        *eth_print(unsigned char *ptr);
  26. extern void        eth_dump(struct ethhdr *eth);
  27. extern int        eth_header(unsigned char *buff, struct device *dev,
  28.                    unsigned short type, unsigned long daddr,
  29.                    unsigned long saddr, unsigned len);
  30. extern int        eth_rebuild_header(void *buff, struct device *dev);
  31. extern void        eth_add_arp(unsigned long addr, struct sk_buff *skb,
  32.                     struct device *dev);
  33. extern unsigned short    eth_type_trans(struct sk_buff *skb, struct device *dev);
  34.  
  35. #endif    /* _ETH_H */
  36.