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

Class Source

core/modules/source.h:37–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35#include "../pb/module_msg.pb.h"
36
37class Source final : public Module {
38 public:
39 static const gate_idx_t kNumIGates = 0;
40
41 static const Commands cmds;
42
43 Source() : Module(), pkt_size_(), burst_() { is_task_ = true; }
44
45 CommandResponse Init(const bess::pb::SourceArg &arg);
46
47 struct task_result RunTask(Context *ctx, bess::PacketBatch *batch,
48 void *arg) override;
49
50 CommandResponse CommandSetBurst(
51 const bess::pb::SourceCommandSetBurstArg &arg);
52 CommandResponse CommandSetPktSize(
53 const bess::pb::SourceCommandSetPktSizeArg &arg);
54
55 private:
56 int pkt_size_;
57 int burst_;
58};
59
60#endif // BESS_MODULES_FLOWGEN_H_

Callers 10

_fairness_n_flow_testMethod · 0.85
test_run_acl_customMethod · 0.85
_drop_with_rateMethod · 0.85
test_queueMethod · 0.85
test_natMethod · 0.85
test_nat_queueMethod · 0.85
test_nat_negativeMethod · 0.85

Calls

no outgoing calls

Tested by 8

test_run_acl_customMethod · 0.68
test_queueMethod · 0.68
test_natMethod · 0.68
test_nat_queueMethod · 0.68
test_nat_negativeMethod · 0.68