From nobody Mon Jan 20 15:10:53 2025 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 4YcDLQ0Bj7z5kD6d; Mon, 20 Jan 2025 15:10:54 +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 4YcDLP4C9yz3G3C; Mon, 20 Jan 2025 15:10:53 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1737385853; 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=e2F2FkxtasF2/KfByqSHHoLssFcboqnjVB+zJ46yohM=; b=EhnLq2Wy9yZ5mwJcPqGeTYyUtehXNI13nSIEqNAV2PaQLsK8RmSF3WLarSMrB4J9SFglNj ++pvP9sUp3Mfc6V9oRpR5AgQQGY4H6/gvJhyFMohTqYIODdZHGu0T7V/1w7mAJWNLNwsYE cOFVe4SA9aRpzQ2qJ3LHWUVkh/B9GoxqudWHY7zOMa8eNcncRCp9j6UaASelq6zpYNyyon tCBOzChsHbPI3XbnCfae01tu0ZUH5GetLyHvxOaNK7NBgp9seAdKlYPR9ov5rMcpmVtbj5 NwcK1WDbx2F40GbTqFhfhlW944KSqD9Mkhp2+wQseEPpy0Q/v0norrWEKrWYwg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1737385853; 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=e2F2FkxtasF2/KfByqSHHoLssFcboqnjVB+zJ46yohM=; b=Mk9f5Va85JMZ34MbtI/g/f9QFCL/eMCKpu2zfBNztrWuKr/R/5w4PrARSuvioL+3dRjd40 6abREiettsDhc2dzs+yiYG0BVnoax2CQ9L+mG9/Kx79hfWeoPuWaVUbR2hihhp9lgi++3r bd7gOV7BrEAm+roIDmXf5dWDOpELH7Vfr1CVsOrYQwQr+E1hqTTbj8XiQBDgfedcwwLr9Q s2CM3ArX+x/yymJ4nkO7ULOqD4dL/eF+HlAXUMkIGH5NDS2RXwY1rIVIMuq8/Hss3n7hOy JpBY7ZnfZr2W41WMNlFNAA2mU2ZepockAvU7F38Wk/TFzEujpRl8WT3ESM7pQg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1737385853; a=rsa-sha256; cv=none; b=smoL1Fd5T5wJx5EwJhJ7dE/SOGfQlLWZ7wdtPWaOlCWEEdXgep7OfmC7Ij6z8OL0uDRi/4 WCTgOYrkHFXmpiR1JM0TosIj/NnITxMy+52SPu2PNZyNwuXXN2MX0aTnc6bTBWXLZaP4oe ZfsKanUvxwCQ55p7nF7HdS8nnwWLgNrV+is1vl1e/3HbTR8uEHxfth7xyrAsHNCeB0KYsZ T3VprDucfhSgxz8K5Ffm3sTEnVERL6dlPKtmlKXM1Q64rV8CPnxqKl432oYe2tKhUl5O6K +pC4aDYcVFQCyS18ONTT2ibSakk0BgjPf30Ai2dwWssBTUFZ2DqiIvbcsb+ZtA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none 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 4YcDLP3bZHz8vr; Mon, 20 Jan 2025 15:10:53 +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 50KFArRi073466; Mon, 20 Jan 2025 15:10:53 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 50KFArq4073463; Mon, 20 Jan 2025 15:10:53 GMT (envelope-from git) Date: Mon, 20 Jan 2025 15:10:53 GMT Message-Id: <202501201510.50KFArq4073463@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Kristof Provost Subject: git: b4bd97ec168e - main - netinet tests: basic garp test 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: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kp X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: b4bd97ec168e97360cf9511b975a20f677864661 Auto-Submitted: auto-generated The branch main has been updated by kp: URL: https://cgit.FreeBSD.org/src/commit/?id=b4bd97ec168e97360cf9511b975a20f677864661 commit b4bd97ec168e97360cf9511b975a20f677864661 Author: Kristof Provost AuthorDate: 2025-01-20 13:27:05 +0000 Commit: Kristof Provost CommitDate: 2025-01-20 13:28:39 +0000 netinet tests: basic garp test Excercise the garp code. This doesn't actively verify anything, but is sufficient to trigger the panic reported in PR 284073, so it's a useful test case to keep. PR: 284073 Sponsored by: Rubicon Communications, LLC ("Netgate") --- tests/sys/netinet/arp.sh | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/tests/sys/netinet/arp.sh b/tests/sys/netinet/arp.sh index 34946d42f250..c7744d5de938 100755 --- a/tests/sys/netinet/arp.sh +++ b/tests/sys/netinet/arp.sh @@ -229,6 +229,32 @@ static_cleanup() { vnet_cleanup } +atf_test_case "garp" "cleanup" +garp_head() { + atf_set descr 'Basic gratuitous arp test' + atf_set require.user root +} + +garp_body() { + vnet_init + + j="v4t-garp" + + epair=$(vnet_mkepair) + + vnet_mkjail ${j} ${epair}a + atf_check -s exit:0 -o ignore \ + jexec ${j} sysctl net.link.ether.inet.garp_rexmit_count=3 + jexec ${j} ifconfig ${epair}a inet 192.0.2.1/24 up + + # Allow some time for the timer to actually fire + sleep 5 +} + +garp_cleanup() { + vnet_cleanup +} + atf_init_test_cases() { @@ -238,6 +264,7 @@ atf_init_test_cases() atf_add_test_case "pending_delete_if" atf_add_test_case "arp_lookup_host" atf_add_test_case "static" + atf_add_test_case "garp" } # end