#include "nhc.h"
#define LOWPAN_NHC_UDP_MASK …
#define LOWPAN_NHC_UDP_ID …
#define LOWPAN_NHC_UDP_4BIT_PORT …
#define LOWPAN_NHC_UDP_4BIT_MASK …
#define LOWPAN_NHC_UDP_8BIT_PORT …
#define LOWPAN_NHC_UDP_8BIT_MASK …
#define LOWPAN_NHC_UDP_CS_P_00 …
#define LOWPAN_NHC_UDP_CS_P_01 …
#define LOWPAN_NHC_UDP_CS_P_10 …
#define LOWPAN_NHC_UDP_CS_P_11 …
#define LOWPAN_NHC_UDP_CS_C …
static int udp_uncompress(struct sk_buff *skb, size_t needed)
{ … }
static int udp_compress(struct sk_buff *skb, u8 **hc_ptr)
{ … }
LOWPAN_NHC(nhc_udp, "RFC6282 UDP", NEXTHDR_UDP, sizeof(struct udphdr),
LOWPAN_NHC_UDP_ID, LOWPAN_NHC_UDP_MASK, udp_uncompress, udp_compress);
module_lowpan_nhc(…);
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;