* [PATCH 0/8] Remove most uses of NIPQUAD and NIPQUAD_FMT
@ 2010-01-06 1:20 Joe Perches
2010-01-06 1:20 ` [PATCH 6/8] net/netfilter/ipvs/ip_vs_ftp.c: Use standardized format in sprintf Joe Perches
0 siblings, 1 reply; 4+ messages in thread
From: Joe Perches @ 2010-01-06 1:20 UTC (permalink / raw)
To: linux-kernel
Cc: James E.J. Bottomley, Greg Kroah-Hartman, Mark Fasheh,
Joel Becker, Patrick McHardy, David S. Miller, Alexey Kuznetsov,
Pekka Savola (ipv6), James Morris, Hideaki YOSHIFUJI,
Wensong Zhang, Simon Horman, Julian Anastasov, Andy Grover,
J. Bruce Fields, Neil Brown, Trond Myklebust, linux-scsi, devel,
ocfs2-devel, netfilter-devel, netfilter, coreteam, netdev,
lvs-devel, rds
Convert them to the %pI4 format extension where possible
Only a couple uses are left in netfilter.
Joe Perches (8):
drivers/scsi: Remove uses of NIPQUAD, use %pI4
drivers/staging/pohmelfs/inode.c: Remove uses of NIPQUAD, use %pI4
net/rds: Remove uses of NIPQUAD, use %pI4
net/sunrpc: Remove uses of NIPQUAD, use %pI4
net/ipv4/netfilter/nf_nat_ftp.c: Convert NIPQUAD to %pI4
net/netfilter/ipvs/ip_vs_ftp.c: Use standardized format in sprintf
fs/ocfs2/cluster/tcp.c: Remove use of NIPQUAD, use %pI4
drivers/firmware/iscsi_ibft.c: Remove NIPQUAD_FMT, use %pI4
drivers/firmware/iscsi_ibft.c | 8 +++-----
drivers/scsi/bnx2i/bnx2i_iscsi.c | 4 ++--
drivers/scsi/cxgb3i/cxgb3i_iscsi.c | 5 ++---
drivers/scsi/cxgb3i/cxgb3i_offload.c | 7 ++++---
drivers/staging/pohmelfs/inode.c | 3 +--
fs/ocfs2/cluster/tcp.c | 4 ++--
net/ipv4/netfilter/nf_nat_ftp.c | 2 +-
net/netfilter/ipvs/ip_vs_ftp.c | 2 +-
net/rds/tcp_connect.c | 7 +++----
net/rds/tcp_listen.c | 6 +++---
net/rds/tcp_send.c | 4 ++--
net/sunrpc/xprtrdma/transport.c | 3 +--
net/sunrpc/xprtsock.c | 5 ++---
13 files changed, 27 insertions(+), 33 deletions(-)
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 6/8] net/netfilter/ipvs/ip_vs_ftp.c: Use standardized format in sprintf
2010-01-06 1:20 [PATCH 0/8] Remove most uses of NIPQUAD and NIPQUAD_FMT Joe Perches
@ 2010-01-06 1:20 ` Joe Perches
2010-01-06 2:34 ` Simon Horman
0 siblings, 1 reply; 4+ messages in thread
From: Joe Perches @ 2010-01-06 1:20 UTC (permalink / raw)
To: linux-kernel
Cc: Wensong Zhang, Simon Horman, Julian Anastasov, Patrick McHardy,
David S. Miller, netdev, lvs-devel, netfilter-devel, netfilter,
coreteam
Use the same format string as net/ipv4/netfilter/nf_nat_ftp.c
to encode an ipv4 address and port.
Both uses should be a single common function.
Signed-off-by: Joe Perches <joe@perches.com>
---
net/netfilter/ipvs/ip_vs_ftp.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/net/netfilter/ipvs/ip_vs_ftp.c b/net/netfilter/ipvs/ip_vs_ftp.c
index 33e2c79..73f38ea 100644
--- a/net/netfilter/ipvs/ip_vs_ftp.c
+++ b/net/netfilter/ipvs/ip_vs_ftp.c
@@ -208,7 +208,7 @@ static int ip_vs_ftp_out(struct ip_vs_app *app, struct ip_vs_conn *cp,
*/
from.ip = n_cp->vaddr.ip;
port = n_cp->vport;
- sprintf(buf, "%d,%d,%d,%d,%d,%d", NIPQUAD(from.ip),
+ sprintf(buf, "%u,%u,%u,%u,%u,%u", NIPQUAD(from.ip),
(ntohs(port)>>8)&255, ntohs(port)&255);
buf_len = strlen(buf);
--
1.6.6.rc0.57.gad7a
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH 6/8] net/netfilter/ipvs/ip_vs_ftp.c: Use standardized format in sprintf
2010-01-06 1:20 ` [PATCH 6/8] net/netfilter/ipvs/ip_vs_ftp.c: Use standardized format in sprintf Joe Perches
@ 2010-01-06 2:34 ` Simon Horman
2010-01-11 10:54 ` Patrick McHardy
0 siblings, 1 reply; 4+ messages in thread
From: Simon Horman @ 2010-01-06 2:34 UTC (permalink / raw)
To: Joe Perches
Cc: linux-kernel, Wensong Zhang, Julian Anastasov, Patrick McHardy,
David S. Miller, netdev, lvs-devel, netfilter-devel, netfilter,
coreteam
On Tue, Jan 05, 2010 at 05:20:18PM -0800, Joe Perches wrote:
> Use the same format string as net/ipv4/netfilter/nf_nat_ftp.c
> to encode an ipv4 address and port.
>
> Both uses should be a single common function.
>
> Signed-off-by: Joe Perches <joe@perches.com>
Acked-by: Simon Horman <horms@verge.net.au>
> ---
> net/netfilter/ipvs/ip_vs_ftp.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/net/netfilter/ipvs/ip_vs_ftp.c b/net/netfilter/ipvs/ip_vs_ftp.c
> index 33e2c79..73f38ea 100644
> --- a/net/netfilter/ipvs/ip_vs_ftp.c
> +++ b/net/netfilter/ipvs/ip_vs_ftp.c
> @@ -208,7 +208,7 @@ static int ip_vs_ftp_out(struct ip_vs_app *app, struct ip_vs_conn *cp,
> */
> from.ip = n_cp->vaddr.ip;
> port = n_cp->vport;
> - sprintf(buf, "%d,%d,%d,%d,%d,%d", NIPQUAD(from.ip),
> + sprintf(buf, "%u,%u,%u,%u,%u,%u", NIPQUAD(from.ip),
> (ntohs(port)>>8)&255, ntohs(port)&255);
> buf_len = strlen(buf);
>
> --
> 1.6.6.rc0.57.gad7a
>
> --
> To unsubscribe from this list: send the line "unsubscribe lvs-devel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 6/8] net/netfilter/ipvs/ip_vs_ftp.c: Use standardized format in sprintf
2010-01-06 2:34 ` Simon Horman
@ 2010-01-11 10:54 ` Patrick McHardy
0 siblings, 0 replies; 4+ messages in thread
From: Patrick McHardy @ 2010-01-11 10:54 UTC (permalink / raw)
To: Simon Horman
Cc: Joe Perches, linux-kernel, Wensong Zhang, Julian Anastasov,
David S. Miller, netdev, lvs-devel, netfilter-devel, netfilter,
coreteam
Simon Horman wrote:
> On Tue, Jan 05, 2010 at 05:20:18PM -0800, Joe Perches wrote:
>> Use the same format string as net/ipv4/netfilter/nf_nat_ftp.c
>> to encode an ipv4 address and port.
>>
>> Both uses should be a single common function.
>>
>> Signed-off-by: Joe Perches <joe@perches.com>
>
> Acked-by: Simon Horman <horms@verge.net.au>
Applied, thanks.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-01-11 10:54 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-06 1:20 [PATCH 0/8] Remove most uses of NIPQUAD and NIPQUAD_FMT Joe Perches
2010-01-06 1:20 ` [PATCH 6/8] net/netfilter/ipvs/ip_vs_ftp.c: Use standardized format in sprintf Joe Perches
2010-01-06 2:34 ` Simon Horman
2010-01-11 10:54 ` Patrick McHardy
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).