/* * 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 * Dmitry Eremin-Solenikov */ #ifndef _AF_IEEE802154_H #define _AF_IEEE802154_H #include /* 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 yrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoger Shimizu <rogershimizu@gmail.com>2017-01-30 20:07:29 +0900
committerGregory CLEMENT <gregory.clement@free-electrons.com>2017-01-31 12:19:32 +0100
commit81917bad86a66f2bdcb12b4c10ab1bf333ed25ec (patch)
tree3d56cb771fc5f0a37412e62f99aacc6d21a646c0 /net/tipc/bcast.h
parent0c744ea4f77d72b3dcebb7a8f2684633ec79be88 (diff)
ARM: dts: orion5x-lschl: Fix model name
Model name should be consistent with legacy device file, so that user can migrate their system from legacy device support to device-tree safely. Legacy device file is currently removed, but it can be found on 4.8 or previous version of linux: arch/arm/mach-orion5x/ls-chl-setup.c Fixes: f94f268979a2 ("ARM: dts: orion5x: convert ls-chl to FDT") Cc: Ashley Hughes <ashley.hughes@blueyonder.co.uk> Signed-off-by: Roger Shimizu <rogershimizu@gmail.com> Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
Diffstat (limited to 'net/tipc/bcast.h')