| 34 | } |
| 35 | |
| 36 | static int |
| 37 | l2fwd_event_parse_portmask(const char *portmask) |
| 38 | { |
| 39 | char *end = NULL; |
| 40 | unsigned long pm; |
| 41 | |
| 42 | /* parse hexadecimal string */ |
| 43 | pm = strtoul(portmask, &end, 16); |
| 44 | if ((portmask[0] == '\0') || (end == NULL) || (*end != '\0')) |
| 45 | return 0; |
| 46 | |
| 47 | return pm; |
| 48 | } |
| 49 | |
| 50 | static unsigned int |
| 51 | l2fwd_event_parse_nqueue(const char *q_arg) |
no test coverage detected