Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932161Ab0AFBVM (ORCPT ); Tue, 5 Jan 2010 20:21:12 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932137Ab0AFBUs (ORCPT ); Tue, 5 Jan 2010 20:20:48 -0500 Received: from mail.perches.com ([173.55.12.10]:1535 "EHLO mail.perches.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755386Ab0AFBU0 (ORCPT ); Tue, 5 Jan 2010 20:20:26 -0500 From: Joe Perches To: linux-kernel@vger.kernel.org Cc: Patrick McHardy , "David S. Miller" , Alexey Kuznetsov , "Pekka Savola (ipv6)" , James Morris , Hideaki YOSHIFUJI , netfilter-devel@vger.kernel.org, netfilter@vger.kernel.org, coreteam@netfilter.org, netdev@vger.kernel.org Subject: [PATCH 5/8] net/ipv4/netfilter/nf_nat_ftp.c: Convert NIPQUAD to %pI4 Date: Tue, 5 Jan 2010 17:20:17 -0800 Message-Id: X-Mailer: git-send-email 1.6.6.rc0.57.gad7a In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 877 Lines: 26 Signed-off-by: Joe Perches --- net/ipv4/netfilter/nf_nat_ftp.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/net/ipv4/netfilter/nf_nat_ftp.c b/net/ipv4/netfilter/nf_nat_ftp.c index a1d5d58..d1c5afc 100644 --- a/net/ipv4/netfilter/nf_nat_ftp.c +++ b/net/ipv4/netfilter/nf_nat_ftp.c @@ -59,7 +59,7 @@ mangle_eprt_packet(struct sk_buff *skb, { char buffer[sizeof("|1|255.255.255.255|65535|")]; - sprintf(buffer, "|1|%u.%u.%u.%u|%u|", NIPQUAD(newip), port); + sprintf(buffer, "|1|%pI4|%u|", &newip, port); pr_debug("calling nf_nat_mangle_tcp_packet\n"); -- 1.6.6.rc0.57.gad7a -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/