home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 3 / PDCD_3.iso / internet / netlite / NET / h / IFACE < prev    next >
Text File  |  1993-04-24  |  984b  |  21 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 send an IP datagram */
  7.         int (*raw)();           /* 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.         int (*put)();           /* Routine to send bytes to interface */
  11.         int (*get)();           /* Routine to receive bytes from interface */
  12.         struct slip *slip;      /* SLIP control structure for dev, if any */
  13.         int16 dev;              /* Subdevice number to pass to send */
  14. };
  15.  
  16. #define NULLIF  (struct interface *)0
  17. extern struct interface *ifaces;        /* Head of interface list */
  18.  
  19. struct interface *if_lookup(char *);
  20.  
  21.