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

Function parse_max_pkt_len

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

Source from the content-addressed store, hash-verified

352}
353
354static int
355parse_max_pkt_len(const char *pktlen)
356{
357 unsigned long len;
358 char *end = NULL;
359
360 /* Parse decimal string */
361 len = strtoul(pktlen, &end, 10);
362 if ((pktlen[0] == '\0') || (end == NULL) || (*end != '\0'))
363 return -1;
364
365 if (len == 0)
366 return -1;
367
368 return len;
369}
370
371static void
372parse_worker_model(const char *model)

Callers 1

parse_argsFunction · 0.70

Calls 1

strtoulFunction · 0.85

Tested by

no test coverage detected