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

Function parse_default

dpdk/app/test-pmd/cmdline_flow.c:7741–7752  ·  view source on GitHub ↗

Default parsing function for token name matching. */

Source from the content-addressed store, hash-verified

7739
7740/** Default parsing function for token name matching. */
7741static int
7742parse_default(struct context *ctx, const struct token *token,
7743 const char *str, unsigned int len,
7744 void *buf, unsigned int size)
7745{
7746 (void)ctx;
7747 (void)buf;
7748 (void)size;
7749 if (strcmp_partial(token->name, str, len))
7750 return -1;
7751 return len;
7752}
7753
7754/** Parse flow command, initialize output buffer for subsequent tokens. */
7755static int

Callers 15

parse_initFunction · 0.85
parse_iaFunction · 0.85
parse_ia_destroyFunction · 0.85
parse_qiaFunction · 0.85
parse_qia_destroyFunction · 0.85
parse_mpFunction · 0.85
parse_vcFunction · 0.85
parse_vc_specFunction · 0.85
parse_vc_confFunction · 0.85
parse_vc_conf_timeoutFunction · 0.85
parse_vc_item_ecpri_typeFunction · 0.85

Calls 1

strcmp_partialFunction · 0.85

Tested by

no test coverage detected