[Snort-devel] Register Plugin

Jiang tjiang at ...817...
Thu Sep 13 01:42:02 EDT 2001


hi, roesch
	I am reading some source of snort-1.8.1-RELEASE, and find one question(maybe
BUG)
in the "plugbase.c", which is used to provide Plugin functions. Would you be
so kind to 
answer?
	In the function "RegisterPlugIn(...)" in plugbase.c, from line 154 to 161:

	-- cut from plugbase.c --
        while(idx->next != NULL)
        {
            if(!strncasecmp(idx->entry.keyword, keyword, strlen(keyword)))
            {
                FatalError("ERROR %s (%d) => Duplicate detection plugin
keyword!\n", file_name, file_line);
            }
            idx = idx->next;
        }
	-- end of cut --

	why it doesn't compare the keyword in the node of the end of the
KeywordList? 
	if i try to register the same keyword continuously, it won't report any
error!

	pls forgive my poor english. thank you

2001/9/13

			jiang
            tjiang at ...817...
  
______________________________________________________
欢迎使用FM365中文电子邮件 http://mail.fm365.com
欢迎订阅FM365免费电子杂志 http://maillist.fm365.com
FM365聊天室全新改版 http://chat.fm365.com
联想服务提醒您预防CIH病毒!http://www.legend.com/service/huodong/CIH/cih426.html




More information about the Snort-devel mailing list