From nobody Mon Jan 23 22:11:53 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 4P148974Nxz2t0W2; Mon, 23 Jan 2023 22:11:53 +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 4P148965ccz3Kh4; Mon, 23 Jan 2023 22:11:53 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1674511913; 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=Qbt2n8TBE/npBrICsfW5Xwd1Ebs18tF2/1rl3ATWU9E=; b=HP+VFF1HTEBYAJM0sADNAqe8NwuLL4p1joe6S2ff/zh7bvebKQlM8JHcdSLnsM4h5PP0+M ApLMVDWTIx+9sY+wDbhaSjI6j1s70+0/MAaW3Wkdk1Urn4a7msUDqkmpOPs7MTo8UQS4kX OHfFMRcyDa1Q131qQDbknjfZeXyAmvwBT87/4tI6asAjmqybzsZ9zgFHyRTOYs4vzx6zib Ft7F3WdRO/ZRfaFN3PLUJoDmwr1GFLL2KO35htSsgG0bV9vC5XoXGX+BwkGUNXYCt1ZZnU bq3WWyZe8Y6QTnuJ4NFCmOfdnOIWq+QNW89cP6aT5gLY9v/lToPsANMSzi2fzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1674511913; 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=Qbt2n8TBE/npBrICsfW5Xwd1Ebs18tF2/1rl3ATWU9E=; b=fjCxk1KGR3Af189ymKjAGwuNF0dPMddb8Z2NtGtbS6z92bTEkH/+uD+xljMqNNMhxN3KRT RPucy4BCtFWubNKQNGgtYfNmPc+nKxkNWSF1JrGEiadFhSKlenBDA2LaMdMCHQl/K490V0 ozJ7ZdJux3y/IVv4MQS6Gmh5QrSMv2xCs1IbbFUGSSNJbDMPOyqrNNH7k7hXjHlbvmayrb 65YwBfgo/Pm0KuMrXJGLtps2+LS8Mz8o14JIPjHgrO7Mh6Z6xAyXoAoX98uwS029mGAbE5 m2PWvKytpNxAQ7zF+H9P2szhvAD5YJoY2iQIoSpjRKJ+c1T37om1yg1Y3jro8w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1674511913; a=rsa-sha256; cv=none; b=m0NAW5miy64FG30tiimZbmsLH9uyckZamfJhwGtlutvHQ+QYLCRxLJtV3No6DBMl6W/sS4 I4EHCiuviRDTjnabyjiYxcQFDU2WRWtBHVClmKvOxRL8MDWejjXNR1Gs7YWihvEe/qkyyG KkkIedqbY8KUjEND8WqHWhXuSy0tFjdUGlPFgvy2Yvtew0fFvc9YQpVV40iR2aQj20O0kd ER8sujD/pKSmNWkkFR5KwqlYxQ2jNzSKTM+H0mazYx9FztnwkPjtG4siJzBnRkDv0+d1Oy otTpZ1sKPKIBbz6lbwySPYQjSuLxMgW9Wr3NXa2fRG9wcsqSbrdJ/kV5EkCbgw== 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 4P14894yKczlr1; Mon, 23 Jan 2023 22:11:53 +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 30NMBrdf012684; Mon, 23 Jan 2023 22:11:53 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 30NMBrAM012683; Mon, 23 Jan 2023 22:11:53 GMT (envelope-from git) Date: Mon, 23 Jan 2023 22:11:53 GMT Message-Id: <202301232211.30NMBrAM012683@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: "Alexander V. Chernikov" Subject: git: 476f69f0e597 - stable/13 - netlink: fix NLMSG_SPACE() macro. 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/stable/13 X-Git-Reftype: branch X-Git-Commit: 476f69f0e597a39904a3bc491133dafb0507ae02 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by melifaro: URL: https://cgit.FreeBSD.org/src/commit/?id=476f69f0e597a39904a3bc491133dafb0507ae02 commit 476f69f0e597a39904a3bc491133dafb0507ae02 Author: Alexander V. Chernikov AuthorDate: 2022-10-31 15:02:12 +0000 Commit: Alexander V. Chernikov CommitDate: 2023-01-23 22:04:02 +0000 netlink: fix NLMSG_SPACE() macro. Reported by: bapt (cherry picked from commit 03de61aabb40dab3c7311e1664c85e41dafe29b4) --- sys/netlink/netlink.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/netlink/netlink.h b/sys/netlink/netlink.h index 6a68dcec1382..3623ae754951 100644 --- a/sys/netlink/netlink.h +++ b/sys/netlink/netlink.h @@ -205,7 +205,7 @@ enum nlmsgerr_attrs { #define NLMSG_ALIGN(_len) NL_ITEM_ALIGN(_len) #define NLMSG_HDRLEN ((int)sizeof(struct nlmsghdr)) #define NLMSG_LENGTH(_len) ((_len) + NLMSG_HDRLEN) -#define NLMSG_SPACE(len) NLMSG_ALIGN(NLMSG_LENGTH(_len)) +#define NLMSG_SPACE(_len) NLMSG_ALIGN(NLMSG_LENGTH(_len)) #define NLMSG_DATA(_hdr) NL_ITEM_DATA(_hdr, NLMSG_HDRLEN) #define _NLMSG_LEN(_hdr) ((int)(_hdr)->nlmsg_len) #define _NLMSG_ALIGNED_LEN(_hdr) NLMSG_ALIGN(_NLMSG_LEN(_hdr))