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

Method DropPacket

core/module.h:520–526  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

518}
519
520inline void Module::DropPacket(Context *ctx, bess::Packet *pkt) {
521 ctx->task->dead_batch()->add(pkt);
522 if (static_cast<size_t>(ctx->task->dead_batch()->cnt()) >=
523 bess::PacketBatch::kMaxBurst) {
524 deadend(ctx, ctx->task->dead_batch());
525 }
526}
527
528inline void Module::EmitPacket(Context *ctx, bess::Packet *pkt,
529 gate_idx_t ogate_idx) {

Callers

nothing calls this directly

Calls 4

deadendFunction · 0.85
addMethod · 0.80
dead_batchMethod · 0.80
cntMethod · 0.45

Tested by

no test coverage detected