PXENV_RESTART_TFTP
[PXE Preboot API]

RESTART TFTP. More...


Defines

#define PXENV_RESTART_TFTP   0x0073
 PXE API function code for pxenv_restart_tftp().

Typedefs

typedef struct s_PXENV_RESTART_TFTP PXENV_RESTART_TFTP_t

Functions

PXENV_EXIT_t pxenv_restart_tftp (struct s_PXENV_TFTP_READ_FILE *restart_tftp)


Detailed Description

RESTART TFTP.

Define Documentation

#define PXENV_RESTART_TFTP   0x0073

PXE API function code for pxenv_restart_tftp().

Definition at line 419 of file pxe_api.h.

Referenced by pxe_api_call().


Typedef Documentation

typedef struct s_PXENV_RESTART_TFTP PXENV_RESTART_TFTP_t

Definition at line 424 of file pxe_api.h.


Function Documentation

PXENV_EXIT_t pxenv_restart_tftp ( struct s_PXENV_TFTP_READ_FILE restart_tftp  ) 

Definition at line 215 of file pxe_preboot.c.

References s_PXENV_TFTP_READ_FILE::Buffer, s_PXENV_TFTP_READ_FILE::BufferSize, DBG, PXE_LOAD_PHYS, pxe_start_nbp(), PXENV_EXIT_SUCCESS, pxenv_tftp_read_file(), and s_PXENV_TFTP_READ_FILE::Status.

Referenced by pxe_api_call().

00216                                                   {
00217         PXENV_EXIT_t tftp_exit;
00218 
00219         DBG ( "PXENV_RESTART_TFTP " );
00220 
00221         /* Words cannot describe the complete mismatch between the PXE
00222          * specification and any possible version of reality...
00223          */
00224         restart_tftp->Buffer = PXE_LOAD_PHYS; /* Fixed by spec, apparently */
00225         restart_tftp->BufferSize = ( 0xa0000 - PXE_LOAD_PHYS ); /* Near enough */
00226         tftp_exit = pxenv_tftp_read_file ( restart_tftp );
00227         if ( tftp_exit != PXENV_EXIT_SUCCESS )
00228                 return tftp_exit;
00229 
00230         /* Fire up the new NBP */
00231         restart_tftp->Status = pxe_start_nbp();
00232 
00233         /* Not sure what "SUCCESS" actually means, since we can only
00234          * return if the new NBP failed to boot...
00235          */
00236         return PXENV_EXIT_SUCCESS;
00237 }


Generated on Tue Apr 6 20:01:59 2010 for gPXE by  doxygen 1.5.7.1