Project

General

Profile

Actions

Bug #8271

open

pfring: StringParseUnt16 function is not found

Added by Aditya Nugraha 6 days ago. Updated about 23 hours ago.

Status:
In Review
Priority:
Normal
Assignee:
Target version:
Affected Versions:
Effort:
Difficulty:
Label:

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


Subtasks 1 (1 open0 closed)

Bug #8284: pfring: StringParseUnt16 function is not found (8.0.x backport)AssignedJason IshActions
Actions #1

Updated by Jason Ish 2 days ago

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"?

Actions #2

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 ?.

Actions #3

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

Actions #4

Updated by OISF Ticketbot 1 day ago

  • Subtask #8284 added
Actions #5

Updated by OISF Ticketbot 1 day ago

  • Label deleted (Needs backport to 8.0)
Actions #6

Updated by Jason Ish about 24 hours ago

  • Subject changed from StringParseUnt16 function is not found to pfring: StringParseUnt16 function is not found
Actions #7

Updated by Jason Ish about 23 hours ago

  • Status changed from Assigned to In Review
Actions

Also available in: Atom PDF