From nobody Fri Dec 22 10:22:42 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 4SxNfC15SGz553s6; Fri, 22 Dec 2023 10:22:43 +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 4SxNfC0BqKz4Ss1; Fri, 22 Dec 2023 10:22:43 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1703240563; 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=L2SP68Av6jTOd3TTViRnJGouvFwcwpui1axthmHd5g0=; b=IKGcrX+rDCERZ3cAFymiwteInrYTzIf6xxhFCsRr9WFoZdLD01qcCm14vkBG+LS2zgrk+A 0N4dgwN86SZcdDdnqLElI65kZGQ22ldWCsEW2gE8p13AUsBBMVMsT217LWr2lQriJm1GFv /jd4tPEFxz1ZRA1qF6Cd1zTKcH6ecqpS7K0DOsDFFPukC2TTydLSauypHB3lqskLpqmrE9 XoiaBG78nm5ZoFBVA0hn9mmVVeP1iYE38WQj9NsuhIYdQY1zhCfEosxEOklUy3W6YrZ7iS 2mQZmH2YfrPkZPLYqftoTII1mWOwHb05Af0f808Gr82VV2GW2mXjH3fHZlj6Qw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1703240563; a=rsa-sha256; cv=none; b=K3H8+/Q5voruvpJqu6l0EH7hV1hZU+HyGDkxB3XrgTrRrcxCQAPNDM5HVggS4EvaYBm4nA BfqZAI3o+CfDFntsj+v/5ED4uWP5n0Ks0Zz040pMBUKqtCGouyWBGL97c/rFg1I4g4tAz1 Wc3aRzGYyYhU4Na295LA+2b3OtYp0V05GT3ml9GVxlxUicKc0O1HCmlI4B66H5slztIad3 fFZOsKu4dMp17+HpV5zg2GgDKLOyQpzGy9oxKI8qFDWftBUSHdQZy7xsxqT2FCPGAUdBzp xFHiyl1OVBqC2erPSVPh3uAQLOgTNDVRC9TJsz9H6B5kDDf/yg4h0YV53z3hIg== 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=1703240563; 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=L2SP68Av6jTOd3TTViRnJGouvFwcwpui1axthmHd5g0=; b=Yiin5n2g00/VF/OK5Ah7HSbgOK3POkg0uHu4iD1Dp0LOOJsAB7XZlajavI69yN+XbK/Fsw n+vxq7zZ6nHeWMwdfGMqWG4pusiDuBuzgSTaKn2y+u4sdOfDn77EHgwMV5AYY4TrIum91F 95oCNYS0VX4SScnEjqHsJQxlPnL2rqbrR4gqFZ4al/Ejqq8HA4ehZE9e1owEdLEm4coIVd PmZXvuu5dhTX5cFZIbWL/CnCJwkwx3BUCX6gFpoK6u/VR3XMYtlQ0zhPYLI1Zqqns5109B xf44f2vqdKpte8tVmu6nzCrA/NTP7SlW7DQNDtrEUN4iN4faMIjFJUyOn+itrQ== 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 4SxNfB6N71z1BLc; Fri, 22 Dec 2023 10:22:42 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 3BMAMge9058170; Fri, 22 Dec 2023 10:22:42 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 3BMAMg6h058167; Fri, 22 Dec 2023 10:22:42 GMT (envelope-from git) Date: Fri, 22 Dec 2023 10:22:42 GMT Message-Id: <202312221022.3BMAMg6h058167@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Richard Scheffenegger Subject: git: 8717c306bd59 - main - tcp: allow userspace use of tcp header flags accessor functions 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: rscheff X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 8717c306bd5929b9d3cc9535aa1f9830993033de Auto-Submitted: auto-generated The branch main has been updated by rscheff: URL: https://cgit.FreeBSD.org/src/commit/?id=8717c306bd5929b9d3cc9535aa1f9830993033de commit 8717c306bd5929b9d3cc9535aa1f9830993033de Author: Richard Scheffenegger AuthorDate: 2023-12-21 23:47:36 +0000 Commit: Richard Scheffenegger CommitDate: 2023-12-22 01:20:29 +0000 tcp: allow userspace use of tcp header flags accessor functions Provide accessor functions to all 12 possible TCP header flags for userspace too. Reviewed By: zlei MFC after: 2 weeks Sponsored by: Netapp, Inc. Differential Revision: https://reviews.freebsd.org/D43152 --- sys/netinet/tcp_var.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sys/netinet/tcp_var.h b/sys/netinet/tcp_var.h index f8d5654afa24..af441b4fc7d7 100644 --- a/sys/netinet/tcp_var.h +++ b/sys/netinet/tcp_var.h @@ -1576,6 +1576,7 @@ tcp_fields_to_net(struct tcphdr *th) th->th_win = htons(th->th_win); th->th_urp = htons(th->th_urp); } +#endif /* _KERNEL */ static inline uint16_t tcp_get_flags(const struct tcphdr *th) @@ -1589,6 +1590,4 @@ tcp_set_flags(struct tcphdr *th, uint16_t flags) th->th_x2 = (flags >> 8) & 0x0f; th->th_flags = flags & 0xff; } -#endif /* _KERNEL */ - #endif /* _NETINET_TCP_VAR_H_ */