header_type intrinsic_metadata_t { | |
fields { | |
ingress_global_timestamp : 32; | |
lf_field_list : 32; | |
mcast_grp : 16; | |
egress_rid : 16; | |
} | |
} | |
header_type ethernet_t { | |
fields { | |
dstAddr : 48; | |
srcAddr : 48; | |
etherType : 16; | |
} | |
} | |
header_type ipv4_t { | |
fields { | |
version : 4; | |
ihl : 4; | |
diffserv : 8; | |
totalLen : 16; | |
identification : 16; | |
flags : 3; | |
fragOffset : 13; | |
ttl : 8; | |
protocol : 8; | |
hdrChecksum : 16; | |
srcAddr : 32; | |
dstAddr: 32; | |
} | |
} | |
header_type tcp_t { | |
fields { | |
srcPort : 16; | |
dstPort : 16; | |
seqNo : 32; | |
ackNo : 32; | |
dataOffset : 4; | |
res : 3; | |
ecn : 3; | |
ctrl : 6; | |
window : 16; | |
checksum : 16; | |
urgentPtr : 16; | |
} | |
} | |
header_type udp_t { | |
fields { | |
srcPort : 16; | |
dstPort : 16; | |
length_ : 16; | |
checksum : 16; | |
} | |
} |