get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 804513,
    "url": "http://patchwork.ozlabs.org/api/patches/804513/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/hostap/patch/1503414168-6083-1-git-send-email-michael-dev@fami-braun.de/",
    "project": {
        "id": 22,
        "url": "http://patchwork.ozlabs.org/api/projects/22/?format=api",
        "name": "HostAP Development",
        "link_name": "hostap",
        "list_id": "hostap.lists.infradead.org",
        "list_email": "hostap@lists.infradead.org",
        "web_url": "",
        "scm_url": "",
        "webscm_url": "",
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<1503414168-6083-1-git-send-email-michael-dev@fami-braun.de>",
    "list_archive_url": null,
    "date": "2017-08-22T15:02:48",
    "name": "[PATCHv2,1/1] macsec_linux: exit early when missing macsec kernel module",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "94ef5d646733c272d6f5f7f206a8a6aa35fed141",
    "submitter": {
        "id": 3892,
        "url": "http://patchwork.ozlabs.org/api/people/3892/?format=api",
        "name": "michael-dev",
        "email": "michael-dev@fami-braun.de"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/hostap/patch/1503414168-6083-1-git-send-email-michael-dev@fami-braun.de/mbox/",
    "series": [],
    "comments": "http://patchwork.ozlabs.org/api/patches/804513/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/804513/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org>",
        "X-Original-To": "incoming@patchwork.ozlabs.org",
        "Delivered-To": "patchwork-incoming@bilbo.ozlabs.org",
        "Authentication-Results": [
            "ozlabs.org; spf=none (mailfrom)\n\tsmtp.mailfrom=lists.infradead.org (client-ip=65.50.211.133;\n\thelo=bombadil.infradead.org;\n\tenvelope-from=hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org;\n\treceiver=<UNKNOWN>)",
            "ozlabs.org; dkim=pass (2048-bit key;\n\tunprotected) header.d=lists.infradead.org\n\theader.i=@lists.infradead.org header.b=\"J6TxbuI4\"; \n\tdkim-atps=neutral"
        ],
        "Received": [
            "from bombadil.infradead.org (bombadil.infradead.org\n\t[65.50.211.133])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xcDQJ5N4Dz9s8P\n\tfor <incoming@patchwork.ozlabs.org>;\n\tWed, 23 Aug 2017 01:05:44 +1000 (AEST)",
            "from localhost ([127.0.0.1] helo=bombadil.infradead.org)\n\tby bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux))\n\tid 1dkAk5-0001Q2-Om; Tue, 22 Aug 2017 15:05:21 +0000",
            "from mail.fem.tu-ilmenau.de ([141.24.220.54])\n\tby bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux))\n\tid 1dkAjx-0008D3-A9\n\tfor hostap@lists.infradead.org; Tue, 22 Aug 2017 15:05:20 +0000",
            "from localhost (localhost [127.0.0.1])\n\tby mail.fem.tu-ilmenau.de (Postfix) with ESMTP id A5FC16501;\n\tTue, 22 Aug 2017 17:04:50 +0200 (CEST)",
            "from mail.fem.tu-ilmenau.de ([127.0.0.1])\n\tby localhost (mail.fem.tu-ilmenau.de [127.0.0.1]) (amavisd-new,\n\tport 10024)\n\twith ESMTP id Cxwmy-76HlKt; Tue, 22 Aug 2017 17:04:48 +0200 (CEST)",
            "from mail-backup.fem.tu-ilmenau.de\n\t(mail-backup.net.fem.tu-ilmenau.de [10.42.40.22])\n\t(using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))\n\t(No client certificate requested)\n\tby mail.fem.tu-ilmenau.de (Postfix) with ESMTPS;\n\tTue, 22 Aug 2017 17:04:48 +0200 (CEST)",
            "from a234.fem.tu-ilmenau.de (ray-controller.net.fem.tu-ilmenau.de\n\t[10.42.51.234])\n\tby mail-backup.fem.tu-ilmenau.de (Postfix) with ESMTP id A8CDE5604C; \n\tTue, 22 Aug 2017 17:04:46 +0200 (CEST)",
            "by a234.fem.tu-ilmenau.de (Postfix, from userid 1000)\n\tid F3B5430B5C6B; Tue, 22 Aug 2017 17:02:51 +0200 (CEST)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;\n\td=lists.infradead.org; s=bombadil.20170209; h=Sender:\n\tContent-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe:\n\tList-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References:\n\tIn-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID:\n\tContent-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc\n\t:Resent-Message-ID:List-Owner;\n\tbh=sqM/bFk2VlofI6PbJub2e4manWp7WGwg0pYb/zdjeGg=;\n\tb=J6TxbuI4H/TnPHZrYychIGLFXc\n\tLP6kJQ6smMv91fz/c+xyQdeFJtXbvaRv4QEYUfnSblBE1O6ZvTd7LEJKkxvpFnXnJ2YAkyu8suL+Z\n\t9xDJn9NB790P/YXD6ou2jooM/K0lA9Hmmy/BvxONHCVG/XrkYZd9Hzpr7qcMy/8qh1aaeepC28Edx\n\tqInGrnRUasWGpqZ+G6aKb3WnxUE2saLqI+OUWF7X5WVbkjxoiGqoL98t6LSZJGV/Kdj1DAI3ShhYP\n\tBT0FElsPE1t9kVrrQd4dVQybD+39ELxpNokuzd3R8mAItnrFdKPhgnnHCX+aAOm7/bPsSFZ2MsF/2\n\tdAvej9Qw==;",
        "X-Virus-Scanned": "amavisd-new at fem.tu-ilmenau.de",
        "From": "Michael Braun <michael-dev@fami-braun.de>",
        "To": "hostap@lists.infradead.org",
        "Subject": "[PATCHv2 1/1] macsec_linux: exit early when missing macsec kernel\n\tmodule",
        "Date": "Tue, 22 Aug 2017 17:02:48 +0200",
        "Message-Id": "<1503414168-6083-1-git-send-email-michael-dev@fami-braun.de>",
        "X-Mailer": "git-send-email 2.1.4",
        "In-Reply-To": "<1503078260-22306-1-git-send-email-michael-dev@fami-braun.de>",
        "References": "<1503078260-22306-1-git-send-email-michael-dev@fami-braun.de>",
        "X-CRM114-Version": "20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 ",
        "X-CRM114-CacheID": "sfid-20170822_080513_723732_69FD62E6 ",
        "X-CRM114-Status": "UNSURE (   8.61  )",
        "X-CRM114-Notice": "Please train this message.",
        "X-Spam-Score": "-4.2 (----)",
        "X-Spam-Report": "SpamAssassin version 3.4.1 on bombadil.infradead.org summary:\n\tContent analysis details:   (-4.2 points)\n\tpts rule name              description\n\t---- ----------------------\n\t--------------------------------------------------\n\t-2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at http://www.dnswl.org/,\n\tmedium trust [141.24.220.54 listed in list.dnswl.org]\n\t-1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%\n\t[score: 0.0000]",
        "X-BeenThere": "hostap@lists.infradead.org",
        "X-Mailman-Version": "2.1.21",
        "Precedence": "list",
        "List-Id": "<hostap.lists.infradead.org>",
        "List-Unsubscribe": "<http://lists.infradead.org/mailman/options/hostap>,\n\t<mailto:hostap-request@lists.infradead.org?subject=unsubscribe>",
        "List-Archive": "<http://lists.infradead.org/pipermail/hostap/>",
        "List-Post": "<mailto:hostap@lists.infradead.org>",
        "List-Help": "<mailto:hostap-request@lists.infradead.org?subject=help>",
        "List-Subscribe": "<http://lists.infradead.org/mailman/listinfo/hostap>,\n\t<mailto:hostap-request@lists.infradead.org?subject=subscribe>",
        "Cc": "projekt-wlan@fem.tu-ilmenau.de, Michael Braun <michael-dev@fami-braun.de>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=\"us-ascii\"",
        "Content-Transfer-Encoding": "7bit",
        "Sender": "\"Hostap\" <hostap-bounces@lists.infradead.org>",
        "Errors-To": "hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org"
    },
    "content": "Using driver macsec_linux makes no sense without macsec kernel module loaded.\n\nSigned-off-by: Michael Braun <michael-dev@fami-braun.de>\n\n--\nv2: improve output, fix coding style\n---\n src/drivers/driver_macsec_linux.c | 32 ++++++++++++++++++++++++++++++++\n 1 file changed, 32 insertions(+)",
    "diff": "diff --git a/src/drivers/driver_macsec_linux.c b/src/drivers/driver_macsec_linux.c\nindex 0694e60..d5ca273 100644\n--- a/src/drivers/driver_macsec_linux.c\n+++ b/src/drivers/driver_macsec_linux.c\n@@ -234,10 +234,42 @@ static void macsec_drv_wpa_deinit(void *priv)\n }\n \n \n+static int macsec_check_macsec()\n+{\n+\tstruct nl_sock *sk;\n+\tint err = -1;\n+\n+\tsk = nl_socket_alloc();\n+\tif (!sk) {\n+\t\twpa_printf(MSG_ERROR, DRV_PREFIX \"failed to alloc genl socket\");\n+\t\treturn -1;\n+\t}\n+\n+\tif (genl_connect(sk) < 0) {\n+\t\twpa_printf(MSG_ERROR,\n+\t\t\t   DRV_PREFIX \"connection to genl socket failed\");\n+\t\tgoto out_free;\n+\t}\n+\n+\tif (genl_ctrl_resolve(sk, \"macsec\") < 0) {\n+\t\twpa_printf(MSG_ERROR, DRV_PREFIX \"genl resolve failed - macsec kernel module not present?\");\n+\t\tgoto out_free;\n+\t}\n+\n+\terr = 0;\n+\n+out_free:\n+\tnl_socket_free(sk);\n+\treturn err;\n+}\n+\n static void * macsec_drv_wpa_init(void *ctx, const char *ifname)\n {\n \tstruct macsec_drv_data *drv;\n \n+\tif (macsec_check_macsec() < 0)\n+\t\treturn NULL;\n+\n \tdrv = os_zalloc(sizeof(*drv));\n \tif (!drv)\n \t\treturn NULL;\n",
    "prefixes": [
        "PATCHv2",
        "1/1"
    ]
}