Home
last modified time | relevance | path

Searched refs:token_len (Results 1 – 5 of 5) sorted by relevance

/f-stack/dpdk/lib/librte_cmdline/
H A Dcmdline_parse_string.c60 unsigned int token_len; in cmdline_parse_string() local
77 token_len = get_token_len(str); in cmdline_parse_string()
84 if ( strncmp(buf, str, token_len) ) { in cmdline_parse_string()
103 token_len = 0; in cmdline_parse_string()
106 token_len++; in cmdline_parse_string()
114 token_len = 0; in cmdline_parse_string()
116 token_len < (STR_TOKEN_SIZE-1)) in cmdline_parse_string()
117 token_len++; in cmdline_parse_string()
120 if (token_len >= STR_TOKEN_SIZE - 1) { in cmdline_parse_string()
133 *((char *)res + token_len) = 0; in cmdline_parse_string()
[all …]
H A Dcmdline_parse_etheraddr.c33 unsigned int token_len = 0; in cmdline_parse_etheraddr() local
43 while (!cmdline_isendoftoken(buf[token_len])) in cmdline_parse_etheraddr()
44 token_len++; in cmdline_parse_etheraddr()
47 if (token_len >= RTE_ETHER_ADDR_FMT_SIZE) in cmdline_parse_etheraddr()
50 strlcpy(ether_str, buf, token_len + 1); in cmdline_parse_etheraddr()
57 return token_len; in cmdline_parse_etheraddr()
H A Dcmdline_parse_portlist.c78 unsigned int token_len = 0; in cmdline_parse_portlist() local
90 while (!cmdline_isendoftoken(buf[token_len]) && in cmdline_parse_portlist()
91 (token_len < PORTLIST_TOKEN_SIZE)) in cmdline_parse_portlist()
92 token_len++; in cmdline_parse_portlist()
94 if (token_len >= PORTLIST_TOKEN_SIZE) in cmdline_parse_portlist()
97 strlcpy(portlist_str, buf, token_len + 1); in cmdline_parse_portlist()
107 return token_len; in cmdline_parse_portlist()
H A Dcmdline_parse_ipaddr.c38 unsigned int token_len = 0; in cmdline_parse_ipaddr() local
52 while (!cmdline_isendoftoken(buf[token_len])) in cmdline_parse_ipaddr()
53 token_len++; in cmdline_parse_ipaddr()
56 if (token_len >= INET6_ADDRSTRLEN+4) in cmdline_parse_ipaddr()
59 strlcpy(ip_str, buf, token_len + 1); in cmdline_parse_ipaddr()
86 return token_len; in cmdline_parse_ipaddr()
93 return token_len; in cmdline_parse_ipaddr()
/f-stack/dpdk/examples/cmdline/
H A Dparse_obj_list.c39 unsigned int token_len = 0; in parse_obj_list() local
47 while(!cmdline_isendoftoken(buf[token_len])) in parse_obj_list()
48 token_len++; in parse_obj_list()
51 if (token_len != strnlen(o->name, OBJ_NAME_LEN_MAX)) in parse_obj_list()
53 if (strncmp(buf, o->name, token_len)) in parse_obj_list()
64 return token_len; in parse_obj_list()