pxe, ftp: Don't convert an IP address to host byte order
commit3e86c0e35b96fef58dbfbb96e3ef509ea4047d2e
authorH. Peter Anvin <hpa@linux.intel.com>
Sun, 1 Sep 2013 05:01:20 +0000 (31 22:01 -0700)
committerH. Peter Anvin <hpa@linux.intel.com>
Sun, 1 Sep 2013 05:01:20 +0000 (31 22:01 -0700)
tree5447bebb88dbb185c3956ecfb78669a6d241936f
parent4f2d3e62b61ebe21498844c0ca346482aca118c9
pxe, ftp: Don't convert an IP address to host byte order

FTP passes an IP address and port number as decimal string encoded
comma-separated octets.  The first four are the IP number and the
second two the port.  We consider port numbers as ordinary integers
and they should be in host byte order when passed into
core_tcp_connect(), but IP addresses are simply kept in network byte
order at all times and thus should not be converted.

Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
core/fs/pxe/ftp.c