5 #ifndef ForwardingAlgorithmResponse_H 6 #define ForwardingAlgorithmResponse_H 10 #define MAC_ADDR_SIZE 6 129 #endif // FAWB_MACADDRESS_H void setPresent(ForwardingAlgorithmResponse_PR p)
setPresent Set the type of response
union ForwardingAlgorithmResponseMacAddress_u ForwardingAlgorithmResponseMacAddress
ForwardingAlgorithmResponseMacAddress union is the union between a number or a MAC address...
int integer() const
integer Integer getter.
ForwardingAlgorithmResponse_PR
ForwardingAlgorithmResponse_PR enum defines the type of address.
ForwardingAlgorithmResponse & operator=(ForwardingAlgorithmResponse macAddress)
operator= ForwardingAlgorithmResponse affectation operator.
ForwardingAlgorithmResponse_PR m_present
Type of the ForwardingAlgorithmResponse.
ForwardingAlgorithmResponseMacAddress_u choice
ForwardingAlgorithmResponseMacAddress union is the union between a number or a MAC address...
bool operator==(const ForwardingAlgorithmResponse &macAddress) const
operator== ForwardingAlgorithmResponse comparison operator
ForwardingAlgorithmResponse()
ForwardingAlgorithmResponse ForwardingAlgorithmResponse constructor.
void setInteger(int n)
setInteger Integer setter.
bool isMacAddr()
isMacAddr Look if the ForwardingAlgorithmResponse is a MAC address.
uchar macAddr[MAC_ADDR_SIZE]
MAC address.
uchar * macAddr()
macAddr MAC address getter.
bool isInteger()
isInteger Look if the ForwardingAlgorithmResponse is an integer.
bool operator!=(const ForwardingAlgorithmResponse &macAddress) const
operator!= ForwardingAlgorithmResponse comparison operator.
ForwardingAlgorithmResponse_PR present() const
present Type of response getter.
void setMacAddr(uchar *m)
setMacAddr MAC address setter.