get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2222528,
    "url": "http://patchwork.ozlabs.org/api/1.2/patches/2222528/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20260412-ioctl-v1-3-1d998a460560@bsdimp.com/",
    "project": {
        "id": 14,
        "url": "http://patchwork.ozlabs.org/api/1.2/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": "<20260412-ioctl-v1-3-1d998a460560@bsdimp.com>",
    "list_archive_url": null,
    "date": "2026-04-12T16:02:26",
    "name": "[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.2/people/1896/?format=api",
        "name": "Warner Losh",
        "email": "imp@bsdimp.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20260412-ioctl-v1-3-1d998a460560@bsdimp.com/mbox/",
    "series": [
        {
            "id": 499616,
            "url": "http://patchwork.ozlabs.org/api/1.2/series/499616/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/list/?series=499616",
            "date": "2026-04-12T16:02:24",
            "name": "bsd-user: upstream ioctl",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/499616/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2222528/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2222528/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=qdiJoEK6;\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 4ftwNr5sK3z1xtJ\n\tfor <incoming@patchwork.ozlabs.org>; Mon, 13 Apr 2026 02:05:16 +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 1wBxIA-0006UR-R7; Sun, 12 Apr 2026 12:04:10 -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 1wBxHn-0006Pj-J2\n for qemu-devel@nongnu.org; Sun, 12 Apr 2026 12:03:50 -0400",
            "from mail-ot1-x330.google.com ([2607:f8b0:4864:20::330])\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 1wBxHh-0004UV-O5\n for qemu-devel@nongnu.org; Sun, 12 Apr 2026 12:03:47 -0400",
            "by mail-ot1-x330.google.com with SMTP id\n 46e09a7af769-7d4be94eeacso3966266a34.2\n for <qemu-devel@nongnu.org>; Sun, 12 Apr 2026 09:03:36 -0700 (PDT)",
            "from rebo.bsdimp.com ([50.253.99.174])\n by smtp.gmail.com with ESMTPSA id\n 586e51a60fabf-423ddbee0fesm6457006fac.17.2026.04.12.09.03.34\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Sun, 12 Apr 2026 09:03:34 -0700 (PDT)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=bsdimp-com.20251104.gappssmtp.com; s=20251104; t=1776009815; x=1776614615;\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=qdiJoEK6hRiWP0yuE4g/ifj98eE7RK1d+9NGAxbsvjch2T0JkbKQKdRKjo4B/MJxHt\n Afm4d2f4sqNYq0OL/2dn0yQOj1G+vW9wW7+fpQh2y9MEDV6XXhwI7K5UTEzCwxbqD4sB\n +YTq6qG6XQgi1Rjq7OLedDvnp3tdO+KKhx0E8ZSeZPNTYywqySBMO/Pn8hNQcNTQlvhN\n syeQadUTHwThmyNHdc6tjOnXMW0Ff+s6Gu8JCuIGQnMoMHZ6SB4hJv9DccwUqFxabEo5\n EGqtFuAXNBapwlswTgTC8EqJm8Ijoo0K346QntJZg0455V3zxUde52E6N94uZXJBhNEF\n u/1w==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1776009815; x=1776614615;\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=SR15rVPHZiTaT+0gy+XFoee+hG/7gWdZ8I0ELU+6q/Ne6uf2RHvdsaX5Nvh17ZDWGg\n kGo2zihxOEc/6EB777w/TFO72n4YlyMSW6va2wNBOP8iltKPPxLB+Mjvt04g16z1CtQG\n E+10igsIUMn5C6ahdNBxzcXa9vqy0uI1+12y6wmVUXXYy8nHRK4z+7PckltywYD9f7Ma\n Ke3HX0ru+sK6KZLs7ZD9LamOsnrfiMk2Bp3e5wxV4tpaiYM+jwwC5PH3vegqnIKWiFQC\n EcR5ZshpfAwzrPJVQ1cnbHh6Cyp7eF5TQAkYfSwZkhQIFPb1D22aOQWZkx+UguxinQU1\n qNkg==",
        "X-Gm-Message-State": "AOJu0YwFgdseWQc/URU8+Hs130Ssq7uA5A7NAk+8/Xq65ab5dJeYaNbs\n IqL4+cWrYYFUmE66BgM7aTz3eI8VUQOMDXw/zREZdCsRgEKFwb+hvCPq3kQtks3Jm9F62UV0KRD\n waoRc19Q=",
        "X-Gm-Gg": "AeBDiesuE2QVx5ENjKQ6AYJStOPUu1+KkWK5ZZzDLXtyQN2lA7CTLAM+OjpCjiWYJA/\n LVqxhZMecnyYcdfXQXN2YXw/4ZoYdajYIcH3SyCTrQ3zmbWTB1LDFqLi8/0ws2NsdYg57UWsenE\n bysqa6ZSskZ92xcgwlhIwUo51SknDOdhyMjx4rTP7D00PTqs/dpIBPa9WjPYwS4y+bf0BRP8Eni\n NDNDdqcI4m2ue4heCPUrr2JW+wY2bEGffQNRGc7bheb7bRCNRYvWgf/LMHJhbA6E/mUyp8egXzr\n ESwcT/qPTu150I8+Rtd9JlEeMDvje3SwJ3GG5u5nFGSD3YpQpobDrFEQiDeUQu5acfQBs7DQ/hd\n /hJfXE9XdVEnMqFZYxgikvtscCgazBPFq6Pr4SMvwjCv6Mnyc8BSa4SPGo0gxWoO3jbB1KyhYUW\n /NMK22K5k9ZQ==",
        "X-Received": "by 2002:a05:6820:6306:b0:67e:16b4:aa07 with SMTP id\n 006d021491bc7-68be8fccf9cmr3747802eaf.61.1776009815390;\n Sun, 12 Apr 2026 09:03:35 -0700 (PDT)",
        "From": "Warner Losh <imp@bsdimp.com>",
        "Date": "Sun, 12 Apr 2026 10:02:26 -0600",
        "Subject": "[PATCH 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": "<20260412-ioctl-v1-3-1d998a460560@bsdimp.com>",
        "References": "<20260412-ioctl-v1-0-1d998a460560@bsdimp.com>",
        "In-Reply-To": "<20260412-ioctl-v1-0-1d998a460560@bsdimp.com>",
        "To": "qemu-devel@nongnu.org",
        "Cc": "Kyle Evans <kevans@freebsd.org>, Warner Losh <imp@bsdimp.com>,\n \"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/ZANAwAKAWwc0Sh9sBEAAcsmYgBp28IfQLUffg/sqZ/ObIK85gemryruK6Ywesy2S\n SJCi25wa7eJAjMEAAEKAB0WIQQgNfiUsAqjz3zN4bdsHNEofbARAAUCadvCHwAKCRBsHNEofbAR\n AHakEACun4hjYy8vcIKW9J698+tJTDomk3ntwNj4sK1IW8hpxbFO1bi5LNLzNFhcOEGLqpjWl/n\n JtHqMgMbPvkegE+oQPJc1giqvlHw73wKQyLnotATN9Zqe+ZvgKherTC21t60EXvxNmIBJPlU6Vu\n Ydi8Z+9Mr2svXj8yG9keqfgBSW6MOot+hmaLbZuGkC1I5SRgsOJrwHzKDlxWnLBCl0IbYrvs/I7\n 4kqLezLK7Vb41vyalGdYq32q51HkMy/BntFyrztwXQa/z250A0SHekTcADxirABvNQvLRo4/a6X\n Cf4gCdEbJuQ6hrh0D5zg6ejaX++Z2n6RcP5ZrSxWwo1qOVP4En+UxgXB0WrkGCR+3Tct3hRBpB0\n X6jpxbGf4dO5/cUkt8dj/Sk6ZV4hr8ESDKwA+APwIPPx+nJ3mXLZ9MCzjbQf1I+BS4rYQzWninP\n sSulSv5tSIGZXdV6DAOjnd4Uct0RZqKb5kAxo0EgsA0xRreMG/aukqOHBGYKoFC3b6IREt5MWM6\n HFoaD9vehGHo7bp5QocX+MOrvl7zgrQCaQQSxK18oRtrZyk85UuKQi9ZzjtuJbFnual38yAY2Aa\n T5S/WllZ+4F1XrgZ2EsRCjPuXzn5pu+somCCWH5yRMC6/7nkr0IMNBxHJYyTKe9bt7trKH+Iovc\n +9uzvnvKdKICBuA==",
        "X-Developer-Key": "i=imp@bsdimp.com; a=openpgp;\n fpr=2035F894B00AA3CF7CCDE1B76C1CD1287DB01100",
        "Received-SPF": "none client-ip=2607:f8b0:4864:20::330;\n envelope-from=imp@bsdimp.com; helo=mail-ot1-x330.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": [
        "03/17"
    ]
}