-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Ips bpf #333
Ips bpf #333
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -381,6 +381,12 @@ static void SetBpfString(int optind, char *argv[]) { | |
if (bpf_len == 0) | ||
return; | ||
|
||
if (IS_ENGINE_MODE_IPS(engine_mode)) { | ||
fprintf(stderr, "ERROR: BPF filter not available in IPS mode." | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why fprintf here? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It is used in next error. OK for an incremental patch fixing both at once ? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. On 03/26/2013 05:40 PM, Eric Leblond wrote:
Did I hear you say amended patch in new pr? ;) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. OK, then I add an other one fixing the second fprintf :) |
||
" Use firewall filtering if possible.\n"); | ||
exit(EXIT_FAILURE); | ||
} | ||
|
||
bpf_filter = SCMalloc(bpf_len); | ||
if (unlikely(bpf_filter == NULL)) | ||
return; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Think SCLogWarning is more appropriate for, well, warnings? :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You've got a serious argument here :) I've choose Info because it can be normal if the user really know what he does.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On 03/26/2013 05:42 PM, Eric Leblond wrote:
I'm sure a user like that can ignore a real warning then :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lol, you've got me ;)