|
|
1.1 root 1: /* netboot
2: *
3: * packet.h,v
4: * Revision 1.1 1993/07/08 16:04:08 brezak
5: * Diskless boot prom code from Jim McKim ([email protected])
6: *
7: * Revision 1.1.1.1 1993/05/28 11:41:08 mckim
8: * Initial version.
9: *
10: *
11: * source in this file came from
12: * the Mach ethernet boot written by Leendert van Doorn.
13: *
14: * Packet layout definitions
15: */
16:
17: /* implementation constants */
18: #define PKT_POOLSIZE 5
19: #define PKT_DATASIZE 1514
20:
21: /*
22: * Structure of a packet.
23: * Each packet can hold exactly one ethernet message.
24: */
25: typedef struct {
26: u_short pkt_used; /* whether this packet it used */
27: u_short pkt_len; /* length of data */
28: u_char *pkt_offset; /* current offset in data */
29: u_char pkt_data[PKT_DATASIZE]; /* packet data */
30: } packet_t;
31:
32: void PktInit(void);
33: packet_t *PktAlloc(u_long);
34: void PktRelease(packet_t *);
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.