MCPcopy Create free account
hub / github.com/NetSys/bess / GetDesc

Method GetDesc

core/modules/vlan_push.cc:89–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

87}
88
89std::string VLANPush::GetDesc() const {
90 uint32_t vlan_tag = vlan_tag_.value();
91
92 return bess::utils::Format("PCP=%u DEI=%u VID=%u", (vlan_tag >> 13) & 0x0007,
93 (vlan_tag >> 12) & 0x0001, vlan_tag & 0x0fff);
94}
95
96ADD_MODULE(VLANPush, "vlan_push", "adds 802.1Q/802.11ad VLAN tag")

Callers

nothing calls this directly

Calls 2

FormatFunction · 0.85
valueMethod · 0.80

Tested by

no test coverage detected