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

Method ProcessBatch

core/modules/generic_decap.cc:44–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42}
43
44void GenericDecap::ProcessBatch(Context *ctx, bess::PacketBatch *batch) {
45 int cnt = batch->cnt();
46
47 int decap_size = decap_size_;
48
49 for (int i = 0; i < cnt; i++) {
50 batch->pkts()[i]->adj(decap_size);
51 }
52
53 RunNextModule(ctx, batch);
54}
55
56ADD_MODULE(GenericDecap, "generic_decap",
57 "remove specified bytes from the beginning of packets")

Callers

nothing calls this directly

Calls 3

adjMethod · 0.80
cntMethod · 0.45
pktsMethod · 0.45

Tested by

no test coverage detected