From patchwork Tue Apr 27 10:42:57 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Phil Sutter X-Patchwork-Id: 1470640 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=23.128.96.18; helo=vger.kernel.org; envelope-from=netfilter-devel-owner@vger.kernel.org; receiver=) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by ozlabs.org (Postfix) with ESMTP id 4FTyz45g1lz9sSs for ; Tue, 27 Apr 2021 20:43:12 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235585AbhD0Knz (ORCPT ); Tue, 27 Apr 2021 06:43:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60830 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235562AbhD0Kny (ORCPT ); Tue, 27 Apr 2021 06:43:54 -0400 Received: from orbyte.nwl.cc (orbyte.nwl.cc [IPv6:2001:41d0:e:133a::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 679DEC061574 for ; Tue, 27 Apr 2021 03:43:11 -0700 (PDT) Received: from localhost ([::1]:59176 helo=tatos) by orbyte.nwl.cc with esmtp (Exim 4.94) (envelope-from ) id 1lbLBN-0001Yg-VS; Tue, 27 Apr 2021 12:43:10 +0200 From: Phil Sutter To: Pablo Neira Ayuso Cc: netfilter-devel@vger.kernel.org Subject: [iptables PATCH 0/2] Drop use of some obsolete functions Date: Tue, 27 Apr 2021 12:42:57 +0200 Message-Id: <20210427104259.22042-1-phil@nwl.cc> X-Mailer: git-send-email 2.31.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netfilter-devel@vger.kernel.org A run of 'rpminspect' (a static code analyzer) complained about calls to gethostbyaddr(), inet_aton() and inet_ntoa(). Eliminating those offered the chance to drop some redundant code from nft-arp.c as well. Phil Sutter (2): Eliminate inet_aton() and inet_ntoa() nft-arp: Make use of ipv4_addr_to_string() extensions/libebt_among.c | 6 ++- iptables/nft-arp.c | 99 ++++----------------------------------- iptables/nft-ipv4.c | 23 +++++---- iptables/xshared.c | 6 +-- iptables/xshared.h | 3 ++ 5 files changed, 32 insertions(+), 105 deletions(-)