mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-21 10:05:00 +08:00
e6278d9200
Use the operations on 802.15.4 header structs introduced in a previous patch to create and parse all headers in the mac802154 stack. This patch reduces code duplication between different parts of the mac802154 stack that needed information from headers, and also fixes a few bugs that seem to have gone unnoticed until now: * 802.15.4 dgram sockets would return a slightly incorrect value for the SIOCINQ ioctl * mac802154 would not drop frames with the "security enabled" bit set, even though it does not support security, in violation of the standard Signed-off-by: Phoebe Buckheister <phoebe.buckheister@itwm.fraunhofer.de> Signed-off-by: David S. Miller <davem@davemloft.net>
38 lines
1.3 KiB
C
38 lines
1.3 KiB
C
/*
|
|
* Internal interfaces for ieee 802.15.4 address family.
|
|
*
|
|
* Copyright 2007, 2008, 2009 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.
|
|
*
|
|
* You should have received a copy of the GNU General Public License along
|
|
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
*
|
|
* Written by:
|
|
* Sergey Lapin <slapin@ossfans.org>
|
|
* Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
|
|
*/
|
|
|
|
#ifndef AF802154_H
|
|
#define AF802154_H
|
|
|
|
struct sk_buff;
|
|
struct net_device;
|
|
struct ieee802154_addr;
|
|
extern struct proto ieee802154_raw_prot;
|
|
extern struct proto ieee802154_dgram_prot;
|
|
void ieee802154_raw_deliver(struct net_device *dev, struct sk_buff *skb);
|
|
int ieee802154_dgram_deliver(struct net_device *dev, struct sk_buff *skb);
|
|
struct net_device *ieee802154_get_dev(struct net *net,
|
|
const struct ieee802154_addr *addr);
|
|
|
|
#endif
|