From nobody Wed May 28 07:33:00 2025 X-Original-To: dev-commits-src-main@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 4b6h706bQyz5x6c3; Wed, 28 May 2025 07:33:00 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4b6h70601Mz3MCq; Wed, 28 May 2025 07:33:00 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1748417580; 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=5750QYvbU2DiRLZhm2qKYNBeBKMKEQsqBJGHZmxvZJw=; b=Kd+U4QGHNSsc89vu7FwojF57oYRZKEYO+pcS/YQsuB7U9kqwhsrZ3exDI5dLBH8fBw6sQs Mvq4iH/V6CJveYQaZ799zy0VBLKaaRxSyjbNqNenYoJt93Lvy28bF5V1PkPMhqQQBSpoJR mk03eiIHG6/09D+5gkCvVmAyjnL6cJqg3aV9fbj138TbuM2AQDOyLmz0+pxD/hcJkshaBA pUekZ7oOgmFGJZwWZopj1QLWgZe1gGpFTinyMpYutcxEvKR8lXcPSFrXBc4J62xc1e31xz mX3awbU4+zuB25NzsGGX6dn7AdlemmBBdIU9Fir38GaOiPPg/gy7EMf6WpLg/g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1748417580; a=rsa-sha256; cv=none; b=JD5g6FzIfQs4oQv/oexSloFG1mR27EZXwvwQv0KQ7JFsEM8836AGg3QorGuc4BqMsBseJD PsoRVVYT7G1pMYWJqQVLoxS8wXtesnRN8ewoC/QQpSd8lIu764Wt9uFCnsKrT0YXesu+jo kTHVmFkzwJjMMXKU3i/3E1sWJ5pmRlZ05v6FVGLpeqFKTLLOfKy3ndGa0NA/MzrEFRorw1 aRCvrowSNVoRIGzLGGeGsgfQVqmQjqsl8H8FNskkGF54OVch7gOzTSrLmGjlstmFiSpiVv V6ZDG20aJFgK2CWAMhDeQ+h7WhiLOFs9Ax+Bts2BuJq2IIhgVluL/zbWzmEg+A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1748417580; 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=5750QYvbU2DiRLZhm2qKYNBeBKMKEQsqBJGHZmxvZJw=; b=jVX2XaAg5Fr73QPKwIf389o4ZgshPtruckcpHr4Y+a8xJuindvZIUIHRELe1a+LD3SFy5Y bHMfSzkjieneSwEzuVL/17yesErjijUTYUONIah3Qkt2dNYIqJn0ZlZctiHsXguv4QZknO D6jWPLmFZbEzuCR+XiBj6o6t0m/Q/24n6/nsQAWhyjJaAzWPc4TtL0YdqjDYXu8hSk+uIX kP56Ys/viSDdKor4jMZv11/HXt+Ba8k6kn394+WuoWglin6kPz8Tq8bAxH+HI8d25TFP2t KF9JuGKlXmv+ow3yihpDXyc1LQFFfEVFy7ZIbMPIN4icWLhKPfpOjITDqC1whA== 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 4b6h705S5ZzD27; Wed, 28 May 2025 07:33:00 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 54S7X0Am040991; Wed, 28 May 2025 07:33:00 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 54S7X0PD040988; Wed, 28 May 2025 07:33:00 GMT (envelope-from git) Date: Wed, 28 May 2025 07:33:00 GMT Message-Id: <202505280733.54S7X0PD040988@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Li-Wen Hsu Subject: git: f131f3c0bf01 - main - convert_ifapi: handle the special case of getting interface name List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: lwhsu X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: f131f3c0bf017703fba2ee8bea9deb5955e9c4d6 Auto-Submitted: auto-generated The branch main has been updated by lwhsu: URL: https://cgit.FreeBSD.org/src/commit/?id=f131f3c0bf017703fba2ee8bea9deb5955e9c4d6 commit f131f3c0bf017703fba2ee8bea9deb5955e9c4d6 Author: Li-Wen Hsu AuthorDate: 2025-05-28 07:31:53 +0000 Commit: Li-Wen Hsu CommitDate: 2025-05-28 07:31:53 +0000 convert_ifapi: handle the special case of getting interface name Reviewed by: jhibbits Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D50445 --- tools/ifnet/convert_ifapi.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/ifnet/convert_ifapi.sh b/tools/ifnet/convert_ifapi.sh index b226847c9595..13509cd7182c 100755 --- a/tools/ifnet/convert_ifapi.sh +++ b/tools/ifnet/convert_ifapi.sh @@ -157,7 +157,7 @@ handle_misc() { old=`echo "$__ifp__->if_"${word}` new=`echo "if_get"${word}"($__ifp__)"` new=`echo $new | sed -e 's/&/\\\&/'` - line=`echo $line| sed -e's/'$old'/'$new'/g'` + line=`echo $line| sed -e's/'$old'/'$new'/g' | sed -e 's/if_getxname/if_name/'` return 0; fi return 1;