Actions
Bug #8271
openpfring: StringParseUnt16 function is not found
Description
Perhaps developer is forgot to update src/util-byte.c & src/util-byte.h
runmode-pfring.c: In function 'OldParsePfringConfig':
runmode-pfring.c:118:17: error: implicit declaration of function 'StringParseUnt16'; did you mean 'StringParseInt16'? [-Wimplicit-function-declaration]
118 | if (StringParseUnt16(&pfconf->threads, 10, 0, threadsstr) < 0) {
| ^~~~~~~~~~~~~~~~
| StringParseInt16
Updated by Aditya Nugraha 1 day ago
Jason Ish wrote in #note-1:
Both git main and 8.0 have StringParseUint16. Do you happen to have older Suricata C header files installed in some other location, like "/usr/include", or "/usr/local/include"?
I think it's a typo in plugins/pfring/runmode-pfring.c line 118, instead of StringParseUnt16, which should be StringParseUint16 ?.
Updated by Jason Ish 1 day ago
- Status changed from New to Assigned
- Assignee set to Jason Ish
- Target version changed from TBD to 9.0.0-beta1
- Affected Versions 8.0.3 added
- Label Needs backport to 8.0 added
I see it now. Odd, our CI job for this plugin passes, but I think it might be due to some loose linking rules for plugins, needs investigation, as its just a compile warning and not an error:
runmode-pfring.c:118:17: warning: implicit declaration of function 'StringParseUnt16'; did you mean 'StringParseInt16'? [-Wimplicit-function-declaration] 831
Updated by Jason Ish about 24 hours ago
- Subject changed from StringParseUnt16 function is not found to pfring: StringParseUnt16 function is not found
Updated by Jason Ish about 23 hours ago
- Status changed from Assigned to In Review
Pull request: https://github.com/OISF/suricata/pull/14809
Actions