sdk-core
v2026.11.05
PS2 SDK - core tier (build-critical EE/IOP modules)
Toggle main menu visibility
Loading...
Searching...
No Matches
lowpan6.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_H
44
#define LWIP_HDR_LOWPAN6_H
45
46
#include "
netif/lowpan6_opts.h
"
47
48
#if LWIP_IPV6
49
50
#include "
netif/lowpan6_common.h
"
51
#include "
lwip/pbuf.h
"
52
#include "
lwip/ip.h
"
53
#include "
lwip/ip_addr.h
"
54
#include "
lwip/netif.h
"
55
56
#ifdef __cplusplus
57
extern
"C"
{
58
#endif
59
61
#define LOWPAN6_TMR_INTERVAL 1000
62
63
void
lowpan6_tmr(
void
);
64
65
err_t lowpan6_set_context(u8_t idx,
const
ip6_addr_t
* context);
66
err_t lowpan6_set_short_addr(u8_t addr_high, u8_t addr_low);
67
68
#if LWIP_IPV4
69
err_t lowpan4_output(
struct
netif
*
netif
,
struct
pbuf
*q,
const
ip4_addr_t
*ipaddr);
70
#endif
/* LWIP_IPV4 */
71
err_t lowpan6_output(
struct
netif
*
netif
,
struct
pbuf
*q,
const
ip6_addr_t
*ip6addr);
72
err_t lowpan6_input(
struct
pbuf
* p,
struct
netif
*
netif
);
73
err_t lowpan6_if_init(
struct
netif
*
netif
);
74
75
/* pan_id in network byte order. */
76
err_t lowpan6_set_pan_id(u16_t pan_id);
77
78
u16_t lowpan6_calc_crc(
const
void
*buf, u16_t len);
79
80
#if !NO_SYS
81
err_t tcpip_6lowpan_input(
struct
pbuf
*p,
struct
netif
*inp);
82
#endif
/* !NO_SYS */
83
84
#ifdef __cplusplus
85
}
86
#endif
87
88
#endif
/* LWIP_IPV6 */
89
90
#endif
/* LWIP_HDR_LOWPAN6_H */
ip6_addr_t
struct ip6_addr ip6_addr_t
Definition
tcpip.h:434
ip.h
ip_addr.h
lowpan6_common.h
lowpan6_opts.h
netif.h
pbuf.h
ip4_addr_t
struct ip4_addr ip4_addr_t
Definition
ps2ip_rpc.h:41
netif
Definition
tcpip.h:1271
pbuf
Definition
tcpip.h:234
core
ps2ip
include
lwip_include
netif
lowpan6.h
Generated by
1.18.0