betolj / ndpi-netfilter

GNU General Public License v2.0
126 stars 72 forks source link

modifying an existing protocol #61

Open whitewalter1950 opened 7 years ago

whitewalter1950 commented 7 years ago

Hi i want to add a function to a specific protocol lets say skype for example so that when a packet of that protocol is detected my function is triggered. i added my function into the protocol code "someProtocol.c" in the nDPI/src/lib/protocols directory then added any headers needed for my function to work. when trying to install, the "make" is done without errors however when reaching the step NDPI_PATH=....../nDPI make i am prompted with a warning that says: WARNING: "myFunctionName" [path/to/ndpi/src/xt_ndpi.ko] undefined! what am i supposed to do in order to make my function run whenever a packet of that specific protocol is detected by ndpi thanks in advance