get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2232105,
    "url": "http://patchwork.ozlabs.org/api/patches/2232105/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20260502-ioctl-v3-4-a05d4cb1bdff@bsdimp.com/",
    "project": {
        "id": 14,
        "url": "http://patchwork.ozlabs.org/api/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": "",
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<20260502-ioctl-v3-4-a05d4cb1bdff@bsdimp.com>",
    "list_archive_url": null,
    "date": "2026-05-02T17:09:25",
    "name": "[v3,04/19] bsd-user: Add FreeBSD socket ioctl definitions",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "b98cbd61231e8d29a58318410e6b2958ac344d6e",
    "submitter": {
        "id": 1896,
        "url": "http://patchwork.ozlabs.org/api/people/1896/?format=api",
        "name": "Warner Losh",
        "email": "imp@bsdimp.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20260502-ioctl-v3-4-a05d4cb1bdff@bsdimp.com/mbox/",
    "series": [
        {
            "id": 502541,
            "url": "http://patchwork.ozlabs.org/api/series/502541/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/list/?series=502541",
            "date": "2026-05-02T17:09:22",
            "name": "bsd-user: upstream ioctl",
            "version": 3,
            "mbox": "http://patchwork.ozlabs.org/series/502541/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2232105/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2232105/checks/",
    "tags": {},
    "related": [],
    "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=KfrJwtSH;\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 4g7DxX0rGXz1yGq\n\tfor <incoming@patchwork.ozlabs.org>; Sun, 03 May 2026 03:12:48 +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 1wJDsH-0007pF-8u; Sat, 02 May 2026 13:11:29 -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 1wJDsC-0007o8-Ur\n for qemu-devel@nongnu.org; Sat, 02 May 2026 13:11:25 -0400",
            "from mail-ot1-x32d.google.com ([2607:f8b0:4864:20::32d])\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 1wJDsA-00071K-Ld\n for qemu-devel@nongnu.org; Sat, 02 May 2026 13:11:24 -0400",
            "by mail-ot1-x32d.google.com with SMTP id\n 46e09a7af769-7de46b8e432so2764831a34.1\n for <qemu-devel@nongnu.org>; Sat, 02 May 2026 10:11:22 -0700 (PDT)",
            "from rebo.bsdimp.com ([50.253.99.174])\n by smtp.gmail.com with ESMTPSA id\n 46e09a7af769-7deca824746sm4334355a34.11.2026.05.02.10.11.20\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Sat, 02 May 2026 10:11:20 -0700 (PDT)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=bsdimp-com.20251104.gappssmtp.com; s=20251104; t=1777741881; x=1778346681;\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=pzQlBpwbjHKfNIX1F8NUcqNQc7eo7uRyI8xNbg1H5G0=;\n b=KfrJwtSH1FOyvRfcjPxqlzgPmprP/5QHNJ4Dkr+A51SWKAHh3jFVnT988KqVhdXXwv\n uQQGylYrVDsRZA20ef3PbnjZK8o6rkKs/tkcdzg01tXEsph1nCIzI7McFJJoJO+CbdcG\n kPUkAuizf9VwBGAT+u3tUq1y7wmDlofYWKRihPGqaTF3lYPoRkLchayW5+glit3HLCIJ\n PH/yYys3pb5ng4nEqceUkIJPY3DKvzMMPR/Zdog6PSIbJO/lqhkSofynO8VAcZWmwO7C\n NuuD//1InnDKDLC1YzRwAnu8g/cMsGYrF+nn38voVpEqKarT2AVboEJ82ICfSeu4qrjv\n 9uCA==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1777741881; x=1778346681;\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=pzQlBpwbjHKfNIX1F8NUcqNQc7eo7uRyI8xNbg1H5G0=;\n b=GvqUfpWQBjuIFJJKdVKBN7COyWc9aNbi/rRrfx2RO9xhv5n3V3qv4R4UuY04cTHoK5\n 4yLJosJNFF6TzLkssAvWjiLh97st1+PmrrnbqzTbe7a9355XN4zvywlyFM1UOYzlau5L\n Mje7G9QBuutNap15xGaXdDEvM8THGglmN2ecDnJvK85VRZ8TWM+SoC6Ckzdgt1Oyi3Qk\n lnirSDCvwgrQcamKLXBcJFUGLmNe9ehxL79lGxBbwSVobemqgIpmt1SHy9/dAQnk3X5m\n MO5jauGNrzEzA548P8y/V5Ngy+s7oWDC5OHohyPxy2lHHYHheAjihLf0Nj+znx1toj81\n 5Vyg==",
        "X-Gm-Message-State": "AOJu0YxqVuINlc+jmzGYTUBehtVsvYy5JE+4eo8oKWAZB/qXz3KePqn7\n WEjBpkcs+k32okwQCR86BvfMTG5oqqEUaRPL3axNASPub11FWgEpTZwP1SDiX5RbiMrMZl/lIYB\n c1J5VMGg=",
        "X-Gm-Gg": "AeBDieumO7A6cHuaWyGlffXhzUlzIHyJDwI85YY+av2rxSF9JLqUBl9KWmOK/hgIn6k\n eL71+wZefQIjXthpB8+sCQ12paeipSmodHQ7pa/ihob7einKBn5imQmUEyzf80SnW3OSzwIQTyX\n /K28KXD3zevMFuC3R1WUMgpfV5eUBPbQhnqOsC7VfRDwq5LQfrZS6+KdUdDOCSUOEI038WIyDJP\n VCAdqMW5FK+hAmh8WkgO6rwTFv5aW7n+EpU1qwx9O7jMCitmwoIjIGAL4pKTK3OiIrHn4srWs0C\n bHim7kFGZeYi9LEbCvfFO28+4XBDPHZzUDX2mM3YGCRXOtxnnhLkEpZoe4lvFJ8LN0cN4H0n0Nm\n SfeCW8XvBj/DQ7TUYydJ4J2p3M4I4ZRMXWSibdIRcnPyUZfBz+ehIzRvm/aSoLm30hPtUoFljcV\n 1bSx0hGCuqIuG9Bjh7rxew",
        "X-Received": "by 2002:a05:6830:2690:b0:7d9:b338:a695 with SMTP id\n 46e09a7af769-7dee11f9cacmr2324682a34.5.1777741880987;\n Sat, 02 May 2026 10:11:20 -0700 (PDT)",
        "From": "Warner Losh <imp@bsdimp.com>",
        "Date": "Sat, 02 May 2026 11:09:25 -0600",
        "Subject": "[PATCH v3 04/19] bsd-user: Add FreeBSD socket ioctl definitions",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=\"utf-8\"",
        "Content-Transfer-Encoding": "7bit",
        "Message-Id": "<20260502-ioctl-v3-4-a05d4cb1bdff@bsdimp.com>",
        "References": "<20260502-ioctl-v3-0-a05d4cb1bdff@bsdimp.com>",
        "In-Reply-To": "<20260502-ioctl-v3-0-a05d4cb1bdff@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=10291; i=imp@bsdimp.com;\n h=from:subject:message-id; bh=Ou0K8wtzOZ5vOnY95dtBNYMlFjgDPOiJ0Dxme7+Y3Zs=;\n b=owEBbQKS/ZANAwAKAWwc0Sh9sBEAAcsmYgBp9i/PwlyNMocNMwkYFZ4EvrpSrj/FPJDUDpQVa\n qz5O5lEbdmJAjMEAAEKAB0WIQQgNfiUsAqjz3zN4bdsHNEofbARAAUCafYvzwAKCRBsHNEofbAR\n AL0nEACWnY2hGUnTQwJvlTkZoZPI//2kASg+BpQ1ZgHWRC1PpHyzOWDFtQS+/feL77e+WHngVm9\n T6P6wDRknU462PoAiES7vJAOmSYv4gsZ7JC/+9xgHC3MnZa+cMS6qRMcDVo6tOiIJaH/5VgmPAA\n 2baJoe0GkRk1Y8N3tRtVZB+oN1CEP5vkhfcUbSc0c4GGCNnGKqSoIa/5U72TDvCrIDgvZ0sK4Gx\n Cpd94po2Z3bPQd6JWZ31sjJfl4FkAp/lBijNvuM/TJ0zkusv28EippJcrtgAfoBUgzCxUtx5thp\n orm1tp4ycGPD2dDlDb0Ohhqx0UTGvpMEtGOzZJ4QRmfO892Qg7wf8CvzNEQW6vBQFW3STEYR7wz\n nK8bQpd0kSgzdJS6n5J1XMEKSY/b4eqrkZ0P80Clo7Up28RZGmDYuFmtER/VMhrAuVgGeZH6q3m\n L/OrGgCjHm1MIW9G1xXSuSMfi6jku9nlU7jQPaMMakbUEtWdRqbaXZE43gb39bBROyvK2LAkdmv\n unhhfL3+MGlBFlkE/TwnpyBschdOUhbgMBBg4DoqkZ2eik41NRPn9oTP3IC/5326WTQJvebRNFT\n oZD0dgV/JnNZJtjabFsYNKdim2S0Z0JmbK4Jh5JY8b465XBla79XfQPdqX+BK+x05tLt5c3cYN4\n HIyDkZy0l4OR2DA==",
        "X-Developer-Key": "i=imp@bsdimp.com; a=openpgp;\n fpr=2035F894B00AA3CF7CCDE1B76C1CD1287DB01100",
        "Received-SPF": "none client-ip=2607:f8b0:4864:20::32d;\n envelope-from=imp@bsdimp.com; helo=mail-ot1-x32d.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>\nReviewed-by: Pierrick Bouvier <pierrick.bouvier@oss.qualcomm.com>\nSigned-off-by: Warner Losh <imp@bsdimp.com>\n---\n bsd-user/freebsd/os-ioctl-sockio.h | 246 +++++++++++++++++++++++++++++++++++++\n 1 file changed, 246 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..5c1a619400\n--- /dev/null\n+++ b/bsd-user/freebsd/os-ioctl-sockio.h\n@@ -0,0 +1,246 @@\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+struct target_ifreq_nv_req {\n+    abi_uint   buf_length;     /* Total size of buffer */\n+    abi_uint   length;         /* Length of the filled part */\n+    abi_ulong  buffer;        /* Buffer itself, containing packed nv */\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+        abi_short   ifru_flags[2];\n+        abi_short   ifru_index;\n+        abi_int     ifru_jid;\n+        abi_int     ifru_metric;\n+        abi_int     ifru_mtu;\n+        abi_int     ifru_phys;\n+        abi_int     ifru_media;\n+        abi_ulong   ifru_data;\n+        abi_int     ifru_cap[2];\n+        uint32_t    ifru_fib;\n+        uint8_t     ifru_vlan_pcp;\n+        struct target_ifreq_nv_req ifru_nv;\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+/* 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_req;\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+    abi_uint        ra_proto;\n+\n+    abi_ulong       ra_size;\n+    abi_ulong       ra_port;\n+    abi_int         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[TARGET_IFNAMSIZ];\n+    abi_int         ro_opts;\n+    abi_uint        ro_count;\n+    abi_uint        ro_active;\n+    abi_uint        ro_flapping;\n+    abi_int         ro_flowid_shift;\n+    uint32_t        ro_bkt;\n+};\n+#define TARGET_SIOCGLAGGOPTS TARGET_IOWR('i', 152, struct target_lagg_reqopts)\n+\n+#endif /* OS_IOCTL_SOCKIO_H */\n",
    "prefixes": [
        "v3",
        "04/19"
    ]
}