Check-in [d639e0a548]
Overview
Comment:Patch per Matthias Bernhardt.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:d639e0a5482de86a211063635e745ca94957c5c7
User & Date: rmiller on 2012-01-09 23:12:36
Other Links: manifest | tags
Context
2012-01-10
22:14
few minor cosmetic changes Leaf check-in: 7c39ff9950 user: rmiller tags: trunk
2012-01-09
23:12
Patch per Matthias Bernhardt. check-in: d639e0a548 user: rmiller tags: trunk
2011-03-06
23:30
remove pbl_set_verdict. It was a waste of code lines. check-in: 49947c3157 user: rmiller tags: trunk
Changes

Modified packetbl.c from [194fb5b236] to [8779e8d279].

177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
	currtime = time(NULL);

	ipaddr_check = packet_info_to_ip(ip);
	if (packet_cache_len > 0) {
		cache_hash = packet_cache_hash(ip) % packet_cache_len;
	}
	buf = get_ip_string(&ip);
	if (cache_hash>0 && cache_hash<packet_cache_len && packet_cache != NULL) {
		if (packet_cache[cache_hash].ipaddr==ipaddr_check 
				&& packet_cache[cache_hash].expires>currtime) {
			retval = packet_cache[cache_hash].action;
			switch (retval) {
				case NF_DROP:
					actionstr="reject";
					statistics.cachereject++;







|







177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
	currtime = time(NULL);

	ipaddr_check = packet_info_to_ip(ip);
	if (packet_cache_len > 0) {
		cache_hash = packet_cache_hash(ip) % packet_cache_len;
	}
	buf = get_ip_string(&ip);
	if (packet_cache != NULL) {
		if (packet_cache[cache_hash].ipaddr==ipaddr_check 
				&& packet_cache[cache_hash].expires>currtime) {
			retval = packet_cache[cache_hash].action;
			switch (retval) {
				case NF_DROP:
					actionstr="reject";
					statistics.cachereject++;