uint8_t *table_idx, uint16_t *out_port, uint16_t *priority,
uint16_t *idle_timeout, uint16_t *hard_timeout)
{
-
+ char *save_ptr = NULL;
char *name;
uint32_t wildcards;
}
memset(match, 0, sizeof *match);
wildcards = OFPFW_ALL;
- for (name = strtok(string, "=, \t\r\n"); name;
- name = strtok(NULL, "=, \t\r\n")) {
+ for (name = strtok_r(string, "=, \t\r\n", &save_ptr); name;
+ name = strtok_r(NULL, "=, \t\r\n", &save_ptr)) {
const struct protocol *p;
if (parse_protocol(name, &p)) {
const struct field *f;
char *value;
- value = strtok(NULL, ", \t\r\n");
+ value = strtok_r(NULL, ", \t\r\n", &save_ptr);
if (!value) {
ofp_fatal(0, "field %s missing value", name);
}