File:  [Net/2] / Net2 / arch / i386 / netboot / bootp.c
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 18:19:49 2018 UTC (8 years, 3 months ago) by root
Branches: NetBSD, MAIN
CVS tags: NetBSD09, HEAD
NetBSD 0.9

/* bootp functions
 *
 * bootp.c,v
 * Revision 1.1  1993/07/08  16:03:52  brezak
 * Diskless boot prom code from Jim McKim ([email protected])
 *
 */

int BootpGetInfo(ipaddr_t *ip_servaddr, ipaddr_t *ip_myaddr, ipaddr_t *ip_gateway, char *file_name) {
  /* zero a packet */
  bzero(xxx);
  /* set dest to 255... */
  xxx = IP_BCASTADDR
  /* set up udp ports */
  /* send it */
  /* wait for reply or timeout */
  /* do exp backoff and retry if timeout */
  /* give up after a minute or so */
  /* return success or failure */
}

/* tbd - set up incoming packet handler to handle bootp replies??? */

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.