From nobody Wed Apr 26 13:27:01 2023 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Q605d32y7z46W9F; Wed, 26 Apr 2023 13:27:01 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Q605d2S65z4F6J; Wed, 26 Apr 2023 13:27:01 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1682515621; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=6JZnFP8qdMbYpH9oQSanjLUfPRexEgDRJMhwl8NU+iI=; b=jeuJ7ANPQcb8szEvjYAFExL1mf0K7iJpqfdK4B9kaceaDrBFBbsOMPj2hlwHkG7cQ3KSxP f1s+iTpYKXL5Eb8jinmQ4VKqVe6cMIEKS5n6m6TvpXFwUXliYYEyT4zh/PQH6icINh9mVm n72KB+60Z5tliK8/qqZ1QvW2PMHv3hFumlVsJ4cjJh5mRkDs8SYAWGYEPIAVAgJmnuhNI9 9YzfoxZKIk3QjGpbNq2oqGiJnkyyeELCA5PL4EquA86KwfqM8RzKanPwmbytt9KAbSSo/O cDo0G+AqPDoJNwfNRrKNHlB6gMDBjmK/inv5vxp0cTg0fRHw340EXy2jqKCC9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1682515621; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=6JZnFP8qdMbYpH9oQSanjLUfPRexEgDRJMhwl8NU+iI=; b=N3OhZDWboig3bAA1PawgGmsMWNEAoL65mdxCilCOGD7bghM6iuxgRShb4KXHOQCHIVBcZB BXg8JAhiaLO4FxzFylfm1YRj+CLXMtOT8CnowqCOQNN5EetmCXrHVDXI5GsADHqPBqKujH FVhBJd+9q0vOqfjklPUvI7O9xSxuevrbD4h+aFhdbwWwKm+imd8KC8FEfYmXS1h+mqoFnR HRUR2JZIG9oEgMLGRdk8IONME9pibvQ+0w66p891yMFfN1pzPR6bMq4+N4/SBG1qf5bbZj wl2rKaN/RhzQam4inESN/+zieXUs4ZrEQD7ipHPXzMNrac+BQwf/B9GcDqxeyQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1682515621; a=rsa-sha256; cv=none; b=QlZlSch2K6tflNI3Y7sSp3FOyDAhxXOES5U3/o2xuZ/lVsbmd5Fqcr1VIkJV6HY402eG6L AVsoua0GLBuoQtSxR/8PVRwl6ZWK4mnskXLGptBUteSB5F7KS/A5sK+k57P9GWLOM6ugZ5 l/4mKDtc5a8qG+c86ap8Oy13LzQH5OqU7uNbqu/NQx5DZqiw2/6XhHOtMH/xc8vYIzSQLB xZDi5dV1XUystYT6TmrWCZvpfB5Hz8qNPSdDNCQzMiGE5YjJtFaZ4jP5FNitsDuiyDijv4 JWLFZtjE1QuCVGoR2ppPvX0UXl8XxWsNMoIQzd0Qi9GYy/cAUejzwe6xOxnyDA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Q605d1Vm7zbcK; Wed, 26 Apr 2023 13:27:01 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 33QDR1h1004566; Wed, 26 Apr 2023 13:27:01 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 33QDR1T4004565; Wed, 26 Apr 2023 13:27:01 GMT (envelope-from git) Date: Wed, 26 Apr 2023 13:27:01 GMT Message-Id: <202304261327.33QDR1T4004565@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: "Alexander V. Chernikov" Subject: git: 52199877a658 - main - arp: report successful deletion via netlink to mimic rtsock. List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: melifaro X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 52199877a658842f81f1e997205ff26fb781a5a0 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by melifaro: URL: https://cgit.FreeBSD.org/src/commit/?id=52199877a658842f81f1e997205ff26fb781a5a0 commit 52199877a658842f81f1e997205ff26fb781a5a0 Author: Alexander V. Chernikov AuthorDate: 2023-04-26 12:29:43 +0000 Commit: Alexander V. Chernikov CommitDate: 2023-04-26 13:26:37 +0000 arp: report successful deletion via netlink to mimic rtsock. --- usr.sbin/arp/arp_netlink.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/usr.sbin/arp/arp_netlink.c b/usr.sbin/arp/arp_netlink.c index 6e9ffce52608..30df255b591b 100644 --- a/usr.sbin/arp/arp_netlink.c +++ b/usr.sbin/arp/arp_netlink.c @@ -359,7 +359,9 @@ delete_nl(uint32_t ifindex, char *host) xo_warnx("delete %s: %s (%s)", host, strerror(e.error), e.error_str); else xo_warnx("delete %s: %s", host, strerror(e.error)); - } + } else + printf("%s (%s) deleted\n", host, inet_ntoa(dst->sin_addr)); + snl_free(&ss); return (e.error != 0);