Snort mailing list archives
Packet Logger Mode- what is func()?
From: Alex Adamos <alexthakidadam () hotmail com>
Date: Fri, 21 Sep 2012 16:02:31 +0300
hi to all!
im new here and i suppose maybe you can help me!
I was trying to figure out how the Packet Logger Mode runs. At snort.c , when packet_logger_mode is set, the
LogPacket() which in turn calls the CallLogPlugins(). In the later definition of the function (at detect.c file) a
function pointer idx calls the func(). At this point, i can not neither understand or find what this function does or
where it is defined !!! It goes like this :
void CallLogPlugins(Packet * p, char *message, void *args, Event *event){ OutputFuncNode *idx;
idx = LogList;
pc.log_pkts++;
while(idx != NULL) { idx->func(p, message, idx->arg, event); idx = idx->next; }}
please help!Thanks. ------------------------------------------------------------------------------ Got visibility? Most devs has no idea what their production app looks like. Find out how fast your code is with AppDynamics Lite. http://ad.doubleclick.net/clk;262219671;13503038;y? http://info.appdynamics.com/FreeJavaPerformanceDownload.html
_______________________________________________ Snort-users mailing list Snort-users () lists sourceforge net Go to this URL to change user options or unsubscribe: https://lists.sourceforge.net/lists/listinfo/snort-users Snort-users list archive: http://www.geocrawler.com/redir-sf.php3?list=snort-users Please visit http://blog.snort.org to stay current on all the latest Snort news!
Current thread:
- Packet Logger Mode- what is func()? Alex Adamos (Sep 21)
- Re: Packet Logger Mode- what is func()? Russ Combs (Sep 21)
