New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Switch BitTorrent analyzer to Zeek's standard regex engine #1822
Comments
Hello @rsmmr, I would like to work on this issue. I went through |
Cool, thanks. The API for Zeek's regex code is in Let me know if anything else would be helpful. |
Thanks for this. I will look into it and try to implement. |
How is it going? Anything else we can help with? |
Hey @rsmmr, |
So I am using This is the particular case where I am having problems: I went through other functions available and none of them seems fit to this. Do tell me if I missed anything. |
Good catch, yeah, it looks like we actually don't have the right API for doing the matching in the same way. We should be ok for We could (and probably should) add a method that does that, but that's not quite trivial because of how the regex works internally. So for now, what I would suggest instead is to split |
Ok thanks, I will try to implement this. |
Turns out that
BitTorrentTracker.cc
uses POSIX regex functions (#include <regex.h>
,regcomp/regexec
) instead of Zeek's own engine. We should switch that over to remove that dependency and provide consistency.The text was updated successfully, but these errors were encountered: