diff options
author | Michael Brown | 2006-08-03 01:08:10 +0200 |
---|---|---|
committer | Michael Brown | 2006-08-03 01:08:10 +0200 |
commit | a0a872f7f1a7e26d8c66b190a9a12ceb89ed37f7 (patch) | |
tree | be80a8cba5bf8c87fddd593635ea29d451426ccc /src/net/udp.c | |
parent | Moved the basic struct sockaddr out of in.h. (diff) | |
download | ipxe-a0a872f7f1a7e26d8c66b190a9a12ceb89ed37f7.tar.gz ipxe-a0a872f7f1a7e26d8c66b190a9a12ceb89ed37f7.tar.xz ipxe-a0a872f7f1a7e26d8c66b190a9a12ceb89ed37f7.zip |
Updated PXE UDP implementation to use the new Etherboot UDP API.
Updated PXE API dispatcher to use copy_{to,from}_user, and moved to
arch/i386 since the implementation is quite architecture-dependent.
(The individual PXE API calls can be largely
architecture-independent.)
Diffstat (limited to 'src/net/udp.c')
-rw-r--r-- | src/net/udp.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/net/udp.c b/src/net/udp.c index eb640adb..9f55c94f 100644 --- a/src/net/udp.c +++ b/src/net/udp.c @@ -67,6 +67,18 @@ void udp_connect ( struct udp_connection *conn, struct sockaddr_tcpip *peer ) { } /** + * Connect UDP connection to all remote hosts and ports + * + * @v conn UDP connection + * + * This undoes the effect of a call to udp_connect(), i.e. allows the + * connection to receive packets from all remote hosts and ports. + */ +void udp_connect_promisc ( struct udp_connection *conn ) { + memset ( &conn->peer, 0, sizeof ( conn->peer ) ); +} + +/** * Open a local port * * @v conn UDP connection |