home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Datafile PD-CD 3
/
PDCD_3.iso
/
internet
/
netlite
/
NET
/
h
/
IFACE
< prev
next >
Wrap
Text File
|
1993-04-24
|
984b
|
21 lines
/* Interface control structure */
struct interface {
struct interface *next; /* Linked list pointer */
char *name; /* Ascii string with interface name */
int16 mtu; /* Maximum transmission unit size */
int (*send)(); /* Routine to send an IP datagram */
int (*raw)(); /* Routine to call to send raw packet */
int (*recv)(); /* Routine to kick to process input */
int (*stop)(); /* Routine to call before detaching */
int (*put)(); /* Routine to send bytes to interface */
int (*get)(); /* Routine to receive bytes from interface */
struct slip *slip; /* SLIP control structure for dev, if any */
int16 dev; /* Subdevice number to pass to send */
};
#define NULLIF (struct interface *)0
extern struct interface *ifaces; /* Head of interface list */
struct interface *if_lookup(char *);