NetBurner 3.5.0
PDF Version |
|
Network Interface Functions. More...
Topics | |
IPADDR4 Functions | |
Network Interface functions with IPADDR4 return types. | |
Low Level Processing (NetDoRx) | |
Callback functions to add custom Ethenet handlers and pass Ethernet frames in the bottom of the TCP/IP stack. | |
Classes | |
class | InterfaceBlock |
Network interface configuration block class for interface control and configuration. More... | |
Functions | |
int | Removeinterface (int interface) |
Remove a network interface from the system. | |
void | EnableMulticast (MACADR macAddress, int interface=0) |
Enable Multicast on an existing interface. | |
void | DisableMulticast (MACADR macAddress, int interface=0) |
Disable Multicast on an existing interface. | |
InterfaceBlock * | GetInterfaceBlock (int interface=0) |
Get an InterfaceBlock control and configuration object. | |
int32_t | GetFirstInterface (void) |
Returns the Interface Number of the first registered network interface. | |
int32_t | GetNextInterface (int lastInterface) |
Returns the Interface Number of the next registered network interface. | |
int32_t | GetInterfaceNumber (InterfaceBlock *pifb) |
Returns the Interface Number of the specified network interface InterfaceBlock. | |
int32_t | GetInterfaceForMyAddress4 (IPADDR4 ip) |
Returns the Interface Number of the specified network interface IPv4 address. | |
bool | GetInterfaceLink (int ifn) |
Returns the network interface link status. | |
MACADR | InterfaceMAC (int interface) |
Returns the MAC address of the specified network interface. | |
bool | InterfaceLinkActive (int interface) |
Returns the link status of the specified network interface. | |
int | InterfaceLinkSpeed (int interface) |
Returns the 10/100 link speed of the specified network interface. | |
bool | InterfaceLinkDuplex (int interface) |
Returns the full or half link duplex of the specified network interface. | |
const char * | InterfaceName (int interface) |
Returns the interface name of the specified network interface. | |
Network Interface Functions.
Callback functions to add custom Ethenet handlers and pass Ethernet.
#include< netinterface.h >
Network Interfaces are configured and controlled C++ InterfaceBlock objects. The InterfaceBlock contains variables and member functions for things such as:
#include< netrx.h >
void DisableMulticast | ( | MACADR | macAddress, |
int | interface = 0 ) |
#include <netinterface.h>
Disable Multicast on an existing interface.
Calls registered interface multicast routine.
macAddress | Multicast MAC address. |
interface | Interface number. If not specified or 0, operates on the first registerd interface. |
void EnableMulticast | ( | MACADR | macAddress, |
int | interface = 0 ) |
#include <netinterface.h>
Enable Multicast on an existing interface.
Calls registered interface multicast routine.
macAddress | Multicast MAC address. |
interface | Interface number. If not specified, default is is 0. |
int32_t GetFirstInterface | ( | void | ) |
#include <netinterface.h>
Returns the Interface Number of the first registered network interface.
If called on a device with wired Ethernet, this will be the first Ethernet interface typlical interface number 1.
InterfaceBlock * GetInterfaceBlock | ( | int | interface = 0 | ) |
#include <netinterface.h>
Get an InterfaceBlock control and configuration object.
interface | Interface number. If not specified or 0, operates on the first registerd interface. |
int32_t GetInterfaceForMyAddress4 | ( | IPADDR4 | ip | ) |
#include <netinterface.h>
Returns the Interface Number of the specified network interface IPv4 address.
ip | IPv4 network interface address. |
bool GetInterfaceLink | ( | int | ifn | ) |
#include <netinterface.h>
Returns the network interface link status.
ifn | Network interface number |
int32_t GetInterfaceNumber | ( | InterfaceBlock * | pifb | ) |
#include <netinterface.h>
Returns the Interface Number of the specified network interface InterfaceBlock.
pifb | Pointer to the InterfaceBlock |
int32_t GetNextInterface | ( | int | lastInterface | ) |
#include <netinterface.h>
Returns the Interface Number of the next registered network interface.
lastInterface | Specifies the interface number starting point to begin search. |
bool InterfaceLinkActive | ( | int | interface | ) |
#include <netinterface.h>
Returns the link status of the specified network interface.
interface | Interface number |
bool InterfaceLinkDuplex | ( | int | interface | ) |
#include <netinterface.h>
Returns the full or half link duplex of the specified network interface.
interface | Interface number |
int InterfaceLinkSpeed | ( | int | interface | ) |
#include <netinterface.h>
Returns the 10/100 link speed of the specified network interface.
interface | Interface number |
MACADR InterfaceMAC | ( | int | interface | ) |
#include <netinterface.h>
Returns the MAC address of the specified network interface.
interface | Interface number |
const char * InterfaceName | ( | int | interface | ) |
#include <netinterface.h>
Returns the interface name of the specified network interface.
interface | Interface number |
int Removeinterface | ( | int | interface | ) |
#include <netinterface.h>
Remove a network interface from the system.
interface | Interface number |