|
|
1.1 root 1: #define u_short unsigned short
2: #define u_char unsigned char
3:
4: #include "../chunix/chconf.h"
5: #include "../chunix/chsys.h"
6: #include "../chaos/chaos.h"
7: #include "../chaos/address-res.h"
8:
9: /* NOTE!!! The size of this structure must not be an even multiple of 8 !!! */
10: struct chilpkt {
11: struct il_rheader ilp_rhdr;
12: union {
13: struct ar_packet ilp_Arpkt;
14: struct {
15: struct pkt_header ilp_Chhead;
16: char ilp_Chdata[CHMAXDATA];
17: } ilp_Chpkt;
18: } ilp_data;
19: char ilp_crc[4];
20: };
21: #define ilp_arpkt ilp_data.ilp_Arpkt
22: #define ilp_chhead ilp_data.ilp_Chpkt.ilp_Chhead
23: #define ilp_chdata ilp_data.ilp_Chpkt.ilp_Chdata
24: #define ilp_chpkt ilp_data.ilp_Chpkt
25:
26: main()
27: {
28: printf("Total size: %d\n", sizeof(struct chilpkt));
29: printf("arpkt: %d\n", &0->ilp_arpkt);
30: printf("chhead: %d\n", &0->ilp_chhead);
31: printf("chhdata: %d\n", &0->ilp_chdata);
32: printf("chpkt: %d\n", &0->ilp_chpkt);
33: printf("crc: %d\n", &0->ilp_crc);
34: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.