home *** CD-ROM | disk | FTP | other *** search
/ Media Share 9 / MEDIASHARE_09.ISO / network / src_1218.zip / BOOTPD.H < prev    next >
C/C++ Source or Header  |  1991-05-31  |  2KB  |  49 lines

  1. /*************************************************/
  2. /* Center for Information Technology Integration */
  3. /*           The University of Michigan          */
  4. /*                    Ann Arbor                  */
  5. /*                                               */
  6. /* Dedicated to the public domain.               */
  7. /* Send questions to info@citi.umich.edu         */
  8. /*                                               */
  9. /* BOOTP is documented in RFC 951 and RFC 1048   */
  10. /*************************************************/
  11.  
  12. #include "socket.h"
  13. #include "arp.h"
  14.  
  15. #define MHOSTS  12     /* max number of 'hosts' structs */
  16. #define BP_MAXDNS 5
  17.  
  18.  
  19. struct bootpd_stat {
  20.     int    rcvd;
  21.     int    bad_size;
  22.     int    bad_op;
  23.  
  24. };
  25.  
  26. struct host {
  27.         char name[31];        /* host name (and suffix) */
  28.         unsigned char  htype;    /* hardware type */
  29.         char   haddr[MAXHWALEN];/* hardware address */
  30.         struct in_addr iaddr;    /* internet address */
  31.         char bootfile[32];    /* default boot file name */
  32. };
  33.  
  34. #define NULLHOST (struct host *) 0
  35.  
  36. extern char *ArpNames[];
  37. extern char bp_ascii[];
  38.  
  39. int readtab __ARGS((void));
  40. void readtab_shut __ARGS((void));
  41. void bp_log __ARGS((char *fmt,...));
  42. void da_status __ARGS((struct iface *iface));
  43. int da_assign __ARGS((struct iface *iface,char *hwaddr,int32 *ipaddr));
  44. int da_init __ARGS((void));
  45. void da_shut __ARGS((void));
  46. int da_done_net __ARGS((struct iface *iface));
  47. int da_serve_net __ARGS((struct iface *iface,int32 rstart,int32 rend));
  48.  
  49.