From nobody Wed Jan 04 20:11:23 2023 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 4NnLMw2175z2p0JQ; Wed, 4 Jan 2023 20:11:24 +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 4NnLMw1YFHz4PRc; Wed, 4 Jan 2023 20:11:24 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1672863084; 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=U7wAqhu0ETHATUGq18lh/MW8oOooJg+UKp/DxEi24Ic=; b=vSC4tfA320NQg/0ZRT4pqcOgONXBZjgqQLu7WfmZf4/Wag9mWcTX60RC8zakGXEf2ZbW/R O8afKgInN+vueQ6IyZbl+D81TBS/YUZfY4tK+68KV5Q4v0Int2/JnA33yTuLsvfNLmQSyH EAI58PjifxmcSP5krTNGnp3duWQEqL33aUBhyhbMSdN0haNMmleFwIRW7TNlQyBQuPIxYN YsT8qvnca/mNSpyvlTNS4BEQg1Ec3Z9jPjyAPWB2lc9YXJOQcEGfjpu5oU/f68N6jPEr/L QGaWILVdfRndHeP9kuJl3HSwjqmRRFZkdmy5YRX8L+8QyOW6LztKQfPSeCB84Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1672863084; 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=U7wAqhu0ETHATUGq18lh/MW8oOooJg+UKp/DxEi24Ic=; b=Mjsc2eBxt68xdAlek/DriGPDI6xSVbn36jTElxOCHBO3QaP/V8vaFNAFZC3NzxZ7SCJ6h5 ra+bCQDyyTU3ByuDrBr0BojHL/ROCNcn1v8LuY51zCenOJ9Ml54koHM9mFEqHxsNXlWvWZ qAZvil32pb/4DfHTm/AGqURXKQKd11O9/bWx5zl42vqHRZj4OiZHMnB9cPImh+zx3twzeS EYfy6kx9xnnEqLD80gzMAdvyABFQSGOGM6tRa4ieAqeIMhOCC/2BURV+GqFpuwPRqr89e0 kPIoQ1pKpsPHbHVMEzVVyqxrZrRNydnF+eBV1t+Vw/WQKPzYUkuA9WWrmiiUyQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1672863084; a=rsa-sha256; cv=none; b=rLCoMinUtfGq7td3LCo6SlemfEdGrtWD2hNUIt8V7dcjW0+nSn11ezxfaI6TlUeEtD8/q2 OYGzF82X33yRNANX6MvFyGlAmiIpbi9yl3IijNP/5my4cdI9eqeMRTO+ffRfOgUv+daQPZ YJlH5GSaQ1WM87WlBnCC7WQQi9VaThRsy4BxIsySIexgcKZBy3wdqR5Fvp2HyGOhbzG2uE rzqfLpNoqHCQkoAVMdJltIMxx3+9fBR3UOSgoj3E9bKYH5LUCoKjxPsVKyeERJGyTkURmE UCTcc3k8pGmfX4w2+yG8STKMDhcOHU8XYV6zHEr27Fm5ifA4DPIxZRTcf92rBA== 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 4NnLMw0VwbzP60; Wed, 4 Jan 2023 20:11:24 +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 304KBNIi068676; Wed, 4 Jan 2023 20:11:23 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 304KBNxQ068675; Wed, 4 Jan 2023 20:11:23 GMT (envelope-from git) Date: Wed, 4 Jan 2023 20:11:23 GMT Message-Id: <202301042011.304KBNxQ068675@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Justin Hibbits Subject: git: 74abe47e3271 - main - ifnet/DrvAPI: Implement if_setoutputfn() accessor 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: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jhibbits X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 74abe47e3271594b8c6b60c9070806bf6ef8641c Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by jhibbits: URL: https://cgit.FreeBSD.org/src/commit/?id=74abe47e3271594b8c6b60c9070806bf6ef8641c commit 74abe47e3271594b8c6b60c9070806bf6ef8641c Author: Justin Hibbits AuthorDate: 2022-12-21 21:42:42 +0000 Commit: Justin Hibbits CommitDate: 2023-01-04 20:15:10 +0000 ifnet/DrvAPI: Implement if_setoutputfn() accessor Fixes: eb1da3e5258238e1c0555c6a006a341df0821d8e Sponsored by: Juniper Networks, Inc. --- sys/net/if.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sys/net/if.c b/sys/net/if.c index 2e2fbdd1d8c3..3b2256bd94ff 100644 --- a/sys/net/if.c +++ b/sys/net/if.c @@ -4764,6 +4764,12 @@ if_setioctlfn(if_t ifp, if_ioctl_fn_t ioctl_fn) ((struct ifnet *)ifp)->if_ioctl = (void *)ioctl_fn; } +void +if_setoutputfn(if_t ifp, if_output_fn_t output_fn) +{ + ((struct ifnet *)ifp)->if_output = output_fn; +} + void if_setstartfn(if_t ifp, if_start_fn_t start_fn) {