diff options
| author | Michael Brown | 2006-08-04 01:10:14 +0200 |
|---|---|---|
| committer | Michael Brown | 2006-08-04 01:10:14 +0200 |
| commit | ffe0e24249d1dbec59f7b2454974a5855043ba95 (patch) | |
| tree | 891adef4bdc493cc66e2430b600aa8edf1ef1deb /src/include | |
| parent | Updated PXE UDP implementation to use the new Etherboot UDP API. (diff) | |
| download | ipxe-ffe0e24249d1dbec59f7b2454974a5855043ba95.tar.gz ipxe-ffe0e24249d1dbec59f7b2454974a5855043ba95.tar.xz ipxe-ffe0e24249d1dbec59f7b2454974a5855043ba95.zip | |
Make the UDP senddata() methods return a status code.
udp_connect() now follows the standard BSD sockets semantics and simply
sets the default address for outgoing packets; it doesn't filter incoming
packets.
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/gpxe/udp.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/include/gpxe/udp.h b/src/include/gpxe/udp.h index 0104cc067..a07198503 100644 --- a/src/include/gpxe/udp.h +++ b/src/include/gpxe/udp.h @@ -48,6 +48,7 @@ struct udp_operations { * @v conn UDP connection * @v buf Temporary data buffer * @v len Length of temporary data buffer + * @ret rc Return status code * * The application may use the temporary data buffer to * construct the data to be sent. Note that merely filling @@ -56,8 +57,8 @@ struct udp_operations { * the buffer is not compulsory; the application may call * udp_send() on any block of data. */ - void ( * senddata ) ( struct udp_connection *conn, void *buf, - size_t len ); + int ( * senddata ) ( struct udp_connection *conn, void *buf, + size_t len ); /** * New data received * @@ -98,7 +99,6 @@ extern int udp_bind ( struct udp_connection *conn, uint16_t local_port ); extern void udp_bind_promisc ( struct udp_connection *conn ); extern void udp_connect ( struct udp_connection *conn, struct sockaddr_tcpip *peer ); -extern void udp_connect_promisc ( struct udp_connection *conn ); extern int udp_open ( struct udp_connection *conn, uint16_t local_port ); extern void udp_close ( struct udp_connection *conn ); |
