sdk-core
v2026.11.05
PS2 SDK - core tier (build-critical EE/IOP modules)
Toggle main menu visibility
Loading...
Searching...
No Matches
lowpan6_common.h
Go to the documentation of this file.
1
7
8
/*
9
* Copyright (c) 2015 Inico Technologies Ltd.
10
* All rights reserved.
11
*
12
* Redistribution and use in source and binary forms, with or without modification,
13
* are permitted provided that the following conditions are met:
14
*
15
* 1. Redistributions of source code must retain the above copyright notice,
16
* this list of conditions and the following disclaimer.
17
* 2. Redistributions in binary form must reproduce the above copyright notice,
18
* this list of conditions and the following disclaimer in the documentation
19
* and/or other materials provided with the distribution.
20
* 3. The name of the author may not be used to endorse or promote products
21
* derived from this software without specific prior written permission.
22
*
23
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
24
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
25
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT
26
* SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
27
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
28
* OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
29
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
30
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
31
* IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
32
* OF SUCH DAMAGE.
33
*
34
* This file is part of the lwIP TCP/IP stack.
35
*
36
* Author: Ivan Delamer <delamer@inicotech.com>
37
*
38
*
39
* Please coordinate changes and requests with Ivan Delamer
40
* <delamer@inicotech.com>
41
*/
42
43
#ifndef LWIP_HDR_LOWPAN6_COMMON_H
44
#define LWIP_HDR_LOWPAN6_COMMON_H
45
46
#include "
netif/lowpan6_opts.h
"
47
48
#if LWIP_IPV6
/* don't build if IPv6 is disabled in lwipopts.h */
49
50
#include "
lwip/pbuf.h
"
51
#include "
lwip/ip.h
"
52
#include "
lwip/ip6_addr.h
"
53
#include "
lwip/netif.h
"
54
55
#ifdef __cplusplus
56
extern
"C"
{
57
#endif
58
60
struct
lowpan6_link_addr {
61
/* encoded length of the address */
62
u8_t addr_len;
63
/* address bytes */
64
u8_t addr[8];
65
};
66
67
s8_t lowpan6_get_address_mode(
const
ip6_addr_t
*ip6addr,
const
struct
lowpan6_link_addr *mac_addr);
68
69
#if LWIP_6LOWPAN_IPHC
70
err_t lowpan6_compress_headers(
struct
netif
*
netif
, u8_t *inbuf,
size_t
inbuf_size, u8_t *outbuf,
size_t
outbuf_size,
71
u8_t *lowpan6_header_len_out, u8_t *hidden_header_len_out,
ip6_addr_t
*lowpan6_contexts,
72
const
struct
lowpan6_link_addr *src,
const
struct
lowpan6_link_addr *dst);
73
struct
pbuf
*lowpan6_decompress(
struct
pbuf
*p, u16_t datagram_size,
ip6_addr_t
*lowpan6_contexts,
74
struct
lowpan6_link_addr *src,
struct
lowpan6_link_addr *dest);
75
#endif
/* LWIP_6LOWPAN_IPHC */
76
77
#ifdef __cplusplus
78
}
79
#endif
80
81
#endif
/* LWIP_IPV6 */
82
83
#endif
/* LWIP_HDR_LOWPAN6_COMMON_H */
ip6_addr_t
struct ip6_addr ip6_addr_t
Definition
tcpip.h:434
ip6_addr.h
ip.h
lowpan6_opts.h
netif.h
pbuf.h
netif
Definition
tcpip.h:1271
pbuf
Definition
tcpip.h:234
core
ps2ip
include
lwip_include
netif
lowpan6_common.h
Generated by
1.18.0