Predefined Data Types
Data Type |
Primitive Type |
Description |
Flow Table Dump Presentation |
|---|---|---|---|
macAddr_t |
bit<48> |
MAC address |
MAC address format, for example, a1:b2:c3:d4:e5:f6 |
ip4Addr_t |
bit<32> |
IPv4 address |
IPv4 address format, for example, 192.168.0.1 |
ip6Addr_t |
bit<128> |
IPv6 address |
IPv6 address format, for example, FC00:0:130F:0:0:9C0:876A:130B |
portAddr_t |
bit<16> |
Port address |
Decimal format |
uint1_t to uint32_t |
bit<1> to bit<32> |
Unsigned integer |
Decimal format |
uint64_t |
bit<64> |
Unsigned integer (64-bit) |
Decimal format |
- Except for the preceding predefined types, the data in all other types is presented in hexadecimal format in flow table dumps.
- If an alias is created for a predefined type, the data for that new type will also be presented in hexadecimal format in flow table dumps.
Parent topic: Data Types