NetBurner 3.5.0
PDF Version
 
Multihome and VLAN

Functions

int AddVlanInterface (IPADDR4 addr, IPADDR4 mask, IPADDR4 gateway, uint16_t vlan_tag, const char *ParentName)
 Add a VLAN interface with a Parent Name.
 
int AddVlanInterface (IPADDR4 addr, IPADDR4 mask, IPADDR4 gateway, uint16_t vlan_tag, InterfaceBlock &parent)
 Add a VLAN interface with a Partent InterfaceBlock reference.
 
int AddVlanInterface (IPADDR4 addr, IPADDR4 mask, IPADDR4 gateway, uint16_t vlan_tag, int root_if=0)
 Add a VLAN interface with an interface number.
 
int AddInterface (IPADDR4 addr, IPADDR4 mask, IPADDR4 gateway, const char *ParentName)
 Add an interface with a Parent Name.
 
int AddInterface (IPADDR4 addr, IPADDR4 mask, IPADDR4 gateway, InterfaceBlock &parent)
 Add an interface with a Partent InterfaceBlock reference.
 
int AddInterface (IPADDR4 addr, IPADDR4 mask, IPADDR4 gateway, int root_if=0)
 Add an interface with an interface number.
 

Detailed Description

#include< multihome.h >

Create Multihome and VLAN Interfaces

Function Documentation

◆ AddInterface() [1/3]

int AddInterface ( IPADDR4 addr,
IPADDR4 mask,
IPADDR4 gateway,
const char * ParentName )
inline

#include <multihome.h>

Add an interface with a Parent Name.

Parameters
addrIP address of new interface
maskIP mask
gatewayIP gateway
ParentNameName of parent physical interface, such as Ethernet0.

returns Interface number of newly created interface

◆ AddInterface() [2/3]

int AddInterface ( IPADDR4 addr,
IPADDR4 mask,
IPADDR4 gateway,
int root_if = 0 )
inline

#include <multihome.h>

Add an interface with an interface number.

Parameters
addrIP address of new interface
maskIP mask
gatewayIP gateway
root_ifOptional root physical interface number. If not specified the default is 0, for Ethernt 0.

returns Interface number of newly created interface

◆ AddInterface() [3/3]

int AddInterface ( IPADDR4 addr,
IPADDR4 mask,
IPADDR4 gateway,
InterfaceBlock & parent )
inline

#include <multihome.h>

Add an interface with a Partent InterfaceBlock reference.

Parameters
addrIP address of new interface
maskIP mask
gatewayIP gateway
parentReference to parent physical interface of type InterfaceBlock.

returns Interface number of newly created interface

◆ AddVlanInterface() [1/3]

int AddVlanInterface ( IPADDR4 addr,
IPADDR4 mask,
IPADDR4 gateway,
uint16_t vlan_tag,
const char * ParentName )

#include <multihome.h>

Add a VLAN interface with a Parent Name.

Parameters
addrIP address of new interface
maskIP mask
gatewayIP gateway
vlan_tagVLAN tag/id for interface
ParentNameName of parent physical interface, such as Ethernet0.

returns Interface number of newly created VLAN interface

◆ AddVlanInterface() [2/3]

int AddVlanInterface ( IPADDR4 addr,
IPADDR4 mask,
IPADDR4 gateway,
uint16_t vlan_tag,
int root_if = 0 )

#include <multihome.h>

Add a VLAN interface with an interface number.

Parameters
addrIP address of new interface
maskIP mask
gatewayIP gateway
vlan_tagVLAN tag/id for interface
root_ifOptional root physical interface number. If not specified the default is 0 for Ethernet 0.

returns Interface number of newly created VLAN interface

◆ AddVlanInterface() [3/3]

int AddVlanInterface ( IPADDR4 addr,
IPADDR4 mask,
IPADDR4 gateway,
uint16_t vlan_tag,
InterfaceBlock & parent )

#include <multihome.h>

Add a VLAN interface with a Partent InterfaceBlock reference.

Parameters
addrIP address of new interface
maskIP mask
gatewayIP gateway
vlan_tagVLAN tag/id for interface
parentReference to parent physical interface of type InterfaceBlock

returns Interface number of newly created VLAN interface