sdk-core v2026.11.05
PS2 SDK - core tier (build-critical EE/IOP modules)
Loading...
Searching...
No Matches
lowpan6_ble.h
Go to the documentation of this file.
1
6
7/*
8 * Copyright (c) 2017 Benjamin Aigner
9 * Copyright (c) 2015 Inico Technologies Ltd. , Author: Ivan Delamer <delamer@inicotech.com>
10 *
11 * All rights reserved.
12 *
13 * Redistribution and use in source and binary forms, with or without modification,
14 * are permitted provided that the following conditions are met:
15 *
16 * 1. Redistributions of source code must retain the above copyright notice,
17 * this list of conditions and the following disclaimer.
18 * 2. Redistributions in binary form must reproduce the above copyright notice,
19 * this list of conditions and the following disclaimer in the documentation
20 * and/or other materials provided with the distribution.
21 * 3. The name of the author may not be used to endorse or promote products
22 * derived from this software without specific prior written permission.
23 *
24 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
25 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
26 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT
27 * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
28 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
29 * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
30 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
31 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
32 * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
33 * OF SUCH DAMAGE.
34 *
35 * Author: Benjamin Aigner <aignerb@technikum-wien.at>
36 *
37 * Based on the original 6lowpan implementation of lwIP ( @see 6lowpan.c)
38 */
39
40#ifndef LWIP_HDR_LOWPAN6_BLE_H
41#define LWIP_HDR_LOWPAN6_BLE_H
42
43#include "netif/lowpan6_opts.h"
44
45#if LWIP_IPV6 /* don't build if not configured for use in lwipopts.h */
46
48#include "lwip/pbuf.h"
49#include "lwip/ip.h"
50#include "lwip/ip_addr.h"
51#include "lwip/netif.h"
52
53#ifdef __cplusplus
54extern "C" {
55#endif
56
57err_t rfc7668_output(struct netif *netif, struct pbuf *q, const ip6_addr_t *ip6addr);
58err_t rfc7668_input(struct pbuf * p, struct netif *netif);
59err_t rfc7668_set_local_addr_eui64(struct netif *netif, const u8_t *local_addr, size_t local_addr_len);
60err_t rfc7668_set_local_addr_mac48(struct netif *netif, const u8_t *local_addr, size_t local_addr_len, int is_public_addr);
61err_t rfc7668_set_peer_addr_eui64(struct netif *netif, const u8_t *peer_addr, size_t peer_addr_len);
62err_t rfc7668_set_peer_addr_mac48(struct netif *netif, const u8_t *peer_addr, size_t peer_addr_len, int is_public_addr);
63err_t rfc7668_set_context(u8_t index, const ip6_addr_t * context);
64err_t rfc7668_if_init(struct netif *netif);
65
66#if !NO_SYS
67err_t tcpip_rfc7668_input(struct pbuf *p, struct netif *inp);
68#endif
69
70void ble_addr_to_eui64(u8_t *dst, const u8_t *src, int public_addr);
71void eui64_to_ble_addr(u8_t *dst, const u8_t *src);
72
73#ifdef __cplusplus
74}
75#endif
76
77#endif /* LWIP_IPV6 */
78
79#endif /* LWIP_HDR_LOWPAN6_BLE_H */
struct ip6_addr ip6_addr_t
Definition tcpip.h:434
Definition tcpip.h:234