summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Brown2005-05-22 04:57:50 +0200
committerMichael Brown2005-05-22 04:57:50 +0200
commitacb9d42cf88b1d451eea064e4c851473918f14f1 (patch)
tree992f9ed351066ced378b12da8a2ba6e4d6c8a75a
parentDefine PXE types in terms of other PXE types where possible (diff)
downloadipxe-acb9d42cf88b1d451eea064e4c851473918f14f1.tar.gz
ipxe-acb9d42cf88b1d451eea064e4c851473918f14f1.tar.xz
ipxe-acb9d42cf88b1d451eea064e4c851473918f14f1.zip
Add UDP parameter structures
-rw-r--r--src/include/pxe_api.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/include/pxe_api.h b/src/include/pxe_api.h
index 3ea4e6c12..a0341af11 100644
--- a/src/include/pxe_api.h
+++ b/src/include/pxe_api.h
@@ -320,6 +320,8 @@ extern PXENV_EXIT_t pxenv_tftp_get_fsize ( struct s_PXENV_TFTP_GET_FSIZE
/** Parameter block for pxenv_udp_open() */
struct s_PXENV_UDP_OPEN {
+ PXENV_STATUS_t Status; /**< PXE status code */
+ IP4_t src_ip; /**< IP address of this station */
} PACKED;
typedef struct s_PXENV_UDP_OPEN PXENV_UDP_OPEN_t;
@@ -340,6 +342,7 @@ extern PXENV_EXIT_t pxenv_udp_open ( struct s_PXENV_UDP_OPEN *udp_open );
/** Parameter block for pxenv_udp_close() */
struct s_PXENV_UDP_CLOSE {
+ PXENV_STATUS_t Status; /**< PXE status code */
} PACKED;
typedef struct s_PXENV_UDP_CLOSE PXENV_UDP_CLOSE_t;
@@ -360,6 +363,13 @@ extern PXENV_EXIT_t pxenv_udp_close ( struct s_PXENV_UDP_CLOSE *udp_close );
/** Parameter block for pxenv_udp_write() */
struct s_PXENV_UDP_WRITE {
+ PXENV_STATUS_t Status; /**< PXE status code */
+ IP4_t ip; /**< Destination IP address */
+ IP4_t gw; /**< Gateway IP address */
+ UDP_PORT_t src_port; /**< Source UDP port */
+ UDP_PORT_t dst_port; /**< Destination UDP port */
+ UINT16_t buffer_size; /**< UDP payload buffer size */
+ SEGOFF16_t buffer; /**< UDP payload buffer address */
} PACKED;
typedef struct s_PXENV_UDP_WRITE PXENV_UDP_WRITE_t;
@@ -380,6 +390,13 @@ extern PXENV_EXIT_t pxenv_udp_write ( struct s_PXENV_UDP_WRITE *udp_write );
/** Parameter block for pxenv_udp_read() */
struct s_PXENV_UDP_READ {
+ PXENV_STATUS_t Status; /**< PXE status code */
+ IP4_t src_ip; /**< Source IP address */
+ IP4_t dest_ip; /**< Destination IP address */
+ UDP_PORT_t s_port; /**< Source UDP port */
+ UDP_PORT_t d_port; /**< Destination UDP port */
+ UINT16_t buffer_size; /**< UDP payload buffer size */
+ SEGOFF16_t buffer; /**< UDP payload buffer address */
} PACKED;
typedef struct s_PXENV_UDP_READ PXENV_UDP_READ_t;