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

Function parser_read_uint32

dpdk/examples/ip_pipeline/parser.c:140–154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

138}
139
140int
141parser_read_uint32(uint32_t *value, const char *p)
142{
143 uint64_t val = 0;
144 int ret = parser_read_uint64(&val, p);
145
146 if (ret < 0)
147 return ret;
148
149 if (val > UINT32_MAX)
150 return -ERANGE;
151
152 *value = val;
153 return 0;
154}
155
156int
157parser_read_uint32_hex(uint32_t *value, const char *p)

Callers 15

cmd_mempoolFunction · 0.70
cmd_linkFunction · 0.70
cmd_swqFunction · 0.70
cmd_tmgrFunction · 0.70
cmd_tmgr_subportFunction · 0.70
cmd_tmgr_subport_pipeFunction · 0.70
cmd_cryptodevFunction · 0.70
cmd_table_action_profileFunction · 0.70
cmd_pipelineFunction · 0.70
cmd_pipeline_port_inFunction · 0.70
cmd_pipeline_port_outFunction · 0.70

Calls 1

parser_read_uint64Function · 0.70

Tested by

no test coverage detected