NetworkInterface¶
Namespace: inet
class NetworkInterface
(no description)
Usage diagram¶
Inheritance diagram¶
Extends¶
Name |
Type |
Description |
|---|---|---|
cSimpleModule |
(unknown – not in documented files) |
Fields¶
Name |
Type |
Description |
|---|---|---|
up |
bool |
|
carrier |
bool |
|
broadcast |
bool |
|
multicast |
bool |
|
pointToPoint |
bool |
|
loopback |
bool |
|
mtu |
int |
|
macAddress |
||
ipv4Address |
||
ipv4Netmask |
||
protocolData |
cObject *[] |
Properties¶
Name |
Value |
Description |
|---|---|---|
descriptor |
readonly |
|
existingClass |
||
implements |
cIListener |
Source code¶
class NetworkInterface extends cSimpleModule
{
@existingClass;
@implements(cIListener);
@descriptor(readonly);
bool up @getter("isUp");
bool carrier @getter("hasCarrier");
bool broadcast @getter("isBroadcast");
bool multicast @getter("isMulticast");
bool pointToPoint @getter("isPointToPoint");
bool loopback @getter("isLoopback");
int mtu;
MacAddress macAddress;
Ipv4Address ipv4Address @byValue @toValue(.str()) @fromValue(Ipv4Address($));
Ipv4Address ipv4Netmask @byValue @toValue(.str()) @fromValue(Ipv4Address($));
cObject *protocolData[] @getter(getProtocolData) @sizeGetter(getNumProtocolData);
}