|
|
1.1 root 1: #ifndef INADDR_ANY
2: /*
3: * Bits in internet addresses.
4: */
5: #define IN_CLASSA(i) ((((long)(i))&0x80000000)==0)
6: #define IN_CLASSA_NET 0xff000000
7: #define IN_CLASSA_NSHIFT 24
8: #define IN_CLASSA_HOST 0x00ffffff
9:
10: #define IN_CLASSB(i) ((((long)(i))&0xc0000000)==0x80000000)
11: #define IN_CLASSB_NET 0xffff0000
12: #define IN_CLASSB_NSHIFT 16
13: #define IN_CLASSB_HOST 0x0000ffff
14:
15: #define IN_CLASSC(i) ((((long)(i))&0xc0000000)==0xc0000000)
16: #define IN_CLASSC_NET 0xffffff00
17: #define IN_CLASSC_NSHIFT 8
18: #define IN_CLASSC_HOST 0x000000ff
19:
20: #define INADDR_ANY 0x0
21:
22: #ifdef KERNEL
23: extern struct block *bp_pullup();
24: extern unsigned short u_cksum(), ntohs(), htons();
25: extern unsigned long htonl(), ntohl();
26: #endif KERNEL
27:
28: #ifndef KERNEL
29: struct in_service {
30: char *name; /* service name */
31: char *proto; /* protocol name */
32: unsigned long port; /* port number */
33: };
34:
35: extern struct in_service *in_service();
36: #endif KERNEL
37:
38: #ifdef mc68000
39: #define ntohs(x) (x)
40: #define htons(x) (x)
41: #define ntohl(x) (x)
42: #define htonl(x) (x)
43: #endif
44:
45: typedef unsigned long in_addr;
46: #endif INADDR_ANY
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.