diff options
author | lpleahy <lpleahy@6f19259b-4bc3-4df7-8a09-765794883524> | 2012-02-24 18:45:09 +0000 |
---|---|---|
committer | lpleahy <lpleahy@6f19259b-4bc3-4df7-8a09-765794883524> | 2012-02-24 18:45:09 +0000 |
commit | f74dc4bbba84a07f8c01fea4c43aa77d800ee43c (patch) | |
tree | 7802fb388e5d12a47ac8a6bf35abae8de12a27f0 /StdLib/EfiSocketLib/Udp4.c | |
parent | 287b4d32eee06417557ca2229c4ed75701aa651e (diff) | |
download | edk2-f74dc4bbba84a07f8c01fea4c43aa77d800ee43c.tar.gz edk2-f74dc4bbba84a07f8c01fea4c43aa77d800ee43c.tar.bz2 edk2-f74dc4bbba84a07f8c01fea4c43aa77d800ee43c.zip |
Fix issues detected by python web-server.
* Removed display of TPL
* Added NOP implementation for SO_REUSEADDR
* Add better detection of socket address
* Return first address
Signed-off-by: lpleahy
Python Web server below:
---------------
import sys
import BaseHTTPServer
from SimpleHTTPServer import SimpleHTTPRequestHandler
HandlerClass = SimpleHTTPRequestHandler
ServerClass = BaseHTTPServer.HTTPServer
Protocol = "HTTP/1.0"
port = 80
server_address = ('', port)
HandlerClass.protocol_version = Protocol
httpd = ServerClass(server_address, HandlerClass)
sa = httpd.socket.getsockname()
print "Serving HTTP on", sa[0], "port", sa[1], "..."
httpd.serve_forever()
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13034 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'StdLib/EfiSocketLib/Udp4.c')
-rw-r--r-- | StdLib/EfiSocketLib/Udp4.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/StdLib/EfiSocketLib/Udp4.c b/StdLib/EfiSocketLib/Udp4.c index 6625c078d0..ae67c4e8c5 100644 --- a/StdLib/EfiSocketLib/Udp4.c +++ b/StdLib/EfiSocketLib/Udp4.c @@ -463,6 +463,7 @@ EslUdp4RemoteAddressSet ( pUdp4->ConfigData.RemoteAddress.Addr[2] = (UINT8)( pRemoteAddress->sin_addr.s_addr >> 16 );
pUdp4->ConfigData.RemoteAddress.Addr[3] = (UINT8)( pRemoteAddress->sin_addr.s_addr >> 24 );
pUdp4->ConfigData.RemotePort = SwapBytes16 ( pRemoteAddress->sin_port );
+ pPort->pSocket->bAddressSet = TRUE;
Status = EFI_SUCCESS;
//
|