home *** CD-ROM | disk | FTP | other *** search
/ The Fred Fish Collection 1.5 / ffcollection-1-5-1992-11.iso / ff_disks / 200-299 / ff225.lzh / AmigaTCP / src / iface.h < prev    next >
C/C++ Source or Header  |  1989-06-24  |  780b  |  18 lines

  1. /* Interface control structure */
  2. struct interface {
  3.     struct interface *next;    /* Linked list pointer */
  4.     char *name;        /* Ascii string with interface name */
  5.     int16 mtu;        /* Maximum transmission unit size */
  6.     int (*send)();        /* Routine to call to send IP datagram */
  7.     int (*output)();    /* Routine to call to send raw packet */
  8.     int (*recv)();        /* Routine to kick to process input */
  9.     int (*stop)();        /* Routine to call before detaching */
  10.     int16 dev;        /* Subdevice number to pass to send */
  11.     int16 flags;        /* State of interface */
  12. #define    IF_ACTIVE    0x01
  13. #define    IF_BROADCAST    0x04    /* Interface is capable of broadcasting */
  14.     char *hwaddr;        /* Device hardware address, if any */
  15. };
  16. #define    NULLIF    (struct interface *)NULL
  17. extern struct interface *ifaces;    /* Head of interface list */
  18.