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

Function parser_read_uint16

dpdk/examples/ip_pipeline/parser.c:172–186  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

170}
171
172int
173parser_read_uint16(uint16_t *value, const char *p)
174{
175 uint64_t val = 0;
176 int ret = parser_read_uint64(&val, p);
177
178 if (ret < 0)
179 return ret;
180
181 if (val > UINT16_MAX)
182 return -ERANGE;
183
184 *value = val;
185 return 0;
186}
187
188int
189parser_read_uint16_hex(uint16_t *value, const char *p)

Callers 9

cmd_linkFunction · 0.70
cmd_pipeline_port_inFunction · 0.70
cmd_pipeline_port_outFunction · 0.70
parse_matchFunction · 0.70
parse_table_action_encapFunction · 0.70
parse_table_action_natFunction · 0.70
parse_table_action_aeadFunction · 0.70
parse_table_action_decapFunction · 0.70

Calls 1

parser_read_uint64Function · 0.70

Tested by

no test coverage detected