sdk-core v2026.11.05
PS2 SDK - core tier (build-critical EE/IOP modules)
Loading...
Searching...
No Matches
ip6.h
Go to the documentation of this file.
1
7
8/*
9 * Copyright (c) 2010 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#ifndef LWIP_HDR_IP6_H
43#define LWIP_HDR_IP6_H
44
45#include "lwip/opt.h"
46
47#if LWIP_IPV6 /* don't build if not configured for use in lwipopts.h */
48
49#include "lwip/ip6_addr.h"
50#include "lwip/prot/ip6.h"
51#include "lwip/def.h"
52#include "lwip/pbuf.h"
53#include "lwip/netif.h"
54
55#include "lwip/err.h"
56
57#ifdef __cplusplus
58extern "C" {
59#endif
60
61struct netif *ip6_route(const ip6_addr_t *src, const ip6_addr_t *dest);
62const ip_addr_t *ip6_select_source_address(struct netif *netif, const ip6_addr_t * dest);
63err_t ip6_input(struct pbuf *p, struct netif *inp);
64err_t ip6_output(struct pbuf *p, const ip6_addr_t *src, const ip6_addr_t *dest,
65 u8_t hl, u8_t tc, u8_t nexth);
66err_t ip6_output_if(struct pbuf *p, const ip6_addr_t *src, const ip6_addr_t *dest,
67 u8_t hl, u8_t tc, u8_t nexth, struct netif *netif);
68err_t ip6_output_if_src(struct pbuf *p, const ip6_addr_t *src, const ip6_addr_t *dest,
69 u8_t hl, u8_t tc, u8_t nexth, struct netif *netif);
70#if LWIP_NETIF_USE_HINTS
71err_t ip6_output_hinted(struct pbuf *p, const ip6_addr_t *src, const ip6_addr_t *dest,
72 u8_t hl, u8_t tc, u8_t nexth, struct netif_hint *netif_hint);
73#endif /* LWIP_NETIF_USE_HINTS */
74#if LWIP_IPV6_MLD
75err_t ip6_options_add_hbh_ra(struct pbuf * p, u8_t nexth, u8_t value);
76#endif /* LWIP_IPV6_MLD */
77
78#define ip6_netif_get_local_ip(netif, dest) (((netif) != NULL) ? \
79 ip6_select_source_address(netif, dest) : NULL)
80
81#if IP6_DEBUG
82void ip6_debug_print(struct pbuf *p);
83#else
84#define ip6_debug_print(p)
85#endif /* IP6_DEBUG */
86
87
88#ifdef __cplusplus
89}
90#endif
91
92#endif /* LWIP_IPV6 */
93
94#endif /* LWIP_HDR_IP6_H */
struct ip6_addr ip6_addr_t
Definition tcpip.h:434
Definition tcpip.h:234