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

Function parse_num_pkt_cap

dpdk/examples/l3fwd-graph/main.c:337–352  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

335}
336
337static uint64_t
338parse_num_pkt_cap(const char *num_pkt_cap)
339{
340 uint64_t num_pkt;
341 char *end = NULL;
342
343 /* Parse decimal string */
344 num_pkt = strtoull(num_pkt_cap, &end, 10);
345 if ((num_pkt_cap[0] == '\0') || (end == NULL) || (*end != '\0'))
346 return 0;
347
348 if (num_pkt == 0)
349 return 0;
350
351 return num_pkt;
352}
353
354static int
355parse_max_pkt_len(const char *pktlen)

Callers 1

parse_argsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected