fddidevice.h
上传用户:jlfgdled
上传日期:2013-04-10
资源大小:33168k
文件大小:1k
源码类别:

Linux/Unix编程

开发平台:

Unix_Linux

  1. /*
  2.  * INET An implementation of the TCP/IP protocol suite for the LINUX
  3.  * operating system.  INET is implemented using the BSD Socket
  4.  * interface as the means of communication with the user level.
  5.  *
  6.  * Definitions for the FDDI handlers.
  7.  *
  8.  * Version: @(#)fddidevice.h 1.0.0 08/12/96
  9.  *
  10.  * Author: Lawrence V. Stefani, <stefani@lkg.dec.com>
  11.  *
  12.  * fddidevice.h is based on previous trdevice.h work by
  13.  * Ross Biro, <bir7@leland.Stanford.Edu>
  14.  * Fred N. van Kempen, <waltje@uWalt.NL.Mugnet.ORG>
  15.  * Alan Cox, <gw4pts@gw4pts.ampr.org>
  16.  *
  17.  * This program is free software; you can redistribute it and/or
  18.  * modify it under the terms of the GNU General Public License
  19.  * as published by the Free Software Foundation; either version
  20.  * 2 of the License, or (at your option) any later version.
  21.  */
  22. #ifndef _LINUX_FDDIDEVICE_H
  23. #define _LINUX_FDDIDEVICE_H
  24. #include <linux/if_fddi.h>
  25. #ifdef __KERNEL__
  26. extern int fddi_header(struct sk_buff *skb,
  27.     struct net_device *dev,
  28.     unsigned short type,
  29.     void *daddr,
  30.     void *saddr,
  31.     unsigned len);
  32. extern int fddi_rebuild_header(struct sk_buff *skb);
  33. extern unsigned short fddi_type_trans(struct sk_buff *skb,
  34. struct net_device *dev);
  35. extern struct net_device *init_fddidev(struct net_device *dev, int sizeof_priv);
  36. extern struct net_device *alloc_fddidev(int sizeof_priv);
  37. #endif
  38. #endif /* _LINUX_FDDIDEVICE_H */