MCPcopy Create free account
hub / github.com/F-Stack/f-stack / gnet_stats_enq

Function gnet_stats_enq

freebsd/netpfil/ipfw/test/main.c:168–178  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

166}
167
168static void
169gnet_stats_enq(struct cfg_s *c, struct mbuf *mb)
170{
171 struct dn_sch_inst *si = c->si;
172 struct dn_queue *_q = FI2Q(c, mb->flow_id);
173
174 if (_q->ni.length == 1) {
175 _q->ni.bytes = 0;
176 _q->ni.sch_bytes = si->ni.bytes;
177 }
178}
179
180static void
181gnet_stats_deq(struct cfg_s *c, struct mbuf *mb)

Callers 1

mainloopFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected