ipv4_routing.h File Reference

IPv4 routing. More...

#include "core/net.h"
#include "ipv4/ipv4.h"

Go to the source code of this file.

Data Structures

struct  Ipv4RoutingTableEntry
 Routing table entry. More...




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.


SPDX-License-Identifier: GPL-2.0-or-later

Copyright (C) 2010-2020 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.

Oryx Embedded SARL (www.oryx-embedded.com)

Definition in file ipv4_routing.h.

Macro Definition Documentation



Definition at line 40 of file ipv4_routing.h.



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()

error_t ipv4DeleteRoute ( Ipv4Addr  networkDest,
Ipv4Addr  networkMask 

◆ 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  )