diff options
author | Julian Anastasov <ja@ssi.bg> | 2006-11-11 01:57:37 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2006-11-11 01:57:37 +0300 |
commit | bb831eb2027c12a740ad4e4ad78f2a0e841ae808 (patch) | |
tree | ad54bd115d60f5ab63e7065b193b59f304e6a27b /net/ipv4/ipvs/ip_vs_ftp.c | |
parent | da413908d5e9ebdd0889a599e80d21d7237021c6 (diff) | |
download | linux-bb831eb2027c12a740ad4e4ad78f2a0e841ae808.tar.xz |
[IPVS]: More endianness fixed.
- make sure port in FTP data is in network order (in fact it was looking
buggy for big endian boxes before Viro's changes)
- htonl -> htons for port
Signed-off-by: Julian Anastasov <ja@ssi.bg>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/ipvs/ip_vs_ftp.c')
-rw-r--r-- | net/ipv4/ipvs/ip_vs_ftp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/ipvs/ip_vs_ftp.c b/net/ipv4/ipvs/ip_vs_ftp.c index 6d398f10aa91..687c1de1146f 100644 --- a/net/ipv4/ipvs/ip_vs_ftp.c +++ b/net/ipv4/ipvs/ip_vs_ftp.c @@ -200,7 +200,7 @@ static int ip_vs_ftp_out(struct ip_vs_app *app, struct ip_vs_conn *cp, from = n_cp->vaddr; port = n_cp->vport; sprintf(buf,"%d,%d,%d,%d,%d,%d", NIPQUAD(from), - ntohs(port)&255, (ntohs(port)>>8)&255); + (ntohs(port)>>8)&255, ntohs(port)&255); buf_len = strlen(buf); /* |