Choco OS
V.0.16.9.0
Join to the chocolate world
|
Files with sources of the netif manager. More...
#include <oc_netifman.h>
#include <oc_netif_cfg.c>
#include <oc_intman.h>
#include <oc_driverman.h>
#include <oc_processman.h>
#include <oc_debug.h>
#include <oc_semaphore.h>
#include <oc_module.h>
#include <oc_userman.h>
#include <oc_event.h>
#include <oc_streamman.h>
#include <oc_icmp.h>
Go to the source code of this file.
Data Structures | |
struct | Packet_t |
struct | SoftwareRing_t |
struct | RoutingTableData_t |
Functions | |
static void | PutToSoftwareRing (SoftwareRing_t *SoftwareRing, oC_Netif_t Netif, oC_Net_Packet_t *Packet) |
puts packet to the software ring | |
static bool | GetFromSoftwareRing (SoftwareRing_t *SoftwareRing, const oC_Net_Address_t *Address, oC_Net_Packet_t *outPacket, oC_Netif_t *outNetif, oC_NetifMan_PacketFilterFunction_t FilterFunction, const void *Parameter) |
reads packet from the software ring | |
static bool | IsSoftwareRingFull (SoftwareRing_t *SoftwareRing) |
checks if the software ring is full | |
static RoutingTableEntry_t * | GetActiveRoutingTableEntry (const oC_Net_Address_t *Address) |
returns active table entry for the given address | |
static void | DaemonThread (void *Argument) |
main thread for handling network interfaces | |
oC_ErrorCode_t | oC_NetifMan_TurnOff (void) |
releases module resources More... | |
void | oC_NetifMan_ConfigureAll (void) |
configures all network interface More... | |
void | oC_NetifMan_UnconfigureAll (void) |
unconfigures all network interface More... | |
oC_Netif_t | oC_NetifMan_GetNetif (oC_Netif_FriendlyName_t FriendlyName) |
returns #Netif with the given name More... | |
oC_Netif_t | oC_NetifMan_GetNetifForAddress (const oC_Net_Address_t *Destination) |
returns network interface according to destination address More... | |
oC_ErrorCode_t | oC_NetifMan_AddNetifToList (oC_Netif_t Netif) |
adds new netif to the list More... | |
oC_ErrorCode_t | oC_NetifMan_RemoveNetifFromList (oC_Netif_t Netif) |
removes a Netif object from the list More... | |
oC_ErrorCode_t | oC_NetifMan_AddRoutingTableEntry (const oC_Net_Address_t *Destination, const oC_Net_Address_t *Netmask, oC_Net_Cost_t Cost, oC_Netif_t Netif) |
adds an entry to the routing table More... | |
oC_ErrorCode_t | oC_NetifMan_RemoveRoutingTableEntry (const oC_Net_Address_t *Destination, const oC_Net_Address_t *Netmask, oC_Netif_t Netif) |
removes entry from the Routing Table More... | |
oC_List (oC_Netif_t) | |
returns list of network interfaces More... | |
oC_ErrorCode_t | oC_NetifMan_SendPacket (const oC_Net_Address_t *Address, oC_Net_Packet_t *Packet, oC_Time_t Timeout, oC_Netif_t *outNetif) |
sends packet via active network interface More... | |
oC_ErrorCode_t | oC_NetifMan_ReceivePacket (const oC_Net_Address_t *AddressFilter, oC_Net_Packet_t *outPacket, oC_Time_t Timeout, oC_Netif_t *outNetif, oC_NetifMan_PacketFilterFunction_t FilterFunction, const void *Parameter) |
receives packet from the network More... | |
void | oC_NetifMan_UpdateRoutingTable (void) |
updates active routing table More... | |
oC_ErrorCode_t | oC_NetifMan_StartDaemon (void) |
starts the NetifMan daemon More... | |
static void | ReceivePacketsThread (oC_Netif_t Netif) |
thread for receiving packets via network interface | |
static void | EchoThread (void *Thread) |
thread for echo messages | |
Variables | |
static const oC_Allocator_t | Allocator |
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 St, Fifth Floor, Boston, MA 02110-1301 USA
Definition in file oc_netifman.c.
|
static |
Allocator for objects from the module
Definition at line 114 of file oc_netifman.c.