-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbootp.h
46 lines (36 loc) · 1.02 KB
/
bootp.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#ifndef _bootp_h
#define _bootp_h
/*
* $Id: bootp.h,v 1.1 1997-07-15 09:45:37 rnhodek Exp $
*
* $Log: bootp.h,v $
* Revision 1.1 1997-07-15 09:45:37 rnhodek
* Initial revision
*
*
*/
/* --------------------------------------------------------------------- */
/* Ethernet Definitions */
#define PKTLEN 1544
typedef unsigned char Packet[PKTLEN];
#define ETHADDRLEN 6
typedef unsigned char HWADDR[ETHADDRLEN];
typedef struct {
int (*probe)( void );
int (*init)( void );
void (*get_hwaddr)( HWADDR *addr );
int (*snd)( Packet *pkt, int len );
int (*rcv)( Packet *pkt, int *len );
} ETHIF_SWITCH;
/* error codes */
#define ETIMEO -1 /* Timeout */
#define ESEND -2 /* General send error (carrier, abort, ...) */
#define ERCV -3 /* General receive error */
#define EFRAM -4 /* Framing error */
#define EOVERFL -5 /* Overflow (too long packet) */
#define ECRC -6 /* CRC error */
typedef unsigned long IPADDR;
#endif /* _bootp_h */
/* Local Variables: */
/* tab-width: 4 */
/* End: */