Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 315763 Details for
Bug 421775
net-analyzer/snort-2.9.2.3 fails to compile with active response disabled
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to allow compilation of snort-2.9.2.3 with active-response disabled
snort-2.9.2.3-active.patch (text/plain), 2.12 KB, created by
Valentin Avram
on 2012-06-19 15:17:38 UTC
(
hide
)
Description:
Patch to allow compilation of snort-2.9.2.3 with active-response disabled
Filename:
MIME Type:
Creator:
Valentin Avram
Created:
2012-06-19 15:17:38 UTC
Size:
2.12 KB
patch
obsolete
>--- snort-2.9.2.3/src/active.c 2012-03-17 23:38:01.000000000 +0200 >+++ snort-2.9.2.3/src/active.c 2012-06-19 13:06:58.000000000 +0300 >@@ -39,8 +39,9 @@ > > #include "preprocessors/spp_frag3.h" > >-#ifdef ACTIVE_RESPONSE > #include "encode.h" >+ >+#ifdef ACTIVE_RESPONSE > #include "sfdaq.h" > #endif > >@@ -196,9 +197,15 @@ int Active_Term (void) > } > > int Active_IsEnabled (void) { return s_enabled; } >+#endif // ACTIVE_RESPONSE > >+#ifdef ACTIVE_RESPONSE > void Active_SetEnabled (int on_off) { s_enabled = on_off; } >+#else >+void Active_SetEnabled (int on_off) { } >+#endif // ACTIVE_RESPONSE > >+#ifdef ACTIVE_RESPONSE > static inline uint32_t GetFlags (void) > { > uint32_t flags = ENC_FLAG_ID; >@@ -244,10 +251,12 @@ void Active_SendUnreach(Packet* p, Encod > > s_send(p->pkth, 1, rej, len); > } >+#endif // ACTIVE_RESPONSE > > void Active_SendData ( > Packet* p, EncodeFlags flags, const uint8_t* buf, uint32_t blen) > { >+#ifdef ACTIVE_RESPONSE > int i; > flags |= GetFlags(); > >@@ -264,8 +273,10 @@ void Active_SendData ( > if ( !seg ) return; > s_send(p->pkth, !(flags & ENC_FLAG_FWD), seg, plen); > } >+#endif // ACTIVE_RESPONSE > } > >+#ifdef ACTIVE_RESPONSE > //-------------------------------------------------------------------- > > int Active_IsRSTCandidate(const Packet* p) >--- snort-2.9.2.3/src/active.h 2012-01-13 00:11:40.000000000 +0200 >+++ snort-2.9.2.3/src/active.h 2012-06-19 13:05:29.000000000 +0300 >@@ -29,9 +29,12 @@ > #include "decode.h" > #include "snort.h" > >-#ifdef ACTIVE_RESPONSE > #include "encode.h" > >+void Active_SendData(Packet*, EncodeFlags, const uint8_t* buf, uint32_t len); >+void Active_SetEnabled(int on_off); >+ >+#ifdef ACTIVE_RESPONSE > int Active_Init(SnortConfig*); > int Active_Term(void); > >@@ -51,13 +54,10 @@ void Active_KillSession(Packet*, EncodeF > > void Active_SendReset(Packet*, EncodeFlags); > void Active_SendUnreach(Packet*, EncodeType); >-void Active_SendData(Packet*, EncodeFlags, const uint8_t* buf, uint32_t len); >- > int Active_IsRSTCandidate(const Packet*); > int Active_IsUNRCandidate(const Packet*); > > int Active_IsEnabled(void); >-void Active_SetEnabled(int on_off); > #endif // ACTIVE_RESPONSE > > typedef enum {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 421775
:
315763
|
327130