linux/net/ieee802154/6lowpan/rx.c

// SPDX-License-Identifier: GPL-2.0-only

#include <linux/if_arp.h>

#include <net/6lowpan.h>
#include <net/mac802154.h>
#include <net/ieee802154_netdev.h>

#include "6lowpan_i.h"

#define LOWPAN_DISPATCH_FIRST
#define LOWPAN_DISPATCH_FRAG_MASK

#define LOWPAN_DISPATCH_NALP
#define LOWPAN_DISPATCH_ESC
#define LOWPAN_DISPATCH_HC1
#define LOWPAN_DISPATCH_DFF
#define LOWPAN_DISPATCH_BC0
#define LOWPAN_DISPATCH_MESH

static int lowpan_give_skb_to_device(struct sk_buff *skb)
{}

static int lowpan_rx_handlers_result(struct sk_buff *skb, lowpan_rx_result res)
{}

static inline bool lowpan_is_frag1(u8 dispatch)
{}

static inline bool lowpan_is_fragn(u8 dispatch)
{}

static lowpan_rx_result lowpan_rx_h_frag(struct sk_buff *skb)
{}

int lowpan_iphc_decompress(struct sk_buff *skb)
{}

static lowpan_rx_result lowpan_rx_h_iphc(struct sk_buff *skb)
{}

lowpan_rx_result lowpan_rx_h_ipv6(struct sk_buff *skb)
{}

static inline bool lowpan_is_esc(u8 dispatch)
{}

static lowpan_rx_result lowpan_rx_h_esc(struct sk_buff *skb)
{}

static inline bool lowpan_is_hc1(u8 dispatch)
{}

static lowpan_rx_result lowpan_rx_h_hc1(struct sk_buff *skb)
{}

static inline bool lowpan_is_dff(u8 dispatch)
{}

static lowpan_rx_result lowpan_rx_h_dff(struct sk_buff *skb)
{}

static inline bool lowpan_is_bc0(u8 dispatch)
{}

static lowpan_rx_result lowpan_rx_h_bc0(struct sk_buff *skb)
{}

static inline bool lowpan_is_mesh(u8 dispatch)
{}

static lowpan_rx_result lowpan_rx_h_mesh(struct sk_buff *skb)
{}

static int lowpan_invoke_rx_handlers(struct sk_buff *skb)
{}

static inline bool lowpan_is_nalp(u8 dispatch)
{}

/* Lookup for reserved dispatch values at:
 * https://www.iana.org/assignments/_6lowpan-parameters/_6lowpan-parameters.xhtml#_6lowpan-parameters-1
 *
 * Last Updated: 2015-01-22
 */
static inline bool lowpan_is_reserved(u8 dispatch)
{}

/* lowpan_rx_h_check checks on generic 6LoWPAN requirements
 * in MAC and 6LoWPAN header.
 *
 * Don't manipulate the skb here, it could be shared buffer.
 */
static inline bool lowpan_rx_h_check(struct sk_buff *skb)
{}

static int lowpan_rcv(struct sk_buff *skb, struct net_device *wdev,
		      struct packet_type *pt, struct net_device *orig_wdev)
{}

static struct packet_type lowpan_packet_type =;

void lowpan_rx_init(void)
{}

void lowpan_rx_exit(void)
{}