fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. // your code goes here
  6. constexpr uint8_t VLAN_TPID_HI = 0x81U;
  7. constexpr uint8_t VLAN_TPID_LO = 0x00U;
  8. constexpr uint8_t VLAN_TCI_HI = 0x81U;
  9. constexpr uint8_t VLAN_TCI_LO = 0x0EU;
  10. constexpr uint32_t VLAN_HEADER = (VLAN_TCI_LO << 24) | (VLAN_TCI_HI << 16) | (VLAN_TPID_LO << 8) | VLAN_TPID_HI;
  11. std::cout << std::hex << VLAN_HEADER;
  12. return 0;
  13. }
Success #stdin #stdout 0.01s 5284KB
stdin
Standard input is empty
stdout
e810081