/*
 * IEEE 802.15.4 interface for userspace
 *
 * Copyright 2007, 2008 Siemens AG
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2
 * as published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * Written by:
 * Sergey Lapin <slapin@ossfans.org>
 * Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
 */

#ifndef _AF_IEEE802154_H
#define _AF_IEEE802154_H

#include <linux/socket.h> /* for sa_family_t */

enum {
	IEEE802154_ADDR_NONE = 0x0,
	/* RESERVED = 0x01, */
	IEEE802154_ADDR_SHORT = 0x2, /* 16-bit address + PANid */
	IEEE802154_ADDR_LONG = 0x3, /* 64-bit address + PANid */
};

/* address length, octets */
#define IEEE802154_ADDR_LEN	8

struct ieee802154_addr_sa {
	int addr_type;
	u16 pan_id;
	union {
		u8 hwaddr[IEEE802154_ADDR_LEN];
		u16 short_addr;
	};
};

#define IEEE802154_PANID_BROADCAST	0xffff
#define IEEE802154_ADDR_BROADCAST	0xffff
#define IEEE802154_ADDR_UNDEF		0xfffe

struct sockaddr_ieee802154 {
	sa_family_t family; /* AF_IEEE802154 */
	struct ieee802154_addr_sa addr;
};

/* get/setsockopt */
#define SOL_IEEE802154	0

#define WPAN_WANTACK		0
#define WPAN_SECURITY		1
#define WPAN_SECURITY_LEVEL	2

#define WPAN_SECURITY_DEFAULT	0
#define WPAN_SECURITY_OFF	1
#define WPAN_SECURITY_ON	2

#define WPAN_SECURITY_LEVEL_DEFAULT	(-1)

#endif
fs/?id=628f07d33c1f2e7bf31e0a4a988bb07914bd5e73'>refs</a><a href='/cgit.cgi/linux/net-next.git/log/drivers/usb/serial/console.c'>log</a><a href='/cgit.cgi/linux/net-next.git/tree/drivers/usb/serial/console.c?id=628f07d33c1f2e7bf31e0a4a988bb07914bd5e73'>tree</a><a class='active' href='/cgit.cgi/linux/net-next.git/commit/drivers/usb/serial/console.c?id=628f07d33c1f2e7bf31e0a4a988bb07914bd5e73'>commit</a><a href='/cgit.cgi/linux/net-next.git/diff/drivers/usb/serial/console.c?id=628f07d33c1f2e7bf31e0a4a988bb07914bd5e73'>diff</a></td><td class='form'><form class='right' method='get' action='/cgit.cgi/linux/net-next.git/log/drivers/usb/serial/console.c'>
<input type='hidden' name='id' value='628f07d33c1f2e7bf31e0a4a988bb07914bd5e73'/><select name='qt'>
<option value='grep'>log msg</option>
<option value='author'>author</option>
<option value='committer'>committer</option>
<option value='range'>range</option>
</select>
<input class='txt' type='search' size='10' name='q' value=''/>
<input type='submit' value='search'/>
</form>
</td></tr></table>
<div class='path'>path: <a href='/cgit.cgi/linux/net-next.git/commit/?id=628f07d33c1f2e7bf31e0a4a988bb07914bd5e73'>root</a>/<a href='/cgit.cgi/linux/net-next.git/commit/drivers?id=628f07d33c1f2e7bf31e0a4a988bb07914bd5e73'>drivers</a>/<a href='/cgit.cgi/linux/net-next.git/commit/drivers/usb?id=628f07d33c1f2e7bf31e0a4a988bb07914bd5e73'>usb</a>/<a href='/cgit.cgi/linux/net-next.git/commit/drivers/usb/serial?id=628f07d33c1f2e7bf31e0a4a988bb07914bd5e73'>serial</a>/<a href='/cgit.cgi/linux/net-next.git/commit/drivers/usb/serial/console.c?id=628f07d33c1f2e7bf31e0a4a988bb07914bd5e73'>console.c</a></div><div class='content'><div class='cgit-panel'><b>diff options</b><form method='get'><input type='hidden' name='id' value='628f07d33c1f2e7bf31e0a4a988bb07914bd5e73'/><table><tr><td colspan='2'/></tr><tr><td class='label'>context:</td><td class='ctrl'><select name='context' onchange='this.form.submit();'><option value='1'>1</option><option value='2'>2</option><option value='3' selected='selected'>3</option><option value='4'>4</option><option value='5'>5</option><option value='6'>6</option><option value='7'>7</option><option value='8'>8</option><option value='9'>9</option><option value='10'>10</option><option value='15'>15</option><option value='20'>20</option><option value='25'>25</option><option value='30'>30</option><option value='35'>35</option><option value='40'>40</option></select></td></tr><tr><td class='label'>space:</td><td class='ctrl'><select name='ignorews' onchange='this.form.submit();'><option value='0' selected='selected'>include</option><option value='1'>ignore</option></select></td></tr><tr><td class='label'>mode:</td><td class='ctrl'><select name='dt' onchange='this.form.submit();'><option value='0' selected='selected'>unified</option><option value='1'>ssdiff</option><option value='2'>stat only</option></select></td></tr><tr><td/><td class='ctrl'><noscript><input type='submit' value='reload'/></noscript></td></tr></table></form></div><table summary='commit info' class='commit-info'>
<tr><th>author</th><td>Eyal Itkin &lt;eyal.itkin@gmail.com&gt;</td><td class='right'>2017-02-07 16:43:05 +0300</td></tr>
<tr><th>committer</th><td>Doug Ledford &lt;dledford@redhat.com&gt;</td><td class='right'>2017-02-08 12:28:30 -0500</td></tr>
<tr><th>commit</th><td colspan='2' class='oid'><a href='/cgit.cgi/linux/net-next.git/commit/drivers/usb/serial/console.c?id=628f07d33c1f2e7bf31e0a4a988bb07914bd5e73'>628f07d33c1f2e7bf31e0a4a988bb07914bd5e73</a> (<a href='/cgit.cgi/linux/net-next.git/patch/drivers/usb/serial/console.c?id=628f07d33c1f2e7bf31e0a4a988bb07914bd5e73'>patch</a>)</td></tr>
<tr><th>tree</th><td colspan='2' class='oid'><a href='/cgit.cgi/linux/net-next.git/tree/?id=628f07d33c1f2e7bf31e0a4a988bb07914bd5e73'>c228c66498f9a4562093fbbf80a41bcede0c06f2</a> /<a href='/cgit.cgi/linux/net-next.git/tree/drivers/usb/serial/console.c?id=628f07d33c1f2e7bf31e0a4a988bb07914bd5e73'>drivers/usb/serial/console.c</a></td></tr>
<tr><th>parent</th><td colspan='2' class='oid'><a href='/cgit.cgi/linux/net-next.git/commit/drivers/usb/serial/console.c?id=b4cfe3971f6eab542dd7ecc398bfa1aeec889934'>b4cfe3971f6eab542dd7ecc398bfa1aeec889934</a> (<a href='/cgit.cgi/linux/net-next.git/diff/drivers/usb/serial/console.c?id=628f07d33c1f2e7bf31e0a4a988bb07914bd5e73&amp;id2=b4cfe3971f6eab542dd7ecc398bfa1aeec889934'>diff</a>)</td></tr></table>
<div class='commit-subject'>IB/rxe: Fix resid update</div><div class='commit-msg'>Update the response's resid field when larger than MTU, instead of only
updating the local resid variable.

Fixes: 8700e3e7c485 ("Soft RoCE driver")
Signed-off-by: Eyal Itkin &lt;eyal.itkin@gmail.com&gt;
Signed-off-by: Dan Carpenter &lt;dan.carpenter@oracle.com&gt;
Reviewed-by: Leon Romanovsky &lt;leonro@mellanox.com&gt;
Signed-off-by: Doug Ledford &lt;dledford@redhat.com&gt;
</div><div class='diffstat-header'><a href='/cgit.cgi/linux/net-next.git/diff/?id=628f07d33c1f2e7bf31e0a4a988bb07914bd5e73'>Diffstat</a> (limited to 'drivers/usb/serial/console.c')</div><table summary='diffstat' class='diffstat'>