IPv4 routing. More...
Go to the source code of this file.
Data Structures | |
struct | Ipv4RoutingTableEntry |
Routing table entry. More... | |
Macros | |
#define | IPV4_ROUTING_SUPPORT DISABLED |
#define | IPV4_ROUTING_TABLE_SIZE 8 |
Functions | |
error_t | ipv4InitRouting (void) |
error_t | ipv4EnableRouting (NetInterface *interface, bool_t enable) |
error_t | ipv4AddRoute (Ipv4Addr networkDest, Ipv4Addr networkMask, NetInterface *interface, Ipv4Addr nextHop, uint_t metric) |
error_t | ipv4DeleteRoute (Ipv4Addr networkDest, Ipv4Addr networkMask) |
error_t | ipv4DeleteAllRoutes (void) |
error_t | ipv4ForwardPacket (NetInterface *srcInterface, const NetBuffer *ipPacket, size_t ipPacketOffset) |
Detailed Description
IPv4 routing.
License
SPDX-License-Identifier: GPL-2.0-or-later
Copyright (C) 2010-2024 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
- 2.4.4
Definition in file ipv4_routing.h.
Macro Definition Documentation
◆ IPV4_ROUTING_SUPPORT
#define IPV4_ROUTING_SUPPORT DISABLED |
Definition at line 40 of file ipv4_routing.h.
◆ IPV4_ROUTING_TABLE_SIZE
#define IPV4_ROUTING_TABLE_SIZE 8 |
Definition at line 47 of file ipv4_routing.h.
Function Documentation
◆ ipv4AddRoute()
error_t ipv4AddRoute | ( | Ipv4Addr | networkDest, |
Ipv4Addr | networkMask, | ||
NetInterface * | interface, | ||
Ipv4Addr | nextHop, | ||
uint_t | metric | ||
) |
◆ ipv4DeleteAllRoutes()
error_t ipv4DeleteAllRoutes | ( | void | ) |
◆ ipv4DeleteRoute()
◆ ipv4EnableRouting()
error_t ipv4EnableRouting | ( | NetInterface * | interface, |
bool_t | enable | ||
) |
◆ ipv4ForwardPacket()
error_t ipv4ForwardPacket | ( | NetInterface * | srcInterface, |
const NetBuffer * | ipPacket, | ||
size_t | ipPacketOffset | ||
) |
◆ ipv4InitRouting()
error_t ipv4InitRouting | ( | void | ) |