Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
ipv6_routing.h File Reference
IPv6 routing. More...
Go to the source code of this file.
Data Structures | |
| struct | Ipv6RoutingTableEntry |
| Routing table entry. More... | |
Functions | |
| error_t | ipv6InitRouting (void) |
| Initialize IPv6 routing table. | |
| error_t | ipv6EnableRouting (NetInterface *interface, bool_t enable) |
| Enable routing for the specified interface. | |
| error_t | ipv6AddRoute (const Ipv6Addr *prefix, uint_t prefixLength, NetInterface *interface, const Ipv6Addr *nextHop, uint_t metric) |
| Add a new entry in the IPv6 routing table. | |
| error_t | ipv6DeleteRoute (const Ipv6Addr *prefix, uint_t prefixLength) |
| Remove an entry from the IPv6 routing table. | |
| error_t | ipv6DeleteAllRoutes (void) |
| Delete all routes from the IPv6 routing table. | |
| error_t | ipv6ForwardPacket (NetInterface *srcInterface, NetBuffer *ipPacket, size_t ipPacketOffset) |
| Forward an IPv6 packet. | |
Detailed Description
IPv6 routing.
License
Copyright (C) 2010-2017 Oryx Embedded SARL. All rights reserved.
This file is part of CycloneTCP Open.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- Version:
- 1.7.6
Definition in file ipv6_routing.h.
Function Documentation
| error_t ipv6AddRoute | ( | const Ipv6Addr * | prefix, |
| uint_t | prefixLength, | ||
| NetInterface * | interface, | ||
| const Ipv6Addr * | nextHop, | ||
| uint_t | metric | ||
| ) |
Add a new entry in the IPv6 routing table.
- Parameters:
-
[in] prefix Network destination [in] prefixLength Length of the prefix, in bits [in] interface Network interface where to forward the packet [in] nextHop IPv6 address of the next hop [in] metric Metric value
- Returns:
- Error code
Definition at line 101 of file ipv6_routing.c.
| error_t ipv6DeleteAllRoutes | ( | void | ) |
Delete all routes from the IPv6 routing table.
- Returns:
- Error code
Definition at line 243 of file ipv6_routing.c.
| error_t ipv6DeleteRoute | ( | const Ipv6Addr * | prefix, |
| uint_t | prefixLength | ||
| ) |
Remove an entry from the IPv6 routing table.
- Parameters:
-
[in] prefix Network destination [in] prefixLength Length of the prefix, in bits
- Returns:
- Error code
Definition at line 194 of file ipv6_routing.c.
| error_t ipv6EnableRouting | ( | NetInterface * | interface, |
| bool_t | enable | ||
| ) |
Enable routing for the specified interface.
- Parameters:
-
[in] interface Underlying network interface [in] enable When the flag is set to TRUE, routing is enabled on the interface and the router can forward packets to or from the interface
- Returns:
- Error code
Definition at line 73 of file ipv6_routing.c.
| error_t ipv6ForwardPacket | ( | NetInterface * | srcInterface, |
| NetBuffer * | ipPacket, | ||
| size_t | ipPacketOffset | ||
| ) |
Forward an IPv6 packet.
- Parameters:
-
[in] srcInterface Network interface on which the packet was received [in] ipPacket Multi-part buffer that holds the IPv6 packet to forward [in] ipPacketOffset Offset to the first byte of the IPv6 packet
- Returns:
- Error code
Definition at line 265 of file ipv6_routing.c.
| error_t ipv6InitRouting | ( | void | ) |
Generated on Tue Jul 12 2022 17:10:20 by
1.7.2