iPXE
Functions
dhcpmgmt.h File Reference

DHCP management. More...

Go to the source code of this file.

Functions

 FILE_LICENCE (GPL2_OR_LATER_OR_UBDL)
 
int pxebs (struct net_device *netdev, unsigned int pxe_type)
 

Detailed Description

DHCP management.

Definition in file dhcpmgmt.h.

Function Documentation

◆ FILE_LICENCE()

FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL  )

◆ pxebs()

int pxebs ( struct net_device netdev,
unsigned int  pxe_type 
)

Definition at line 41 of file dhcpmgmt.c.

41  {
42  int rc;
43 
44  /* Perform PXE Boot Server Discovery */
45  printf ( "PXEBS (%s type %d)", netdev->name, pxe_type );
46  if ( ( rc = start_pxebs ( &monojob, netdev, pxe_type ) ) == 0 )
47  rc = monojob_wait ( "", 0 );
48 
49  return rc;
50 }
struct arbelprm_rc_send_wqe rc
Definition: arbel.h:14
int printf(const char *fmt,...)
Write a formatted string to the console.
Definition: vsprintf.c:464
int monojob_wait(const char *string, unsigned long timeout)
Wait for single foreground job to complete.
Definition: monojob.c:81
static struct net_device * netdev
Definition: gdbudp.c:52
struct interface monojob
Definition: monojob.c:56
char name[NETDEV_NAME_LEN]
Name of this network device.
Definition: netdevice.h:362
int start_pxebs(struct interface *job, struct net_device *netdev, unsigned int pxe_type)
Start PXE Boot Server Discovery on a network device.
Definition: dhcp.c:1447

References monojob, monojob_wait(), net_device::name, netdev, printf(), rc, and start_pxebs().

Referenced by pxe_menu_boot(), and pxebs_exec().