31 #ifndef SYSTEM_CORE_INC_NET_OC_NETIFMAN_H_ 32 #define SYSTEM_CORE_INC_NET_OC_NETIFMAN_H_ 41 #define _________________________________________TYPES_SECTION______________________________________________________________________________ 80 #undef _________________________________________TYPES_SECTION______________________________________________________________________________ 87 #define _________________________________________FUNCTIONS_SECTION__________________________________________________________________________ 89 extern oC_ErrorCode_t oC_NetifMan_TurnOn (
void );
106 #undef _________________________________________FUNCTIONS_SECTION__________________________________________________________________________ oC_ErrorCode_t oC_NetifMan_RemoveNetifFromList(oC_Netif_t Netif)
removes a Netif object from the list
oC_Netif_t oC_NetifMan_GetNetif(oC_Netif_FriendlyName_t FriendlyName)
returns #Netif with the given name
oC_Net_Address_t DestinationAddress
Destination address of the packet.
oC_ErrorCode_t oC_NetifMan_StartDaemon(void)
starts the NetifMan daemon
void oC_NetifMan_ConfigureAll(void)
configures all network interface
oC_ErrorCode_t oC_NetifMan_ReceivePacket(const oC_Net_Address_t *Address, 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
Contains interface for netif object.
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
uint32_t oC_Net_Cost_t
stores cost of the network connection
oC_List(oC_Netif_t) oC_NetifMan_GetList(void)
returns list of network interfaces
oC_Netif_t Netif
Netif interface to use.
stores entry of the routing table
bool(* oC_NetifMan_PacketFilterFunction_t)(oC_Net_Packet_t *ReceivedPacket, const void *Parameter, oC_Netif_t Netif)
stores pointer to the function to filter packets
oC_Net_Address_t Netmask
Subnetwork mask.
oC_ErrorCode_t oC_NetifMan_TurnOff(void)
releases module resources
void oC_NetifMan_UnconfigureAll(void)
unconfigures all network interface
oC_Netif_t oC_NetifMan_GetNetifForAddress(const oC_Net_Address_t *Destination)
returns network interface according to destination address
oC_ErrorCode_t oC_NetifMan_AddNetifToList(oC_Netif_t Netif)
adds new netif to the list
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
void oC_NetifMan_UpdateRoutingTable(void)
updates active routing table
oC_Net_FriendlyInterfaceName_t oC_Netif_FriendlyName_t
type for storing friendly name string
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
oC_Net_Cost_t Cost
Cost of interface usage (it is to allow choosing one interface more frequently than another) ...