summaryrefslogtreecommitdiffstats
path: root/src/net/udp.c
diff options
context:
space:
mode:
authorMichael Brown2006-08-04 01:42:03 +0200
committerMichael Brown2006-08-04 01:42:03 +0200
commiteb24eece0e23eea241d5779b949a5dc77c6ae8ab (patch)
treeec7d52113c11af3e72939282aed9078aa1502524 /src/net/udp.c
parentMake the UDP senddata() methods return a status code. (diff)
downloadipxe-eb24eece0e23eea241d5779b949a5dc77c6ae8ab.tar.gz
ipxe-eb24eece0e23eea241d5779b949a5dc77c6ae8ab.tar.xz
ipxe-eb24eece0e23eea241d5779b949a5dc77c6ae8ab.zip
Convert some trivial functions to static inlines.
Diffstat (limited to 'src/net/udp.c')
-rw-r--r--src/net/udp.c28
1 files changed, 0 insertions, 28 deletions
diff --git a/src/net/udp.c b/src/net/udp.c
index 5c2188fa..94a71524 100644
--- a/src/net/udp.c
+++ b/src/net/udp.c
@@ -39,34 +39,6 @@ int udp_bind ( struct udp_connection *conn, uint16_t local_port ) {
}
/**
- * Bind UDP connection to all local ports
- *
- * @v conn UDP connection
- *
- * A promiscuous UDP connection will receive packets with any
- * destination UDP port. This is required in order to support the PXE
- * UDP API.
- *
- * If the promiscuous connection is not the only UDP connection, the
- * behaviour is undefined.
- */
-void udp_bind_promisc ( struct udp_connection *conn ) {
- conn->local_port = 0;
-}
-
-/**
- * Connect UDP connection to remote host and port
- *
- * @v conn UDP connection
- * @v peer Destination socket address
- *
- * This function stores the socket address within the connection
- */
-void udp_connect ( struct udp_connection *conn, struct sockaddr_tcpip *peer ) {
- memcpy ( &conn->peer, peer, sizeof ( conn->peer ) );
-}
-
-/**
* Open a local port
*
* @v conn UDP connection