def do_processing():
	dirty_patterns=load_misuse.LoadConfigFile()
	while 1:
		the_packet=s.recv(256)
		print the_packet
		for one in dirty_patterns:
			if one in the_packet:
				logthis.detected(one,"Possible Intrusion")
		logthis.create_pcap(the_packet)
def check_packet(data):
	dirty_patterns=load_misuse.LoadConfigFile(CON_FILE)
	for one in dirty_patterns:
		if one in data:
			logthis.detected(one,"Possible Intrusion")
	logthis.create_pcap(the_packet)