linux/net/bluetooth/bnep/core.c

/*
   BNEP implementation for Linux Bluetooth stack (BlueZ).
   Copyright (C) 2001-2002 Inventel Systemes
   Written 2001-2002 by
	Clément Moreau <[email protected]>
	David Libault  <[email protected]>

   Copyright (C) 2002 Maxim Krasnyansky <[email protected]>

   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;

   THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
   OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
   FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF THIRD PARTY RIGHTS.
   IN NO EVENT SHALL THE COPYRIGHT HOLDER(S) AND AUTHOR(S) BE LIABLE FOR ANY
   CLAIM, OR ANY SPECIAL INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES
   WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
   ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
   OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

   ALL LIABILITY, INCLUDING LIABILITY FOR INFRINGEMENT OF ANY PATENTS,
   COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS, RELATING TO USE OF THIS
   SOFTWARE IS DISCLAIMED.
*/

#include <linux/module.h>
#include <linux/kthread.h>
#include <linux/file.h>
#include <linux/etherdevice.h>
#include <asm/unaligned.h>

#include <net/bluetooth/bluetooth.h>
#include <net/bluetooth/l2cap.h>
#include <net/bluetooth/hci_core.h>

#include "bnep.h"

#define VERSION

static bool compress_src =;
static bool compress_dst =;

static LIST_HEAD(bnep_session_list);
static DECLARE_RWSEM(bnep_session_sem);

static struct bnep_session *__bnep_get_session(u8 *dst)
{}

static void __bnep_link_session(struct bnep_session *s)
{}

static void __bnep_unlink_session(struct bnep_session *s)
{}

static int bnep_send(struct bnep_session *s, void *data, size_t len)
{}

static int bnep_send_rsp(struct bnep_session *s, u8 ctrl, u16 resp)
{}

#ifdef CONFIG_BT_BNEP_PROTO_FILTER
static inline void bnep_set_default_proto_filter(struct bnep_session *s)
{}
#endif

static int bnep_ctrl_set_netfilter(struct bnep_session *s, __be16 *data, int len)
{}

static int bnep_ctrl_set_mcfilter(struct bnep_session *s, u8 *data, int len)
{}

static int bnep_rx_control(struct bnep_session *s, void *data, int len)
{}

static int bnep_rx_extension(struct bnep_session *s, struct sk_buff *skb)
{}

static u8 __bnep_rx_hlen[] =;

static int bnep_rx_frame(struct bnep_session *s, struct sk_buff *skb)
{}

static u8 __bnep_tx_types[] =;

static int bnep_tx_frame(struct bnep_session *s, struct sk_buff *skb)
{}

static int bnep_session(void *arg)
{}

static struct device *bnep_get_device(struct bnep_session *session)
{}

static const struct device_type bnep_type =;

int bnep_add_connection(struct bnep_connadd_req *req, struct socket *sock)
{}

int bnep_del_connection(struct bnep_conndel_req *req)
{}

static void __bnep_copy_ci(struct bnep_conninfo *ci, struct bnep_session *s)
{}

int bnep_get_connlist(struct bnep_connlist_req *req)
{}

int bnep_get_conninfo(struct bnep_conninfo *ci)
{}

static int __init bnep_init(void)
{}

static void __exit bnep_exit(void)
{}

module_init();
module_exit(bnep_exit);

module_param(compress_src, bool, 0644);
MODULE_PARM_DESC();

module_param(compress_dst, bool, 0644);
MODULE_PARM_DESC();

MODULE_AUTHOR();
MODULE_DESCRIPTION();
MODULE_VERSION();
MODULE_LICENSE();
MODULE_ALIAS();