Cast to 8 bit for port
This commit is contained in:
parent
62e0279b25
commit
ed4db31e2c
1 changed files with 1 additions and 1 deletions
|
@ -17,7 +17,7 @@ action select_port_by_type() {
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
sume_metadata.dst_port = hdr.ethernet.ethertype >> 11;
|
sume_metadata.dst_port = (bit<8>) hdr.ethernet.ethertype >> 11;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue