|
|
1.1 ! root 1: /* network.h */ ! 2: ! 3: /* All includes needed for the network */ ! 4: ! 5: #include <deqna.h> ! 6: #include <ether.h> ! 7: #include <ip.h> ! 8: #include <icmp.h> ! 9: #include <udp.h> ! 10: #include <net.h> ! 11: #include <dgram.h> ! 12: #include <arp.h> ! 13: #include <fserver.h> ! 14: #include <rfile.h> ! 15: #include <domain.h> ! 16: ! 17: /* Declarations data conversion and checksum routines */ ! 18: ! 19: extern short hs2net(); /* host to network short */ ! 20: extern short net2hs(); /* network to host short */ ! 21: extern long hl2net(); /* host to network long */ ! 22: extern long net2hl(); /* network to host long */ ! 23: extern short cksum(); /* 1s comp of 16-bit 2s comp sum*/ ! 24: ! 25: #ifndef INTERNET ! 26: #define INTERNET "" ! 27: #endif ! 28: #ifndef Ndg ! 29: #define Ndg 1 ! 30: #endif ! 31: #ifndef ETHER ! 32: #define ETHER SYSERR ! 33: #endif
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.