get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/1.1/patches/2230291/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 2230291,
    "url": "http://patchwork.ozlabs.org/api/1.1/patches/2230291/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20260429-ioctl-v2-3-288639bc2427@bsdimp.com/",
    "project": {
        "id": 14,
        "url": "http://patchwork.ozlabs.org/api/1.1/projects/14/?format=api",
        "name": "QEMU Development",
        "link_name": "qemu-devel",
        "list_id": "qemu-devel.nongnu.org",
        "list_email": "qemu-devel@nongnu.org",
        "web_url": "",
        "scm_url": "",
        "webscm_url": ""
    },
    "msgid": "<20260429-ioctl-v2-3-288639bc2427@bsdimp.com>",
    "date": "2026-04-29T14:45:09",
    "name": "[v2,03/17] bsd-user: Add FreeBSD socket ioctl definitions",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "4a1e36f50cca62cf523058f2587f8f49b4112f55",
    "submitter": {
        "id": 1896,
        "url": "http://patchwork.ozlabs.org/api/1.1/people/1896/?format=api",
        "name": "Warner Losh",
        "email": "imp@bsdimp.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20260429-ioctl-v2-3-288639bc2427@bsdimp.com/mbox/",
    "series": [
        {
            "id": 502085,
            "url": "http://patchwork.ozlabs.org/api/1.1/series/502085/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/list/?series=502085",
            "date": "2026-04-29T14:45:07",
            "name": "bsd-user: upstream ioctl",
            "version": 2,
            "mbox": "http://patchwork.ozlabs.org/series/502085/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2230291/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2230291/checks/",
    "tags": {},
    "headers": {
        "Return-Path": "<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>",
        "X-Original-To": "incoming@patchwork.ozlabs.org",
        "Delivered-To": "patchwork-incoming@legolas.ozlabs.org",
        "Authentication-Results": [
            "legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=bsdimp-com.20251104.gappssmtp.com\n header.i=@bsdimp-com.20251104.gappssmtp.com header.a=rsa-sha256\n header.s=20251104 header.b=yaTOsuJP;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org\n (client-ip=209.51.188.17; helo=lists1p.gnu.org;\n envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org;\n receiver=patchwork.ozlabs.org)"
        ],
        "Received": [
            "from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17])\n\t(using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4g5KtC2Z72z1yK5\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 30 Apr 2026 00:48:19 +1000 (AEST)",
            "from localhost ([::1] helo=lists1p.gnu.org)\n\tby lists1p.gnu.org with esmtp (Exim 4.90_1)\n\t(envelope-from <qemu-devel-bounces@nongnu.org>)\n\tid 1wI6Bm-0004SV-BG; Wed, 29 Apr 2026 10:46:58 -0400",
            "from eggs.gnu.org ([2001:470:142:3::10])\n by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)\n (Exim 4.90_1) (envelope-from <imp@bsdimp.com>) id 1wI6Bk-0004Rt-90\n for qemu-devel@nongnu.org; Wed, 29 Apr 2026 10:46:56 -0400",
            "from mail-oo1-xc35.google.com ([2607:f8b0:4864:20::c35])\n by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)\n (Exim 4.90_1) (envelope-from <imp@bsdimp.com>) id 1wI6Bh-0004Xo-N4\n for qemu-devel@nongnu.org; Wed, 29 Apr 2026 10:46:56 -0400",
            "by mail-oo1-xc35.google.com with SMTP id\n 006d021491bc7-6966f99716fso259043eaf.0\n for <qemu-devel@nongnu.org>; Wed, 29 Apr 2026 07:46:53 -0700 (PDT)",
            "from rebo.bsdimp.com ([50.253.99.174])\n by smtp.gmail.com with ESMTPSA id\n 006d021491bc7-6966b93d58csm1313984eaf.0.2026.04.29.07.46.51\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Wed, 29 Apr 2026 07:46:51 -0700 (PDT)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=bsdimp-com.20251104.gappssmtp.com; s=20251104; t=1777474012; x=1778078812;\n darn=nongnu.org;\n h=cc:to:in-reply-to:references:message-id:content-transfer-encoding\n :mime-version:subject:date:from:from:to:cc:subject:date:message-id\n :reply-to; bh=BTe/D/bvROg9C7EiZvO4+y9jfPH29sCoFwKyN55BCew=;\n b=yaTOsuJP0UjzsM5twTsYHaFB5soSA0GSEc9mVronp/21iJ8lbBX2CNGspwzeYjO14r\n k91uyjsWQVyrZhw/4ZffyTxm627PjxKz6xa5JNH+YcC5afa66vIy4qMcE9bhpEzvGFyf\n rN2KwzLlOuQiCoO+opnGHUqCheYQObUIIpgTZbOThUrXaGY8gqRuIPW1G+RtNeFr1apI\n MQfv00GJG2R6BHVMXZydPkcli4sK6/PiSiNP7ocDnzIGZYKwetusAHoPBfLkKyTp5XWX\n wzaoCW2pGP6mtYAtevw42YY8xwa9VYrDDusoAoXRzlDL1C0MW/TkFbiiEqwLYuCjChG+\n CfcA==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1777474012; x=1778078812;\n h=cc:to:in-reply-to:references:message-id:content-transfer-encoding\n :mime-version:subject:date:from:x-gm-gg:x-gm-message-state:from:to\n :cc:subject:date:message-id:reply-to;\n bh=BTe/D/bvROg9C7EiZvO4+y9jfPH29sCoFwKyN55BCew=;\n b=KetBIPlYqU8sNd+ALzrSDmyE9q3IusoKe4c1R1pHJTZhn2pMaYiGRLsS7DOafq+aWD\n ryiT4T+OkZZY2sIKxM1h+5jncOvYKQyCtJmeY6OsQVxJdNCdQVFZ1QBJYrR3rBFNu5a7\n x884FSubE4kp7cErAvr6B4jTOG0kbHKuEonnhN2MUU3EZeqZcE7pIgIgAaDLut2KQ1go\n a/KUwN+2LWnH1aw1McSSOs0F/cU5cCmu1ioNLOD91+PwolYPDjFUAkcjpD4Xo/NSrD9M\n h7vupiOopo8xRHjuX0GuwHxrM/NJ0XRWFv4gug7UGvi3bWGYoAsMS8E5xLEEvcIKDhZJ\n CXyg==",
        "X-Gm-Message-State": "AOJu0YyXyhxc1WSLGvIBQWzzoiPj65kDobak1f5fCpwgF2u2Miu/nELZ\n h/e7SOl9/PK0dU41wOpmDc7AjG/XhOEDxYsznSAO+svw/TJeSOnEXepM4MSQ2wzmrJ4=",
        "X-Gm-Gg": "AeBDiesEQzgnLF+AnVFcW/zwkUA+HrZ1rh8wjHYqEClhNbsCn4lP1rC911RdhCMuav8\n yuDgwFVBdoyti75eZ1zeimmb0EZ6JvxrX8wg6XN9zvwdKR7QvueVy9gEc0mHXmX9BUBXeHwz8y0\n y3igO9aj+5fqXRsmuPmpyKr1tCikDIdLT4/IkoQgfZSubCidiSooUHMUgWuIM/Y/8jG1V40zM8g\n eNHLQ+3bGFte/760RLd9xbn3AlUEc2quQt0TYPHD0NwDK02t8mYHwuTo6pfSN9L6nMI+sAph/NG\n 81WkD82Ne7H6Q9UmaDHzo3KoZPtNYJCKzkKPYR7qmT5YoOfGs+qiUngMNtJXiVtCWSvAaYs7a6N\n V2LBGHJ0rLqqN0jYxvnNxFcnvMlLyu+R1OA+M+tEeejOkLHibq0aa3shnxgd6Sou31uJaYwhuZQ\n u7YQPDJ3rSoFpYMfxKA4Cj",
        "X-Received": "by 2002:a05:6820:1997:b0:696:14c0:3f9f with SMTP id\n 006d021491bc7-6965ca3b5d4mr3753761eaf.11.1777474012423;\n Wed, 29 Apr 2026 07:46:52 -0700 (PDT)",
        "From": "Warner Losh <imp@bsdimp.com>",
        "Date": "Wed, 29 Apr 2026 08:45:09 -0600",
        "Subject": "[PATCH v2 03/17] bsd-user: Add FreeBSD socket ioctl definitions",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=\"utf-8\"",
        "Content-Transfer-Encoding": "7bit",
        "Message-Id": "<20260429-ioctl-v2-3-288639bc2427@bsdimp.com>",
        "References": "<20260429-ioctl-v2-0-288639bc2427@bsdimp.com>",
        "In-Reply-To": "<20260429-ioctl-v2-0-288639bc2427@bsdimp.com>",
        "To": "qemu-devel@nongnu.org",
        "Cc": "Kyle Evans <kevans@freebsd.org>,\n =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= <philmd@linaro.org>,\n  Pierrick Bouvier <pierrick.bouvier@oss.qualcomm.com>,\n  Warner Losh <imp@bsdimp.com>, \"Stacey D. Son\" <sson@freebsd.org>",
        "X-Mailer": "b4 0.14.3",
        "X-Developer-Signature": "v=1; a=openpgp-sha256; l=9965; i=imp@bsdimp.com;\n h=from:subject:message-id; bh=E5TcCxhlYakiFKXgpDFbtw1vmY+ujW4UaM+sGPBsaMY=;\n b=owEBbQKS/ZANAwAKAWwc0Sh9sBEAAcsmYgBp8hl82wKrDBT/ncm4SJtUTLBowZCKQNDoQ9FK2\n sqEv4j3MVuJAjMEAAEKAB0WIQQgNfiUsAqjz3zN4bdsHNEofbARAAUCafIZfAAKCRBsHNEofbAR\n AEdID/9UAQYvEyMO2dqA7PqYWOudsJBJuSCJq6sO7a84+p3xbqf9+/ZoYNsRtWJJ5e/nI3jFcDW\n LzvBr1MnvpMCU2nOpHdI1PPmvPz/U+VaINJ2yCXYHllrwiK8PhzpBKA6HMS9ybelV7YtDaS/NKo\n NSsdf3yw6RCfxKWiWxFFOH/gnor0aCzMvobcyRrGGdrRxbD7OP3PJebIBaJTsxvcos8Kw1MULMv\n 0CWJ/8OKsuVkNxSi0HlI3w54kAeSNQz3DnzfyjfjLSRt9aqdQUdqzJ3FectbrUWVnNp6EW9DHS7\n jOffGJD4pZXzAKTm94V47h/Xkzg/NaqyOuyd28ZvwAl2BjsLINot56MinDfjvEPXrb9wmS2GXcR\n gAvBKbn8uV00Hj+JjLaot/Zf4Y3x43GtJed8ohUkvBWLF53eGYCIo5OJlE374ofYqsNNQlaO76M\n cy3dEIsVhAyjyHqnx3aouOswLLcb+mIAwC61CQiVSEpAF+zCfuOcyjhlpjkomCfGVKJ3jXLcyaT\n OaOFcUjxRB9j3R9HehtY/bNyfPJdV6HR5CK4/aZKu8bqnLhoC5BO33Uyv7gR0RRuxdzAOvAmhLb\n 3cfuVmuBBhQWa6QgFe1kXGe6CaPfnNCxP3tFfYQGAuVFs1ri75ReDpHTlYhJPq/JHqzf0S9WOJk\n GL7K3dKcNPrpdjA==",
        "X-Developer-Key": "i=imp@bsdimp.com; a=openpgp;\n fpr=2035F894B00AA3CF7CCDE1B76C1CD1287DB01100",
        "Received-SPF": "none client-ip=2607:f8b0:4864:20::c35;\n envelope-from=imp@bsdimp.com; helo=mail-oo1-xc35.google.com",
        "X-Spam_score_int": "-18",
        "X-Spam_score": "-1.9",
        "X-Spam_bar": "-",
        "X-Spam_report": "(-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,\n DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,\n SPF_NONE=0.001 autolearn=ham autolearn_force=no",
        "X-Spam_action": "no action",
        "X-BeenThere": "qemu-devel@nongnu.org",
        "X-Mailman-Version": "2.1.29",
        "Precedence": "list",
        "List-Id": "qemu development <qemu-devel.nongnu.org>",
        "List-Unsubscribe": "<https://lists.nongnu.org/mailman/options/qemu-devel>,\n <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe>",
        "List-Archive": "<https://lists.nongnu.org/archive/html/qemu-devel>",
        "List-Post": "<mailto:qemu-devel@nongnu.org>",
        "List-Help": "<mailto:qemu-devel-request@nongnu.org?subject=help>",
        "List-Subscribe": "<https://lists.nongnu.org/mailman/listinfo/qemu-devel>,\n <mailto:qemu-devel-request@nongnu.org?subject=subscribe>",
        "Errors-To": "qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org",
        "Sender": "qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org"
    },
    "content": "From: \"Stacey D. Son\" <sson@freebsd.org>\n\nAdd os-ioctl-sockio.h with network socket and interface control ioctl\ndefinitions including SIOCGIFADDR, SIOCSIFADDR, SIOCGIFCONF, and\nrelated network interface ioctls with target_ structure definitions.\n\nSigned-off-by: Stacey D. Son <sson@freebsd.org>\nSigned-off-by: Warner Losh <imp@bsdimp.com>\n---\n bsd-user/freebsd/os-ioctl-sockio.h | 240 +++++++++++++++++++++++++++++++++++++\n 1 file changed, 240 insertions(+)",
    "diff": "diff --git a/bsd-user/freebsd/os-ioctl-sockio.h b/bsd-user/freebsd/os-ioctl-sockio.h\nnew file mode 100644\nindex 0000000000..90a9950177\n--- /dev/null\n+++ b/bsd-user/freebsd/os-ioctl-sockio.h\n@@ -0,0 +1,240 @@\n+/*\n+ * FreeBSD sockio.h definitions for ioctl(2) emulation\n+ *\n+ * Copyright (c) 2015 Stacey D. Son\n+ *\n+ * SPDX-License-Identifier: GPL-2.0-or-later\n+ */\n+#ifndef OS_IOCTL_SOCKIO_H\n+#define OS_IOCTL_SOCKIO_H\n+\n+/* See sys/sockio.h */\n+#define TARGET_SIOCSHIWAT       TARGET_IOW('s',  0, int32_t)\n+#define TARGET_SIOCGHIWAT       TARGET_IOR('s',  1, int32_t)\n+#define TARGET_SIOCSLOWAT       TARGET_IOW('s',  2, int32_t)\n+#define TARGET_SIOCGLOWAT       TARGET_IOR('s',  3, int32_t)\n+#define TARGET_SIOCATMARK       TARGET_IOR('s',  7, int32_t)\n+#define TARGET_SIOCSPGRP        TARGET_IOW('s',  8, int32_t)\n+#define TARGET_SIOCGPGRP        TARGET_IOR('s',  9, int32_t)\n+\n+/* See net/if.h */\n+struct target_ifreq_buffer {\n+    abi_ulong  length;\n+    abi_ulong  buffer;\n+};\n+\n+#define TARGET_IFNAMSIZ 16\n+\n+struct target_ifreq {\n+    char    ifr_name[TARGET_IFNAMSIZ];\n+    union {\n+        struct  target_sockaddr ifru_addr;\n+        struct  target_sockaddr ifru_dstaddr;\n+        struct  target_sockaddr ifru_broadaddr;\n+        struct  target_ifreq_buffer ifru_buffer;\n+        int16_t   ifru_flags[2];\n+        int16_t   ifru_index;\n+        int32_t     ifru_jid;\n+        int32_t     ifru_metric;\n+        int32_t     ifru_mtu;\n+        int32_t     ifru_phys;\n+        int32_t     ifru_media;\n+        abi_ulong ifru_data;\n+        int32_t     ifru_cap[2];\n+        uint32_t   ifru_fib;\n+    } ifr_ifru;\n+};\n+\n+\n+#define TARGET_SIOCSIFADDR      TARGET_IOW('i', 12, struct target_ifreq)\n+#define TARGET_SIOCGIFADDR      TARGET_IOWR('i', 33, struct target_ifreq)\n+#define TARGET_SIOCSIFDSTADDR   TARGET_IOW('i', 14, struct target_ifreq)\n+#define TARGET_SIOCGIFDSTADDR   TARGET_IOWR('i', 34, struct target_ifreq)\n+#define TARGET_SIOCSIFFLAGS     TARGET_IOW('i', 16, struct target_ifreq)\n+#define TARGET_SIOCGIFFLAGS     TARGET_IOWR('i', 17, struct target_ifreq)\n+#define TARGET_SIOCGIFBRDADDR   TARGET_IOWR('i', 35, struct target_ifreq)\n+#define TARGET_SIOCSIFBRDADDR   TARGET_IOW('i', 19, struct target_ifreq)\n+#define TARGET_SIOCGIFNETMASK   TARGET_IOWR('i', 37, struct target_ifreq)\n+#define TARGET_SIOCSIFNETMASK   TARGET_IOW('i', 22, struct target_ifreq)\n+#define TARGET_SIOCGIFMETRIC    TARGET_IOWR('i', 23, struct target_ifreq)\n+#define TARGET_SIOCSIFMETRIC    TARGET_IOW('i', 24, struct target_ifreq)\n+#define TARGET_SIOCDIFADDR      TARGET_IOW('i', 25, struct target_ifreq)\n+#define TARGET_SIOCSIFCAP       TARGET_IOW('i', 30, struct target_ifreq)\n+#define TARGET_SIOCGIFCAP       TARGET_IOWR('i', 31, struct target_ifreq)\n+#define TARGET_SIOCGIFINDEX     TARGET_IOWR('i', 32, struct target_ifreq)\n+#define TARGET_SIOCGIFMAC       TARGET_IOWR('i', 38, struct target_ifreq)\n+#define TARGET_SIOCSIFMAC       TARGET_IOW('i', 39, struct target_ifreq)\n+#define TARGET_SIOCSIFNAME      TARGET_IOW('i', 40, struct target_ifreq)\n+#define TARGET_SIOCSIFDESCR     TARGET_IOW('i', 41, struct target_ifreq)\n+#define TARGET_SIOCGIFDESCR     TARGET_IOWR('i', 42, struct target_ifreq)\n+#define TARGET_SIOCADDMULTI     TARGET_IOW('i', 49, struct target_ifreq)\n+#define TARGET_SIOCDELMULTI     TARGET_IOW('i', 50, struct target_ifreq)\n+#define TARGET_SIOCGIFMTU       TARGET_IOWR('i', 51, struct target_ifreq)\n+#define TARGET_SIOCSIFMTU       TARGET_IOW('i', 52, struct target_ifreq)\n+#define TARGET_SIOCGIFPHYS      TARGET_IOWR('i', 53, struct target_ifreq)\n+#define TARGET_SIOCSIFPHYS      TARGET_IOW('i', 54, struct target_ifreq)\n+#define TARGET_SIOCSIFMEDIA     TARGET_IOWR('i', 55, struct target_ifreq)\n+#define TARGET_SIOCSIFGENERIC   TARGET_IOW('i', 57, struct target_ifreq)\n+#define TARGET_SIOCGIFGENERIC   TARGET_IOWR('i', 58, struct target_ifreq)\n+#define TARGET_SIOCSIFLLADDR    TARGET_IOW('i', 60, struct target_ifreq)\n+#define TARGET_SIOCGIFPSRCADDR  TARGET_IOWR('i', 71, struct target_ifreq)\n+#define TARGET_SIOCGIFPDSTADDR  TARGET_IOWR('i', 72, struct target_ifreq)\n+#define TARGET_SIOCDIFPHYADDR   TARGET_IOW('i', 73, struct target_ifreq)\n+#define TARGET_SIOCGPRIVATE_0   TARGET_IOWR('i', 80, struct target_ifreq)\n+#define TARGET_SIOCGPRIVATE_1   TARGET_IOWR('i', 81, struct target_ifreq)\n+#define TARGET_SIOCSIFVNET      TARGET_IOWR('i', 90, struct target_ifreq)\n+#define TARGET_SIOCSIFRVNET     TARGET_IOWR('i', 91, struct target_ifreq)\n+#define TARGET_SIOCGIFFIB       TARGET_IOWR('i', 92, struct target_ifreq)\n+#define TARGET_SIOCSIFFIB       TARGET_IOW('i', 93, struct target_ifreq)\n+#define TARGET_SIOCGTUNFIB      TARGET_IOWR('i', 94, struct target_ifreq)\n+#define TARGET_SIOCIFCREATE     TARGET_IOWR('i', 122, struct target_ifreq)\n+#define TARGET_SIOCIFCREATE2    TARGET_IOWR('i', 124, struct target_ifreq)\n+#define TARGET_SIOCIFDESTROY    TARGET_IOW('i', 121, struct target_ifreq)\n+\n+/* net/if_gre.h */\n+#define TARGET_GREGKEY          TARGET_IOWR('i', 107, struct target_ifreq)\n+#define TARGET_GREGOPTS         TARGET_IOWR('i', 109, struct target_ifreq)\n+\n+/* net/if_gif.h */\n+#define TARGET_GIFGOPTS         TARGET_IOWR('i', 150, struct target_ifreq)\n+\n+/* netinet/ip_carp.h */\n+#define TARGET_SIOCGVH          TARGET_IOWR('i', 246, struct target_ifreq)\n+\n+/* netinet/ip_carp.h */\n+#define TARGET_SIOCGVH          TARGET_IOWR('i', 246, struct target_ifreq)\n+\n+/* net/if_pfsync.h */\n+#define TARGET_SIOCGETPFSYNC    TARGET_IOWR('i', 248, struct target_ifreq)\n+\n+\n+/* See net/if.h */\n+struct target_ifconf {\n+    int32_t ifc_len;\n+    union {\n+        abi_ulong   ifcu_buf;\n+        abi_ulong   ifcu_reg;\n+    } ifc_ifcu;\n+};\n+\n+#define TARGET_SIOCGIFCONF     TARGET_IOWR('i', 36, struct target_ifconf)\n+\n+/* See net/if.h */\n+struct  target_ifdrv {\n+    char            ifd_name[TARGET_IFNAMSIZ];\n+    abi_ulong       ifd_cmd;\n+    abi_ulong       ifd_len;\n+    abi_ulong       ifd_data;\n+};\n+\n+#define TARGET_SIOCSDRVSPEC    TARGET_IOW('i', 123, struct target_ifdrv)\n+#define TARGET_SIOCGDRVSPEC    TARGET_IOWR('i', 123, struct target_ifdrv)\n+\n+/* See net/if.h */\n+struct target_ifg_req {\n+    union {\n+        char        ifgrqu_group[TARGET_IFNAMSIZ];\n+        char        ifgrqu_member[TARGET_IFNAMSIZ];\n+    } ifgrq_ifgrqu;\n+};\n+\n+struct target_ifgroupreq {\n+    char            ifgr_name[TARGET_IFNAMSIZ];\n+    uint32_t        ifgr_len;\n+    union {\n+        char        ifgru_group[TARGET_IFNAMSIZ];\n+        abi_ulong   ifgru_groups;\n+    } ifgr_ifgru;\n+};\n+\n+#define TARGET_SIOCGIFGROUP    TARGET_IOWR('i', 136, struct target_ifgroupreq)\n+\n+struct target_ifmediareq {\n+    char        ifm_name[TARGET_IFNAMSIZ];\n+    int32_t     ifm_current;\n+    int32_t     ifm_mask;\n+    int32_t     ifm_status;\n+    int32_t     ifm_active;\n+    int32_t     ifm_count;\n+    abi_ulong   ifm_ulist;\n+};\n+\n+#define TARGET_SIOCGIFMEDIA  TARGET_IOWR('i', 56, struct target_ifmediareq)\n+#define TARGET_SIOCGIFXMEDIA  TARGET_IOWR('i', 139, struct target_ifmediareq)\n+\n+#define TARGET_IFSTATMAX    800\n+struct target_ifstat {\n+    char    ifs_name[TARGET_IFNAMSIZ];\n+    char    ascii[TARGET_IFSTATMAX + 1];\n+};\n+\n+#define TARGET_SIOCGIFSTATUS TARGET_IOWR('i', 59, struct target_ifstat)\n+\n+/* net80211/ieee80211_ioctl.h */\n+struct target_ieee80211req {\n+    char            i_name[TARGET_IFNAMSIZ];\n+    uint16_t        i_type;\n+    int16_t         i_val;\n+    uint16_t        i_len;\n+    abi_ulong       i_data;\n+};\n+\n+#define TARGET_SIOCG80211 TARGET_IOWR('i', 235, struct target_ieee80211req)\n+\n+/* net/if_lagg.h */\n+struct target_lacp_opreq {\n+    uint16_t        actor_prio;\n+    uint8_t         actor_mac[ETHER_ADDR_LEN];\n+    uint16_t        actor_key;\n+    uint16_t        actor_portprio;\n+    uint16_t        actor_portno;\n+    uint8_t         actor_state;\n+    uint16_t        partner_prio;\n+    uint8_t         partner_mac[ETHER_ADDR_LEN];\n+    uint16_t        partner_key;\n+    uint16_t        partner_portprio;\n+    uint16_t        partner_portno;\n+    uint8_t         partner_state;\n+};\n+\n+struct target_lagg_reqport {\n+    char            rp_ifname[TARGET_IFNAMSIZ];\n+    char            rp_portname[TARGET_IFNAMSIZ];\n+    u_int32_t       rp_prio;\n+    u_int32_t       rp_flags;\n+    union {\n+        struct target_lacp_opreq rpsc_lacp;\n+    } rp_psc;\n+};\n+#define TARGET_SIOCGLAGGPORT TARGET_IOWR('i', 140, struct target_lagg_reqport)\n+\n+struct target_lagg_reqall {\n+    char            ra_ifname[TARGET_IFNAMSIZ];\n+    uint32_t        ra_proto;\n+\n+    abi_ulong       ra_size;\n+    abi_ulong       ra_port;\n+    int32_t         ra_ports;\n+    union {\n+        struct target_lacp_opreq rpsc_lacp;\n+    } ra_psc;\n+};\n+#define TARGET_SIOCGLAGG TARGET_IOWR('i', 143, struct target_lagg_reqall)\n+\n+struct target_lagg_reqflags {\n+    char            rf_ifname[TARGET_IFNAMSIZ];\n+    uint32_t        rf_flags;\n+};\n+#define TARGET_SIOCGLAGGFLAGS TARGET_IOWR('i', 145, struct target_lagg_reqflags)\n+\n+struct target_lagg_reqopts {\n+    char            ro_ifname[IFNAMSIZ];\n+    int32_t         ro_opts;\n+    uint32_t        ro_count;\n+    uint32_t        ro_active;\n+    uint32_t        ro_flapping;\n+    int32_t         ro_flowid_shift;\n+};\n+#define TARGET_SIOCGLAGGOPTS TARGET_IOWR('i', 152, struct target_lagg_reqopts)\n+\n+#endif /* OS_IOCTL_SOCKIO_H */\n",
    "prefixes": [
        "v2",
        "03/17"
    ]
}