Watt-32 tcp/ip  2.2 dev-rel.10
Data Structures | Enumerations | Functions | Variables
pcbootp.h File Reference

Go to the source code of this file.

Data Structures

struct  bootp
 
struct  bootp_vend
 

Enumerations

enum  BOOTP_Options {
  BOOTP_OPT_PAD = 0,
  BOOTP_OPT_SUBNET_MASK = 1,
  BOOTP_OPT_TIME_OFFSET = 2,
  BOOTP_OPT_ROUTERS_ON_SNET = 3,
  BOOTP_OPT_TIME_SRV = 4,
  BOOTP_OPT_NAME_SRV = 5,
  BOOTP_OPT_DNS_SRV = 6,
  BOOTP_OPT_LOG_SRV = 7,
  BOOTP_OPT_COOKIE_SRV = 8,
  BOOTP_OPT_LPR_SRV = 9,
  BOOTP_OPT_IMPRESS_SRV = 10,
  BOOTP_OPT_RES_LOCATION_SRV = 11,
  BOOTP_OPT_HOST_NAME = 12,
  BOOTP_OPT_BOOT_FSIZE = 13,
  BOOTP_OPT_DOMAIN_NAME = 15,
  BOOTP_OPT_NON_LOCAL_SRC_ROUTE = 20,
  BOOTP_OPT_POLICY_FILTER = 21,
  BOOTP_OPT_MAX_DGRAM_REASM_SIZE = 22,
  BOOTP_OPT_IP_DEFAULT_TTL = 23,
  BOOTP_OPT_PATH_MTU_AGING_TIMEOUT = 24,
  BOOTP_OPT_PATH_MTU_PLATEAU_TABLE = 25,
  BOOTP_OPT_IF_MTU = 26,
  BOOTP_OPT_ALL_SUBNETS_LOCAL = 27,
  BOOTP_OPT_BROADCAST_ADDR = 28,
  BOOTP_OPT_PERFORM_MASK_DISCOVERY = 29,
  BOOTP_OPT_MASK_SUPPLIER = 30,
  BOOTP_OPT_PERFORM_ROUTER_DISCOVERY = 31,
  BOOTP_OPT_ROUTER_SOLICITATION_ADDR = 32,
  BOOTP_OPT_STATIC_ROUTE = 33,
  BOOTP_OPT_TRAILER_ENCAPSULATION = 34,
  BOOTP_OPT_ARP_CACHE_TIMEOUT = 35,
  BOOTP_OPT_ETHERNET_ENCAPSULATION = 36,
  BOOTP_OPT_END = 255
}
 

Functions

int BOOTP_do_boot (void)
 Main BOOTP initialisation. More...
 

Variables

DWORD _bootp_host
 
int _bootp_timeout
 

Detailed Description

Bootstrap Protocol (BOOTP). Based on RFC 951.

Definition in file pcbootp.h.

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
1success, local IP address set.
0something failed.
Note
Doesn't retry the bootp_xmit() on timeout.

Definition at line 60 of file pcbootp.c.

References my_ip_addr, sock_close(), and udp_open().