Main Page | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

SRC/pcbootp.c File Reference


Detailed Description

BOOTP - Boot Protocol (RFC 854/951/1048).

These extensions get called if _bootp_on is set.

Version:
0.3: Feb 1, 1992 : J. Dent - patched up various things.

0.2: May 22, 1991 : E.J. Sutcliffe - added RFC_1048 vendor fields.

0.1: May 9, 1991 : E. Engelke - made part of the library.

0.0: May 3, 1991 : E. Engelke - original program as an application.

Definition in file pcbootp.c.

Go to the source code of this file.

Functions

int bootp_xmit (struct bootp *bootp_out)
BOOL bootp_recv (struct bootp *bootp_out, struct bootp *bootp_in)
void bootp_parse (const struct bootp *bootp_in, int len)
int BOOTP_do_boot (void)
 Main BOOTP initialisation.

Variables

DWORD _bootp_host = IP_BCAST_ADDR
int _bootp_timeout = 15
sock_typeboot_sock


Function Documentation

int BOOTP_do_boot void   ) 
 

Main BOOTP initialisation.

Checks global variables _bootp_timeout, _bootp_host. If no host specified, use the broadcast address.

Return values:
1 success, local IP address set.
0 something failed.
Note:
Doesn't retry the bootp_xmit() on timeout.
Definition at line 58 of file pcbootp.c.

References DWORD, my_ip_addr, sock_close(), sock_type::udp, and udp_open().


Generated on Wed Aug 4 08:55:57 2010 for Watt-32 tcp/ip by doxygen 1.3.8